From 1b8622a830da30c348998f26fab6934ca0133392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20de=20Vill=C3=A8le?= <25150288+Thibaulltt@users.noreply.github.com> Date: Fri, 5 Sep 2025 10:46:07 +0200 Subject: [PATCH] feat(latex)!: update parser and queries Breaking change: `(curly_group_label)` replaced by `(curly_group_text)` see latex-lsp/tree-sitter-latex#213 --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/latex/highlights.scm | 6 +++--- 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)