mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Add starter TS queries for rust re #140
This commit is contained in:
@@ -18,7 +18,8 @@ if matchup#util#matchpref('tagnameonly', 0)
|
||||
call matchup#util#patch_match_words(':/>', ':/\g{hlend}>')
|
||||
endif
|
||||
|
||||
call matchup#util#patch_match_words('[^/>]*', '[^>]*[^/>]')
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
|
||||
" vim: fdm=marker sw=2
|
||||
|
||||
|
||||
7
after/queries/rust/matchup.scm
Normal file
7
after/queries/rust/matchup.scm
Normal file
@@ -0,0 +1,7 @@
|
||||
(block (if_expression "if" @open.if_) @scope.if_)
|
||||
(let_declaration (if_expression "if" @open.if_) @scope.if_)
|
||||
|
||||
(else_clause "else" @mid.if_.1 (block))
|
||||
(else_clause
|
||||
"else" @_start (if_expression "if" @_end)
|
||||
(#make-range! "mid.if_.2" @_start @_end))
|
||||
Reference in New Issue
Block a user