mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
highlights(go): add some highlights
- added missing operators - added iota constant - added comparable type - edited go keyword types
This commit is contained in:
parent
741260618d
commit
f2778bd1a2
1 changed files with 10 additions and 4 deletions
|
|
@ -64,6 +64,8 @@
|
||||||
"&"
|
"&"
|
||||||
"&&"
|
"&&"
|
||||||
"&="
|
"&="
|
||||||
|
"&^"
|
||||||
|
"&^="
|
||||||
"%"
|
"%"
|
||||||
"%="
|
"%="
|
||||||
"^"
|
"^"
|
||||||
|
|
@ -92,15 +94,12 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
"break"
|
"break"
|
||||||
"chan"
|
|
||||||
"const"
|
"const"
|
||||||
"continue"
|
"continue"
|
||||||
"default"
|
"default"
|
||||||
"defer"
|
"defer"
|
||||||
"go"
|
|
||||||
"goto"
|
"goto"
|
||||||
"interface"
|
"interface"
|
||||||
"map"
|
|
||||||
"range"
|
"range"
|
||||||
"select"
|
"select"
|
||||||
"struct"
|
"struct"
|
||||||
|
|
@ -111,6 +110,7 @@
|
||||||
|
|
||||||
"func" @keyword.function
|
"func" @keyword.function
|
||||||
"return" @keyword.return
|
"return" @keyword.return
|
||||||
|
"go" @keyword.coroutine
|
||||||
|
|
||||||
"for" @repeat
|
"for" @repeat
|
||||||
|
|
||||||
|
|
@ -134,6 +134,8 @@
|
||||||
"any"
|
"any"
|
||||||
"bool"
|
"bool"
|
||||||
"byte"
|
"byte"
|
||||||
|
"chan"
|
||||||
|
"comparable"
|
||||||
"complex128"
|
"complex128"
|
||||||
"complex64"
|
"complex64"
|
||||||
"error"
|
"error"
|
||||||
|
|
@ -144,6 +146,7 @@
|
||||||
"int32"
|
"int32"
|
||||||
"int64"
|
"int64"
|
||||||
"int8"
|
"int8"
|
||||||
|
"map"
|
||||||
"rune"
|
"rune"
|
||||||
"string"
|
"string"
|
||||||
"uint"
|
"uint"
|
||||||
|
|
@ -206,7 +209,10 @@
|
||||||
(false)
|
(false)
|
||||||
] @boolean
|
] @boolean
|
||||||
|
|
||||||
(nil) @constant.builtin
|
[
|
||||||
|
(nil)
|
||||||
|
(iota)
|
||||||
|
] @constant.builtin
|
||||||
|
|
||||||
(keyed_element
|
(keyed_element
|
||||||
. (literal_element (identifier) @field))
|
. (literal_element (identifier) @field))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue