mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Update TS cpp, lua queries
This commit is contained in:
@@ -89,7 +89,7 @@ together with other plugins.
|
||||
|
||||
### Tree-sitter integration
|
||||
|
||||
_Note: Currently this feature is possible in neovim 0.5.5+ only._
|
||||
_Note: Currently this feature is possible in neovim 0.5+ only._
|
||||
|
||||
match-up now has experimental support for language syntax provided
|
||||
by tree-sitter. The list of supported languages is available
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
; inherits: c
|
||||
|
||||
(template_parameter_list
|
||||
"<" @open.template
|
||||
">" @close.template) @scope.template
|
||||
|
||||
@@ -12,14 +12,17 @@
|
||||
"if" @open.if
|
||||
"end" @close.if) @scope.if
|
||||
(else "else" @mid.if.1)
|
||||
(elseif "elseif" @mid.if.2)
|
||||
|
||||
(function
|
||||
"function" @open.function
|
||||
"end" @close.function) @scope.function
|
||||
|
||||
(local_function
|
||||
"function" @open.function
|
||||
"end" @close.function) @scope.function
|
||||
(function_definition
|
||||
"function" @open.function
|
||||
"end" @close.function) @scope.function
|
||||
|
||||
(return_statement
|
||||
"return" @mid.function.1)
|
||||
|
||||
Reference in New Issue
Block a user