mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -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
|
|
@ -354,7 +354,7 @@
|
||||||
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
|
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
|
||||||
},
|
},
|
||||||
"vim": {
|
"vim": {
|
||||||
"revision": "2dbe41988636062fe5c00aefe75a47a4d849d9d2"
|
"revision": "9f674e9178ece2a3827328a4e05568eb861c0d01"
|
||||||
},
|
},
|
||||||
"vue": {
|
"vue": {
|
||||||
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
|
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
"in"
|
"in"
|
||||||
"while"
|
"while"
|
||||||
"endwhile"
|
"endwhile"
|
||||||
|
"break"
|
||||||
|
"continue"
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -34,7 +36,7 @@
|
||||||
|
|
||||||
;; Function related
|
;; Function related
|
||||||
(function_declaration name: (_) @function)
|
(function_declaration name: (_) @function)
|
||||||
(call_expression function: (identifier) @function.call)
|
(call_expression function: (identifier) @function)
|
||||||
(parameters (identifier) @parameter)
|
(parameters (identifier) @parameter)
|
||||||
(default_parameter (identifier) @parameter)
|
(default_parameter (identifier) @parameter)
|
||||||
|
|
||||||
|
|
@ -149,6 +151,8 @@
|
||||||
(pattern) @string.special
|
(pattern) @string.special
|
||||||
(pattern_multi) @string.regex
|
(pattern_multi) @string.regex
|
||||||
(filename) @string
|
(filename) @string
|
||||||
|
(heredoc (body) @string)
|
||||||
|
((heredoc (parameter) @keyword))
|
||||||
((scoped_identifier
|
((scoped_identifier
|
||||||
(scope) @_scope . (identifier) @boolean)
|
(scope) @_scope . (identifier) @boolean)
|
||||||
(#eq? @_scope "v:")
|
(#eq? @_scope "v:")
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
(lua_statement . (_) @lua)
|
(lua_statement (script (body) @lua))
|
||||||
(ruby_statement . (_) @ruby)
|
(lua_statement (chunk) @lua)
|
||||||
(python_statement . (_) @python)
|
(ruby_statement (script (body) @ruby))
|
||||||
|
(ruby_statement (chunk) @ruby)
|
||||||
|
(python_statement (script (body) @python))
|
||||||
|
(python_statement (chunk) @python)
|
||||||
;; If we support perl at some point...
|
;; If we support perl at some point...
|
||||||
;; (perl_statement . (_) @perl)
|
;; (perl_statement (script (body) @perl))
|
||||||
|
;; (perl_statement (chunk) @perl)
|
||||||
|
|
||||||
(autocmd_statement (pattern) @regex)
|
(autocmd_statement (pattern) @regex)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue