aboutsummaryrefslogtreecommitdiffstats
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
parentMerge pull request #296 from steelsojka/feat-is-predicate (diff)
downloadnvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.gz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.bz2
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.lz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.xz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.zst
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.zip
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 fb5df7f11..a8473f06a 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