diff options
| author | Jonas Dujava <jonas.dujava@gmail.com> | 2024-07-21 23:49:48 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-22 00:07:52 +0200 |
| commit | 002537a3e364b6662c6b63e3f4b33b33e219cc6c (patch) | |
| tree | 5d4dcedf44ce1112f322bdb0aa87fc82853db210 /queries/latex/highlights.scm | |
| parent | feat(snakemake): add wildcard flag (diff) | |
| download | nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar.gz nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar.bz2 nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar.lz nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar.xz nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.tar.zst nvim-treesitter-002537a3e364b6662c6b63e3f4b33b33e219cc6c.zip | |
feat(latex): simplify captures of font changing
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
Diffstat (limited to 'queries/latex/highlights.scm')
| -rw-r--r-- | queries/latex/highlights.scm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index f5db212b7..4eb39de87 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -239,13 +239,7 @@ command: (command_name) @_name arg: (curly_group (_) @markup.italic)) - (#eq? @_name "\\emph")) - -((generic_command - command: (command_name) @_name - arg: (curly_group - (_) @markup.italic)) - (#any-of? @_name "\\textit" "\\mathit")) + (#any-of? @_name "\\emph" "\\textit" "\\mathit")) ((generic_command command: (command_name) @_name |
