"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/d.lang" (12 May 2020, 1790 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 "d.lang": 3.56_vs_3.57.

    1 
    2 Description="D"
    3 
    4 Categories = {"source"}
    5 
    6 Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]]
    7 
    8 Keywords={
    9   { Id=1,
   10     List={
   11     "abstract","alias","align","asm","assert","auto","body","break",
   12     "case","cast","catch","class","const",
   13     "continue","debug","default","delegate","delete","deprecated",
   14     "do","else","enum","export","extern","false",
   15     "final","finally","for","foreach","foreach_reverse","function","goto",
   16     "if","immutable","import","in","inout",
   17     "interface","invariant","is","lazy","macro","mixin",
   18     "module","new","nothrow","null","out","override","package","pragma","private",
   19     "protected","public","pure","ref","return","scope","shared",
   20     "static","struct","super","switch","synchronized","template","this","throw",
   21     "true","try","typedef","typeid","typeof","union",
   22     "unittest","version","volatile","while","with"
   23     },
   24   },
   25   { Id=2,
   26     List={"bool","byte","cdouble","char","creal","dchar","double","float","ifloat",
   27     "idouble","int","ireal","long","real","short","ubyte","ucent","uint","ulong",
   28     "cent","cfloat","ushort","wchar","void"},
   29   },
   30     { Id=3,
   31     Regex=[[\@\w+]],
   32   },
   33   { Id=4,
   34     Regex=[[(\w+)\s*\(]],
   35   },
   36 
   37 }
   38 
   39 Strings={
   40   Delimiter=[["|'|`]],
   41   RawPrefix="r",
   42     Interpolation=[[ %\w ]],
   43     DelimiterPairs= {
   44       { Open=[[ q"[\[\(\<\{] ]], Close=[[ "[\]\)\>\}] ]], Raw=true }
   45     }
   46 }
   47 
   48 IgnoreCase=false
   49 
   50 Comments={
   51   { Block=false,
   52     Delimiter= { [[//]] },
   53   },
   54   { Block=true,
   55     Nested=false,
   56     Delimiter= { [[\/\*]],[[\*\/]],}
   57   },
   58   { Block=true,
   59     Nested=false,
   60     Delimiter= { [[\/\+]],[[\+\/]],}
   61   }
   62 }
   63 
   64 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\$|\^]]
   65 
   66 Digits=[[ (?:0x|0X|0b)[0-9a-fA-F_]+|\d*[\.\_]?\d+(?:[eE][\-\+]?\d+)?[fFlLuU]? ]]
   67