diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2023-08-23 14:09:30 +0300 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2023-08-23 16:57:18 +0300 |
| commit | 05fe2c38a3bd4f889ac13f1735685ab348d95346 (patch) | |
| tree | 5d8c5b65bf01c6a7fda66c552629eefe9994c356 /queries/latex/highlights.scm | |
| parent | Update parsers: ada, bash, java, matlab, wing (diff) | |
| download | nvim-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.scm | 6 |
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 |
