aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Dujava <jonas.dujava@gmail.com>2024-07-23 09:25:54 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-23 09:35:25 +0200
commit3fa183e34e9ea73bfdea353e72020fe990f8e92b (patch)
treeda429319defdf2a0174ae23ac1ee29c918df464d
parentbot(lockfile): update git_rebase, perl, sourcepawn, sql, typst (diff)
downloadnvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar.gz
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar.bz2
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar.lz
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar.xz
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.tar.zst
nvim-treesitter-3fa183e34e9ea73bfdea353e72020fe990f8e92b.zip
feat(latex): improve parameters
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
-rw-r--r--queries/latex/highlights.scm13
1 files changed, 7 insertions, 6 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index dcc068e95..c0f0bb2ba 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -4,8 +4,6 @@
(caption
command: _ @function)
-(placeholder) @variable
-
; Turn spelling on for text
(text) @spell
@@ -15,14 +13,17 @@
content: (curly_group
(_) @none @spell))
+; Variables, parameters
+(placeholder) @variable
+
(key_value_pair
key: (_) @variable.parameter @nospell
value: (_))
-[
- (brack_group)
- (brack_group_argc)
-] @variable.parameter
+(curly_group_spec
+ (text) @variable.parameter)
+
+(brack_group_argc) @variable.parameter
[
(operator)