"Fossies" - the Fresh Open Source Software Archive

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

    1 Description="C#"
    2 
    3 Categories = {"source"}
    4 
    5 Keywords={
    6   { Id=1,
    7 
    8 List={"abstract","as","base","bool","break","byte","case","catch","char",
    9       "checked","class","const","continue","decimal","default","delegate","do",
   10       "double","else","enum","event","explicit","extern","false","finally","fixed",
   11       "float","for","foreach","goto","if","implicit","in","int","interface","internal",
   12       "is","lock","long","namespace","new","null","object","operator","out",
   13       "override","params","private","protected","public","readonly","ref","return",
   14       "sbyte","sealed","short","sizeof","stackalloc","static","string","struct",
   15       "switch","this","throw","true","try","typeof","uint","ulong","unchecked",
   16       "unsafe","ushort","using","virtual","void","volatile","while","add","alias",
   17       "ascending","async","await","descending","dynamic","from","get","global","group",
   18       "into","join","let","orderby","partial",
   19       "remove","select","set","value","var","where ","yield"},
   20   },
   21   { Id=2,
   22     List={"object", "bool", "byte", "char", "const", "decimal", "double",
   23           "enum", "float", "int", "long", "sbyte", "short", "string", "struct", "uint",
   24           "ulong", "ushort", "void"},
   25   },
   26   { Id=3,
   27     Regex=[[^\s*(\w+):]],
   28   },
   29   { Id=4,
   30     Regex=[[(\w+)\s*\(]],
   31   },
   32 }
   33 
   34 Strings={
   35   Delimiter=[["|']],
   36   RawPrefix="@",
   37   Interpolation=[[ \{\{?.+?\}\}? ]]
   38 }
   39 
   40 IgnoreCase=false
   41 
   42 Comments={
   43   { Block=false,
   44     Delimiter= { [[//]] },
   45   },
   46   { Block=true,
   47     Nested=false,
   48     Delimiter= { [[\/\*]],[[\*\/]],}
   49   }
   50 }
   51 
   52 PreProcessor={
   53   Prefix=[[#]],
   54   Continuation="\\",
   55 }
   56 
   57 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|@|\?|\$|\|]]
   58 
   59 Digits=[[ (?:0x|0X|0b)[0-9a-fA-F_]+|\d*[\.\_]?\d+(?:[eE][\-\+]?\d+)?[fFlLuU]? ]]
   60 
   61 EnableIndentation=true