"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/jsx.lang" (12 May 2020, 739 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 -- Load JS definition
    3 dofile(HL_LANG_DIR.."js.lang")
    4 
    5 Description="JSX"
    6 
    7 Categories = {"script", "javascript"}
    8 
    9 
   10 table.insert(Keywords,
   11   { Id=1,
   12     List={ "into", "final", "mixin", "as", "debugger", "log", "assert"},
   13   }
   14 )
   15 
   16 
   17 table.insert(Keywords,
   18   { Id=3,
   19     Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
   20     Group=0,
   21   }
   22 )
   23 
   24 table.insert(Keywords,
   25   { Id=2,
   26     List={"Array", "boolean", "Boolean", "Date", "number", "Number", "Map", "int",
   27             "Object", "string", "String", "RegExp", "JSON", "Nullable", "variant",
   28             "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError",
   29           "HTMLElement", "HTMLCanvasElement", "CanvasRenderingContext2D", "HTMLImageElement" },
   30   }
   31 )