aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/latex/highlights.scm30
1 files changed, 15 insertions, 15 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index aad68e4f7..a249d04bb 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -12,15 +12,6 @@
value: (_))
[
- (line_comment)
- (block_comment)
- (comment_environment)
-] @comment @spell
-
-((line_comment) @keyword.directive
- (#lua-match? @keyword.directive "^%% !TeX"))
-
-[
(brack_group)
(brack_group_argc)
] @variable.parameter
@@ -164,12 +155,6 @@
(curly_group
(_) @none @spell))
-; Math
-[
- (displayed_equation)
- (inline_formula)
-] @markup.math
-
(math_environment
(begin
command: _ @markup.math
@@ -313,6 +298,15 @@
(_) @markup.link.url))
(#any-of? @_name "\\url" "\\href"))
+[
+ (line_comment)
+ (block_comment)
+ (comment_environment)
+] @comment @spell
+
+((line_comment) @keyword.directive
+ (#lua-match? @keyword.directive "^%% !TeX"))
+
; File inclusion commands
(class_include
command: _ @keyword.import
@@ -369,3 +363,9 @@
(label_reference) @nospell
(label_reference_range) @nospell
+
+; Math
+[
+ (displayed_equation)
+ (inline_formula)
+] @markup.math