"Fossies" - the Fresh Open Source Software Archive

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

    1 
    2 Description="Whiley"
    3 
    4 Categories = {"source"}
    5 
    6 Digits = [[ (?:0x)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[blLuU]* ]]
    7 
    8 Keywords={
    9   {  Id=1,
   10     List={
   11       "all", "any", "assert", "assume", "bool", "break", "byte", "case",
   12       "catch", "continue", "debug", "default", "do", "else", "ensures", "export",
   13       "false", "fail", "finite", "for", "function", "if", "import", "in", "int", "is",
   14       "method", "native", "new", "no", "null", "package", "private", "protected",
   15       "public", "requires", "return", "skip", "some", "switch", "throw", "throws",
   16       "total", "true", "try", "void", "where", "while" }
   17   },
   18   { Id=2,
   19     List= { "constant", "from", "type" }
   20   },
   21   { Id=3,
   22     List= { }
   23   },
   24   { Id=4,
   25     Regex=[[(\w+)\s*\(]]
   26   }
   27 }
   28 
   29 Strings = {
   30   Delimiter=[["|']]
   31 }
   32 
   33 Comments = {
   34   { Block=true,
   35     Nested=false,
   36     Delimiter = { [[\/\*]], [[\*\/]] }
   37   },
   38   {
   39     Block=false,
   40     Delimiter = { [[//]] }
   41   }
   42 }
   43 
   44 IgnoreCase=false
   45 
   46 PreProcessor = {
   47   Prefix=[[#]],
   48   Continuation="\\",
   49 }
   50 
   51 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]