aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-02-27 11:29:11 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-02-27 12:38:45 +0100
commitb6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae (patch)
tree142ba17318cdd87bef7b849c6d790fdca22642cb
parenthighlights(php): add namespace aliasing name as type (diff)
downloadnvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar.gz
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar.bz2
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar.lz
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar.xz
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.tar.zst
nvim-treesitter-b6ebdaeb4437d3469d7a0e0d723d3fb514c4d6ae.zip
fix(latex): update parser and queries
-rw-r--r--lockfile.json2
-rw-r--r--queries/latex/highlights.scm12
2 files changed, 7 insertions, 7 deletions
diff --git a/lockfile.json b/lockfile.json
index bf2c1188b..c7687a796 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -156,7 +156,7 @@
"revision": "7744b56f03ac1e5643fad23c9dd90837fe97291e"
},
"latex": {
- "revision": "1666e9780de42a31b1376d32fbe8332e8dd5850f"
+ "revision": "1ea9f87d30df20e13cde292ff4d6c4d8dd979b16"
},
"ledger": {
"revision": "0cdeb0e51411a3ba5493662952c3039de08939ca"
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index a2cfa2010..bfa3edbc6 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -1,7 +1,7 @@
;; General syntax
(ERROR) @error
-(command_name) @function
+(generic_command) @function
(caption
command: _ @function)
@@ -194,29 +194,29 @@
.
(curly_group (_) @text.title))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group
(text) @text.title))
(#eq? @_name "\\frametitle"))
;; Formatting
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.emphasis))
(#eq? @_name "\\emph"))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.emphasis))
(#match? @_name "^(\\\\textit|\\\\mathit)$"))
-((command
+((generic_command
command: (command_name) @_name
arg: (curly_group (_) @text.strong))
(#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
-((command
+((generic_command
command: (command_name) @_name
.
arg: (curly_group (_) @text.uri))