"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/go.lang" (12 May 2020, 1194 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.

    1 Description="Go"
    2 
    3 Categories = {"source"}
    4 
    5 Keywords={
    6   { Id=1,
    7     List={  "break", "default", "func", "interface", "select", "case", "defer",
    8             "go", "map", "struct", "chan", "else", "goto", "package", "switch", "const",
    9             "fallthrough", "if", "range", "type", "continue", "for", "import", "return",
   10             "var"},
   11   },
   12   { Id=2,
   13     List={  "bool", "byte", "float32", "float64", "int8", "int16", "int32",
   14             "int64", "string", "uint8", "uint16", "uint32", "uint64", "float", "int",
   15             "uint", "uintptr", "", "true", "false", "iota", "nil", "cap", "close", "closed",
   16             "len", "make", "new", "panic", "panicln", "print", "printlnr"},
   17   },
   18   { Id=4,
   19     Regex=[[(\w+)\s*\(]],
   20   },
   21 }
   22 
   23 --# raw strings ` not implemented yet
   24 Strings={
   25   Delimiter=[["|'|`]],
   26   Escape=[=[ \\\d{3}|\\x[[:xdigit:]]{2}|\\u[[:xdigit:]]{4}|\\U[[:xdigit:]]{8}|\\[ntvbrfa\\\?'"] ]=],
   27   Interpolation=[[ %\w ]],
   28 }
   29 
   30 IgnoreCase=false
   31 
   32 Comments={
   33   { Block=false,
   34     Delimiter= { [[//]] },
   35   },
   36   { Block=true,
   37     Nested=false,
   38     Delimiter= { [[\/\*]],[[\*\/]],}
   39   }
   40 }
   41 
   42 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\^]]
   43 
   44 EnableIndentation=true