const and var are keywords not attributes

This commit is contained in:
Martin Chaine 2016-10-23 11:16:04 +02:00 committed by GitHub
parent 1012fae065
commit 2f86038abe

View File

@ -30,7 +30,7 @@ addhl -group /go/code regex %{-?([0-9]*\.(?!0[xX]))?\b([0-9]+|0[xX][0-9a-fA-F]+)
# Grammar
keywords="break|default|defer|else|fallthrough|for|func|go|goto|if|import"
keywords="${keywords}|interface|make|new|package|range|return|select|case|switch|type|continue"
attributes="var|const"
keywords="${keywords}|var|const"
types="bool|byte|chan|complex128|complex64|float32|float64|int|int16|int32"
types="${types}|int64|int8|interface|intptr|map|rune|string|struct|uint|uint16|uint32|uint64|uint8"
values="false|true|nil"