2016-03-02 20:49:58 +01:00
|
|
|
syntax "GO" "\.go$"
|
2019-12-18 17:13:13 +01:00
|
|
|
comment "//"
|
2013-06-02 12:48:33 +02:00
|
|
|
|
2015-10-24 13:55:49 +02:00
|
|
|
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
|
2013-06-02 12:48:33 +02:00
|
|
|
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
|
|
|
|
color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>"
|
|
|
|
color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>"
|
|
|
|
color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>"
|
|
|
|
color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>"
|
|
|
|
color cyan "\<(for|range|if|else|case|default|switch|return)\>"
|
|
|
|
color brightred "\<(go|goto|break|continue)\>"
|
|
|
|
color brightcyan "\<(true|false)\>"
|
|
|
|
color red "[-+/*=<>!~%&|^]|:="
|
|
|
|
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'"
|
|
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
color magenta "\\[abfnrtv'\"\\]"
|
|
|
|
color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
|
|
|
color yellow "`[^`]*`"
|
|
|
|
color brightblack "(^|[[:space:]])//.*"
|
2019-12-15 21:57:35 +01:00
|
|
|
color brightblack start="^\s*/\*" end="\*/"
|
2013-06-02 12:48:33 +02:00
|
|
|
color brightwhite,cyan "TODO:?"
|
|
|
|
color ,green "[[:space:]]+$"
|
2015-10-24 11:52:47 +02:00
|
|
|
color ,red " + +| + +"
|