"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/dart.lang" (12 May 2020, 999 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 "dart.lang": 3.53_vs_3.54.

    1 
    2 Description="Dart"
    3 
    4 Categories = {"source"}
    5 
    6 Keywords={
    7   { Id=1,
    8     List={
    9       "assert", "break", "case", "catch", "class", "const", "continue",
   10       "default", "do", "else", "extends", "false", "final", "finally",
   11       "for", "if", "in", "is", "new", "null", "return", "super", "switch",
   12       "this", "throw", "true", "try", "var", "void", "while",
   13       "static", "const", "new"
   14     }
   15   },
   16   { Id=2,
   17     List={ "num", "int", "double", "bool" }
   18   },
   19 
   20   { Id=4,
   21     Regex=[[[A-Z][a-z_-]+]]
   22   },
   23 
   24 
   25   { Id=3,
   26     Regex=[[(#\w+)\s*\(]]
   27   },
   28 
   29   { Id=2,
   30     Regex=[[(\w+)\s*\(]]
   31   }
   32 }
   33 
   34 Strings = {
   35   Delimiter=[['|"]],
   36   RawPrefix="r",
   37   Interpolation=[[\$\w+|\$\{.+?\}]],
   38   Escape = [[ \\u\d{4}|\\x?\d{3}|\\\w|\\[\'\\\"] ]]
   39 }
   40 
   41 Comments = {
   42   { Block=true,
   43     Nested=true,
   44     Delimiter = { [[\/\*]], [[\*\/]] }
   45   },
   46   {
   47     Block=false,
   48     Delimiter = { [[//]] }
   49   }
   50 }
   51 
   52 IgnoreCase=false
   53 
   54 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]
   55 
   56 EnableIndentation=false