Add starter TS queries for rust re #140

This commit is contained in:
Andy K. Massimino
2021-09-12 09:26:19 -04:00
parent 4bbb22d694
commit 909eab5ee9
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View 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))