From 002537a3e364b6662c6b63e3f4b33b33e219cc6c Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Sun, 21 Jul 2024 23:49:48 +0200 Subject: [PATCH] feat(latex): simplify captures of font changing Signed-off-by: Jonas Dujava --- queries/latex/highlights.scm | 8 +------- 1 file changed, 1 insertion(+), 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