aboutsummaryrefslogtreecommitdiffstats
path: root/queries/latex/highlights.scm
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2023-08-23 14:09:30 +0300
committerObserverOfTime <chronobserver@disroot.org>2023-08-23 16:57:18 +0300
commit05fe2c38a3bd4f889ac13f1735685ab348d95346 (patch)
tree5d8c5b65bf01c6a7fda66c552629eefe9994c356 /queries/latex/highlights.scm
parentUpdate parsers: ada, bash, java, matlab, wing (diff)
downloadnvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.gz
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.bz2
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.lz
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.xz
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.tar.zst
nvim-treesitter-05fe2c38a3bd4f889ac13f1735685ab348d95346.zip
refactor: replace some match & vim-match usages
Diffstat (limited to 'queries/latex/highlights.scm')
-rw-r--r--queries/latex/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index 5d68cdfb0..66cd8b6f3 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -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