"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/ts.lang" (12 May 2020, 1840 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. See also the last Fossies "Diffs" side-by-side code changes report for "ts.lang": 3.53_vs_3.54.

    1 
    2 Description="TypeScript"
    3 
    4 Categories = {"script", "javascript"}
    5 
    6 
    7 Digits=[[ (?:0x)[0-9a-fA-F]+|(?:0b)[01]+|(?:0o)[0-8]+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]]
    8 
    9 Keywords={
   10   { Id=1,
   11     List={ "import", "export", "arguments", "this", "let", "var", "yield", "delete", "new", "instanceof", "typeof", "alert",
   12             "confirm", "prompt", "status", "self", "top", "parent", "if", "else", "switch", "do", "while", "for", "in", "break",
   13             "continue", "case", "default", "return",
   14             "with", "try", "catch", "throw", "finally", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError",
   15             "URIError", "declare", "as",
   16             "interface", "module", "abstract", "enum", "export", "interface", "static", "extends", "super", "final",
   17             "native", "synchronized", "class", "package", "throws", "const", "goto", "private", "transient", "debugger", "implements",
   18             "protected", "volatile",
   19             "double", "import", "public", "function", "type", "readonly", "is", "async", "await", "namespace", "of"
   20         }
   21   },
   22   { Id=2,
   23     List={  "any", "number", "string", "bool", "Array", "Boolean", "Date", "Function", "Infinity", "Math", "Number", "NaN", "Object",
   24             "Packages", "RegExp", "String",
   25             "true", "false", "null", "undefined", "int", "short", "boolean", "float", "char", "long", "byte", "void", "never"
   26         }
   27   },
   28   { Id=3,
   29     Regex=[[(^\w+):]]
   30   },
   31 
   32   { Id=4,
   33     Regex=[[(\w+)\s*\(]]
   34   }
   35 }
   36 
   37 Strings = {
   38   Delimiter=[[`|'|"]],
   39   Interpolation=[[ \$\{.+?\} ]],
   40 }
   41 
   42 Comments = {
   43   { Block=true,
   44     Nested=false,
   45     Delimiter = { [[\/\*]], [[\*\/]] }
   46   },
   47   {
   48     Block=false,
   49     Delimiter = { [[//]] }
   50   }
   51 }
   52 
   53 IgnoreCase=false
   54 
   55 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]
   56 
   57 EnableIndentation=true