refactor: replace some match & vim-match usages

This commit is contained in:
ObserverOfTime 2023-08-23 14:09:30 +03:00
parent 9ea7559ea9
commit 05fe2c38a3
7 changed files with 15 additions and 18 deletions

View file

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