mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
update vim parser and queries
This commit is contained in:
parent
116c72f5c2
commit
11e88f698a
3 changed files with 14 additions and 6 deletions
|
|
@ -25,6 +25,8 @@
|
|||
"in"
|
||||
"while"
|
||||
"endwhile"
|
||||
"break"
|
||||
"continue"
|
||||
] @repeat
|
||||
|
||||
[
|
||||
|
|
@ -34,7 +36,7 @@
|
|||
|
||||
;; Function related
|
||||
(function_declaration name: (_) @function)
|
||||
(call_expression function: (identifier) @function.call)
|
||||
(call_expression function: (identifier) @function)
|
||||
(parameters (identifier) @parameter)
|
||||
(default_parameter (identifier) @parameter)
|
||||
|
||||
|
|
@ -149,6 +151,8 @@
|
|||
(pattern) @string.special
|
||||
(pattern_multi) @string.regex
|
||||
(filename) @string
|
||||
(heredoc (body) @string)
|
||||
((heredoc (parameter) @keyword))
|
||||
((scoped_identifier
|
||||
(scope) @_scope . (identifier) @boolean)
|
||||
(#eq? @_scope "v:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue