aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-01-11 10:10:02 +0000
committerBlaž Hrastnik2022-01-11 10:10:02 +0000
commitddbf03613d5a3dd64f3f5ba13795e70c29297837 (patch)
tree39a22b841de978ee9df8af71841774d161b64593
parentafc602d306923bf958604c5380f0eefc935acae1 (diff)
Update tree-sitter-go with generics support
m---------helix-syntax/languages/tree-sitter-go0
-rw-r--r--runtime/queries/go/highlights.scm6
2 files changed, 5 insertions, 1 deletions
diff --git a/helix-syntax/languages/tree-sitter-go b/helix-syntax/languages/tree-sitter-go
-Subproject 2a83dfdd759a632651f852aa4dc0af2525fae5c
+Subproject 0fa917a7022d1cd2e9b779a6a8fc5dc7fad69c7
diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm
index 56384d4d..4ff8675b 100644
--- a/runtime/queries/go/highlights.scm
+++ b/runtime/queries/go/highlights.scm
@@ -69,6 +69,7 @@
"|"
"|="
"||"
+ "~"
] @operator
; Keywords
@@ -143,6 +144,9 @@
(false)
] @constant.builtin.boolean
-(nil) @constant.builtin
+[
+ (nil)
+ (iota)
+] @constant.builtin
(comment) @comment