]> git.lizzy.rs Git - micro.git/blob - syntax_files/go.micro
Proper window resize handling
[micro.git] / syntax_files / go.micro
1 syntax "Go" "\.go$"
2
3 color identifier "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
4 color statement "\b(append|cap|close|complex|copy|delete|imag|len)\b"
5 color statement "\b(make|new|panic|print|println|protect|real|recover)\b"
6 color type     "\b(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\b"
7 color type     "\b(uintptr|byte|rune|string|interface|bool|map|chan|error)\b"
8 color statement  "\b(package|import|const|var|type|struct|func|go|defer|nil|iota)\b"
9 color statement  "\b(for|range|if|else|case|default|switch|return)\b"
10 color statement     "\b(go|goto|break|continue)\b"
11 color constant "\b(true|false)\b"
12 color statement "[-+/*=<>!~%&|^]|:="
13 color constant   "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
14 color constant ""(\\.|[^"])*"|'(\\.|[^'])*'"
15 color constant   "\\[abfnrtv'\"\\]"
16 color constant   "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
17 color constant   "`[^`]*`"
18 color comment "(^|[[:space:]])//.*"
19 color comment (s) "/\*.*?\*/"
20 color todo "TODO:?"