"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/ats.lang" (12 May 2020, 1445 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 Description="Applied Type System"
    3 
    4 Categories = {"source"}
    5 
    6 Digits=[[ (?:0x|0X|0b|0B)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]]
    7 
    8 Keywords={
    9   { Id=1,
   10     List={"and", "as", "assert", "asr", "begin", "", "class", "constraint",
   11         "do", "done", "downto", "else", "end", "exception", "external", "false", "for",
   12         "fun", "function", "functor", "if", "in", "include", "inherit", "initializer",
   13         "land", "lazy", "let", "lor", "lsl", "lsr", "lxor", "match", "method", "mod",
   14         "module", "mutable", "new", "object", "of", "open", "or", "private", "rec",
   15         "sig", "struct", "then", "to", "true", "try", "type", "val", "virtual", "when",
   16         "while", "with", "value", "staload", "macdef", "typedef", "static", "inline",
   17         "return", "extern", "implement"},
   18   },
   19   { Id=2,
   20     List={"bool", "string", "int", "real", "word", "float", "unit", "option", "ref"},
   21   },
   22   { Id=2,
   23     Regex=[['[a-zA-Z0-9_']+]],
   24   },
   25 
   26   { Id=3,
   27     Regex=[[\b[A-Z][a-zA-Z0-9_']*(?=\.)]],
   28   },
   29 
   30   { Id=4,
   31     Regex=[[\b[A-Z][a-zA-Z0-9_']*]],
   32   },
   33 }
   34 
   35 Strings={
   36   Delimiter=[["|']],
   37 }
   38 
   39 IgnoreCase=false
   40 
   41 Comments={
   42   { Block=false,
   43     Delimiter= { [[//]] },
   44   },
   45   { Block=true,
   46     Nested=true,
   47     Delimiter= { [[\/\*]],[[\*\/]],}
   48   },
   49   { Block=true,
   50     Nested=true,
   51     Delimiter= { [[\(\*]],[[\*\)]],}
   52   }
   53 
   54 }
   55 
   56 PreProcessor={
   57   Prefix=[[#]],
   58 }
   59 
   60 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\_|\*|\%|\+|\-|\.|\^]]