mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
fix(queries): use vim-match for non lua regexes
This commit is contained in:
parent
4a747aa30c
commit
ce43dbf54c
11 changed files with 29 additions and 29 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue