From db0e5192911a8bf9df2f2a45c4dab249d5cbf32c Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 15 Apr 2022 10:11:23 +0200 Subject: latex: capture math env contents --- queries/latex/highlights.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index e1772ca16..92e242508 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 @@ -113,6 +112,9 @@ command: _ @text.math name: (curly_group_text (text) @text.math))) +(math_environment + (text) @text.math) + (math_environment (end command: _ @text.math -- cgit v1.2.3-70-g09d2