"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/julia.lang" (12 May 2020, 1340 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 "julia.lang": 3.55_vs_3.56.

    1 
    2 Description="Julia"
    3 
    4 Categories = {"source"}
    5 
    6 
    7 Keywords={
    8   { Id=1,
    9     List={
   10       "function", "global", "for", "end", "while", "if", "else", "elseif", "break",
   11       "switch", "case", "otherwise", "try", "catch",  "const", "immutable",
   12       "import", "importall", "export", "type", "typealias", "return", "true",
   13       "false", "macro", "quote", "in", "abstract", "module", "using", "continue",
   14       "ifelse", "do", "eval", "let", "finally", "throw", "struct", "where", "new", "primitive", "isa"
   15     }
   16   },
   17   { Id=2,
   18     List={
   19       "Int8", "UInt8", "Int16", "UInt16", "Int32", "UInt32", "Int64", "UInt64",
   20       "Int128", "UInt128", "Float16", "Float32", "Float64", "Any", "Number",
   21       "Real", "AbstractFloat", "Integer", "Signed", "Unsigned"
   22     }
   23   },
   24   { Id=3,
   25     Regex=[[@\w+]]
   26   },
   27   { Id=4,
   28     Regex=[[(\w+)!?\s*\( ]]
   29   },
   30   { Id=4,
   31     Regex=[[function\s+(\w+)\s*\{ ]]
   32   }
   33 }
   34 
   35 Strings = {
   36 
   37   Delimiter=[["""|"|`]],
   38   Escape=[=[\\[ntvbrfa\\\?'"]|\\u\d+]=],
   39   Interpolation=[[ [%$]\w+|\$\(.+?\) ]],
   40 }
   41 
   42 Comments = {
   43 { Block=true,
   44   Nested=false,
   45   Delimiter = { [[#=]], [[=#]] }  },
   46   {
   47     Block=false,
   48     Delimiter = { [[#]] }
   49   }
   50 }
   51 
   52 IgnoreCase=false
   53 
   54 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\$|\?|\||\^]]
   55 
   56 Digits=[[ (?:0x|0X|0b)[0-9a-fA-F_]+|\d*[\.\_]?\d+(?:[eE][\-\+]?\d+)?[fFlLuU]? ]]
   57