"Fossies" - the Fresh Open Source Software Archive

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

    1 -- Contributed by Conrad Steenberg http://code.google.com/p/crack-language/
    2 
    3 Description="Crack"
    4 
    5 Categories = {"source"}
    6 
    7 Digits = [[(?:0x|0X)[0-9a-fA-F]+|\d*[\.]?\d+(?:[eE][\-\+]?\d+)?[lLuU]*]]
    8 
    9 Keywords={
   10   { Id=1,
   11     List={"class", "for", "while", "in", "if", "else", "const",
   12           "oper", "return", "this", "abstract", "static", "enum",
   13           "import", "is", "try", "except", "throw", "bind", "release",
   14           "init", "del"
   15         }
   16   },
   17   { Id=2,
   18     List= { "bool", "byte", "byteptr", "void", "voidptr", "function", "array",
   19             "int", "uint", "int16", "uint16", "int32", "uint32", "int64", "uint64",
   20             "float", "float32", "float64", "intz", "uintz"
   21           }
   22   },
   23   { Id=3,
   24     Regex=[[@\w+]],
   25   },
   26   { Id=4,
   27     Regex=[[\@?(\w+)\s*[\(]|Exception|Object|String|VTableBase|Class|StaticString]]
   28   }
   29 }
   30 
   31 Strings = {
   32   Delimiter=[["|']],
   33   RawPrefix="r",
   34   Escape = [[ \\t|\\a|\\b|\\n|\\r|\\x[0-9a-fA-F]{2}|\\[0-7]{3} ]],
   35 }
   36 
   37 Comments = {
   38   { Block=true,
   39     Nested=false,
   40     Delimiter = { [[\/\*]], [[\*\/]] }
   41   },
   42   {
   43     Block=false,
   44     Delimiter = { [[//]] }
   45   },
   46   {
   47     Block=false,
   48     Delimiter = { [[#]] }
   49   }
   50 }
   51 
   52 IgnoreCase=false
   53 
   54 Operators=[[\{|\}\@|\$|\`|\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\||\^]]
   55 
   56 EnableIndentation=true