mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
((call
|
||||
function: (identifier) @function.builtin)
|
||||
(match?
|
||||
(vim-match?
|
||||
@function.builtin
|
||||
"^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$"))
|
||||
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
parameters: (parameters
|
||||
(identifier) @self) )
|
||||
(eq? @self "self")
|
||||
(match? @constructor "(__new__|__init__)"))
|
||||
(vim-match? @constructor "(__new__|__init__)"))
|
||||
|
||||
(type (identifier) @type)
|
||||
(type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue