summaryrefslogtreecommitdiff
path: root/queries/go
diff options
context:
space:
mode:
authorSteven Sojka <steelsojka@gmail.com>2020-08-16 11:24:10 -0500
committerKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-08-16 18:31:56 +0200
commitce43dbf54cdc017e6885381f38ea056f78c4e55b (patch)
tree27a4e0475002d2e3845e942cab8d57aeea679bff /queries/go
parent4a747aa30cc7d1ac73ebe5ac5cee97bf5fccc6d6 (diff)
fix(queries): use vim-match for non lua regexes
Diffstat (limited to 'queries/go')
-rw-r--r--queries/go/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm
index fb5df7f1..a8473f06 100644
--- a/queries/go/highlights.scm
+++ b/queries/go/highlights.scm
@@ -1,4 +1,4 @@
-;; Forked from tree-sitter-go
+;; Forked from tree-sitter-go
;; Copyright (c) 2014 Max Brunsfeld (The MIT License)
;;
@@ -12,10 +12,10 @@
(variadic_parameter_declaration (identifier) @parameter)
((identifier) @constant
- (#eq? @constant "_"))
+ (#eq? @constant "_"))
((identifier) @constant
- (#match? @constant "^[A-Z][A-Z\\d_]+$"))
+ (#vim-match? @constant "^[A-Z][A-Z\\d_]+$"))
; Function calls