summaryrefslogtreecommitdiff
path: root/queries/latex
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-15 10:11:23 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-04-15 15:04:29 +0200
commitdb0e5192911a8bf9df2f2a45c4dab249d5cbf32c (patch)
tree0c9d895765a7c68a41d5e594d5ce4672beffc13e /queries/latex
parent1b06c671cff30cedebd253dd90de8a6c707eac9d (diff)
latex: capture math env contents
Diffstat (limited to 'queries/latex')
-rw-r--r--queries/latex/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index e1772ca1..92e24250 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -105,7 +105,6 @@
[
(displayed_equation)
(inline_formula)
- (math_set)
] @text.math
(math_environment
@@ -114,6 +113,9 @@
name: (curly_group_text (text) @text.math)))
(math_environment
+ (text) @text.math)
+
+(math_environment
(end
command: _ @text.math
name: (curly_group_text (text) @text.math)))