"Fossies" - the Fresh Open Source Software Archive

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

    1 
    2 Description="Pony"
    3 
    4 Categories = {"source"}
    5 
    6 --Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]]
    7 
    8 Keywords={
    9   { Id=1,
   10     List={ "actor", "as", "be", "box", "break", "class", "compile_error", "continue", "consume", "do", "else", "elseif", "embed",
   11             "end", "error", "for", "fun", "if", "ifdef", "in", "interface", "is", "iso", "lambda", "let", "match", "new", "object",
   12             "primitive", "recover", "ref", "repeat", "return", "tag", "then", "this", "trait", "trn", "try", "type", "until", "use",
   13             "var", "val", "where", "while", "with"}
   14   },
   15   { Id=2,
   16     List= { "Bool", "ISize", "ILong", "I8", "I16", "I32", "I64", "I128", "USize", "ULong", "U8", "U16", "U32", "U64", "U128", "F32", "F64",
   17             "String", "true", "false"}
   18   },
   19   { Id=3,
   20     Regex=[[\w+']]
   21   },
   22   { Id=4,
   23     Regex=[[(\w+)\s*\(]]
   24   }
   25 }
   26 
   27 Strings={
   28   Delimiter=[["""|"]],
   29   -- RawPrefix="r",
   30   -- Escape=[=[\\[ntvbrfa\\\?'"]|\\\d{3}|\\x[[:xdigit:]]{2}]=],
   31   -- Interpolation=[[ %[%#0\-\+\ diouxXeEfFgGcrs]+|%\(\w+\)[sd]? ]]
   32 }
   33 
   34 Comments = {
   35   { Block=true,
   36     Nested=true,
   37     Delimiter = { [[\/\*]], [[\*\/]] }
   38   },
   39   {
   40     Block=false,
   41     Delimiter = { [[//]] }
   42   }
   43 }
   44 
   45 IgnoreCase=false
   46 
   47 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]
   48 
   49 EnableIndentation=false