diff options
| author | Martin Chaine <chaine.martin@gmail.com> | 2016-11-28 15:06:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-28 15:06:26 +0100 |
| commit | 85759d51eb8610ab3290f076c6d29ff04e683032 (patch) | |
| tree | 5bfa096590d0b02d523f0ae1e5c74d9aed7fe855 | |
| parent | 2f3a7112eafe7bfa6ddd9c6b8a3e6d11a44ce49d (diff) | |
go: error is a type not a keyword
| -rw-r--r-- | rc/base/go.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/base/go.kak b/rc/base/go.kak index 94fe6bb6..b925576a 100644 --- a/rc/base/go.kak +++ b/rc/base/go.kak @@ -28,10 +28,10 @@ addhl -group /go/code regex %{-?([0-9]*\.(?!0[xX]))?\b([0-9]+|0[xX][0-9a-fA-F]+) %sh{ # Grammar - keywords="break|default|error|func|interface|select|case|defer|go|map|struct" + keywords="break|default|func|interface|select|case|defer|go|map|struct" keywords="${keywords}|chan|else|goto|package|switch|const|fallthrough|if|range|type" keywords="${keywords}|continue|for|import|return|var" - types="bool|byte|chan|complex128|complex64|float32|float64|int|int16|int32" + types="bool|byte|chan|complex128|complex64|error|float32|float64|int|int16|int32" types="${types}|int64|int8|interface|intptr|map|rune|string|struct|uint|uint16|uint32|uint64|uint8" values="false|true|nil|iota" functions="append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover" |
