mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
refactor: replace some match & vim-match usages
This commit is contained in:
parent
9ea7559ea9
commit
05fe2c38a3
7 changed files with 15 additions and 18 deletions
|
|
@ -193,18 +193,18 @@
|
|||
((generic_command
|
||||
command: (command_name) @_name
|
||||
arg: (curly_group (_) @text.emphasis))
|
||||
(#match? @_name "^(\\\\textit|\\\\mathit)$"))
|
||||
(#any-of? @_name "\\textit" "\\mathit"))
|
||||
|
||||
((generic_command
|
||||
command: (command_name) @_name
|
||||
arg: (curly_group (_) @text.strong))
|
||||
(#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
|
||||
(#any-of? @_name "\\textbf" "\\mathbf"))
|
||||
|
||||
((generic_command
|
||||
command: (command_name) @_name
|
||||
.
|
||||
arg: (curly_group (_) @text.uri))
|
||||
(#match? @_name "^(\\\\url|\\\\href)$"))
|
||||
(#any-of? @_name "\\url" "\\href"))
|
||||
|
||||
;; File inclusion commands
|
||||
(class_include
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue