aboutsummaryrefslogtreecommitdiffstats
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
parentFix backtick typo in highlighting issue template (diff)
downloadnvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar.gz
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar.bz2
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar.lz
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar.xz
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.tar.zst
nvim-treesitter-db0e5192911a8bf9df2f2a45c4dab249d5cbf32c.zip
latex: capture math env contents
-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 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
@@ -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)))