diff options
| author | mohsen <smoka7@hotmail.com> | 2023-05-20 12:26:24 +0330 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-05-21 20:04:40 +0200 |
| commit | f2778bd1a28b74adf5b1aa51aa57da85adfa3d16 (patch) | |
| tree | 56fa2c8b4c19f2c613aca7ad0c625e6774a15dfa | |
| parent | highlights(query): prefer lua-match (diff) | |
| download | nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar.gz nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar.bz2 nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar.lz nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar.xz nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.tar.zst nvim-treesitter-f2778bd1a28b74adf5b1aa51aa57da85adfa3d16.zip | |
highlights(go): add some highlights
- added missing operators
- added iota constant
- added comparable type
- edited go keyword types
| -rw-r--r-- | queries/go/highlights.scm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm index f2bdf6a83..05c491eb2 100644 --- a/queries/go/highlights.scm +++ b/queries/go/highlights.scm @@ -64,6 +64,8 @@ "&" "&&" "&=" + "&^" + "&^=" "%" "%=" "^" @@ -92,15 +94,12 @@ [ "break" - "chan" "const" "continue" "default" "defer" - "go" "goto" "interface" - "map" "range" "select" "struct" @@ -111,6 +110,7 @@ "func" @keyword.function "return" @keyword.return +"go" @keyword.coroutine "for" @repeat @@ -134,6 +134,8 @@ "any" "bool" "byte" + "chan" + "comparable" "complex128" "complex64" "error" @@ -144,6 +146,7 @@ "int32" "int64" "int8" + "map" "rune" "string" "uint" @@ -206,7 +209,10 @@ (false) ] @boolean -(nil) @constant.builtin +[ + (nil) + (iota) +] @constant.builtin (keyed_element . (literal_element (identifier) @field)) |
