aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibault de Villèle <25150288+Thibaulltt@users.noreply.github.com>2025-09-05 10:46:07 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-09-19 10:35:18 +0200
commit1b8622a830da30c348998f26fab6934ca0133392 (patch)
tree00954428f471c7f5815fd6674f104f1c0b3eb623
parentfix(c_sharp): missing highlight for parameter modifier (diff)
downloadnvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar.gz
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar.bz2
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar.lz
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar.xz
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.tar.zst
nvim-treesitter-1b8622a830da30c348998f26fab6934ca0133392.zip
feat(latex)!: update parser and queries
Breaking change: `(curly_group_label)` replaced by `(curly_group_text)` see latex-lsp/tree-sitter-latex#213
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/latex/highlights.scm6
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index ff27ab5d9..8ea842356 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -1240,7 +1240,7 @@ return {
latex = {
install_info = {
generate = true,
- revision = '9410012b3eba659da5de5a655b4041593b493cb7',
+ revision = '7af2bf3addcab5ada8843cf08b857daf1799dbd4',
url = 'https://github.com/latex-lsp/tree-sitter-latex',
},
maintainers = { '@theHamsta', '@clason' },
diff --git a/runtime/queries/latex/highlights.scm b/runtime/queries/latex/highlights.scm
index ec39afcf5..30602c907 100644
--- a/runtime/queries/latex/highlights.scm
+++ b/runtime/queries/latex/highlights.scm
@@ -92,9 +92,9 @@
(label_reference_range
command: _ @function.macro
- from: (curly_group_text
+ from: (curly_group_label
(_) @markup.link)
- to: (curly_group_text
+ to: (curly_group_label
(_) @markup.link))
(label_reference
@@ -104,7 +104,7 @@
(label_number
command: _ @function.macro
- name: (curly_group_text
+ name: (curly_group_label
(_) @markup.link)
number: (_) @markup.link)