fix(queries): use vim-match for non lua regexes

This commit is contained in:
Steven Sojka 2020-08-16 11:24:10 -05:00 committed by Kiyan Yazdani
parent 4a747aa30c
commit ce43dbf54c
11 changed files with 29 additions and 29 deletions

View file

@ -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