aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-05-30 00:09:37 -0400
committerGitHub <noreply@github.com>2023-05-30 00:09:37 -0400
commit6de5ceba03255a48d6640a27c768442452e3aeba (patch)
tree60eeb15c179a45fcba1d3857e07c05bee12586fc /queries/go
parentchore: update skipped langs in ci (diff)
downloadnvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar.gz
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar.bz2
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar.lz
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar.xz
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.tar.zst
nvim-treesitter-6de5ceba03255a48d6640a27c768442452e3aeba.zip
fix(go): properly highlight chan/map (#4875)
Diffstat (limited to 'queries/go')
-rw-r--r--queries/go/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm
index b417dd375..4569ec086 100644
--- a/queries/go/highlights.scm
+++ b/queries/go/highlights.scm
@@ -129,12 +129,13 @@
;; Builtin types
+[ "chan" "map" ] @type.builtin
+
((type_identifier) @type.builtin
(#any-of? @type.builtin
"any"
"bool"
"byte"
- "chan"
"comparable"
"complex128"
"complex64"
@@ -146,7 +147,6 @@
"int32"
"int64"
"int8"
- "map"
"rune"
"string"
"uint"