aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/latex/highlights.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index a2cfa2010..bfa3edbc6 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -1,7 +1,7 @@
;; General syntax
(ERROR) @error
-(command_name) @function
+(generic_command) @function
(caption
command: _ @function)
@@ -194,29 +194,29 @@
.
(curly_group (_) @text.title))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group
(text) @text.title))
(#eq? @_name "\\frametitle"))
;; Formatting
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.emphasis))
(#eq? @_name "\\emph"))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.emphasis))
(#match? @_name "^(\\\\textit|\\\\mathit)$"))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.strong))
(#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
-((command
+((generic_command
command: (command_name) @_name
.
arg: (curly_group (_) @text.uri))