From 3d0e642764f22d12c2496c27f132197f0ae96ccb Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 2 May 2025 17:15:46 +0200 Subject: [PATCH] feat(gdscript)!: update parser and queries `(underscore)` node was removed --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/gdscript/highlights.scm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 216971525..a3efc076c 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -644,7 +644,7 @@ return { }, gdscript = { install_info = { - revision = '48b49330888a4669b48619b211cc8da573827725', + revision = '25dadb2beaa2bb0f53d5fe97d2588a01e9b0f0b5', url = 'https://github.com/PrestonKnopp/tree-sitter-gdscript', }, maintainers = { '@PrestonKnopp' }, diff --git a/runtime/queries/gdscript/highlights.scm b/runtime/queries/gdscript/highlights.scm index cea9093c0..d7d3a648c 100644 --- a/runtime/queries/gdscript/highlights.scm +++ b/runtime/queries/gdscript/highlights.scm @@ -129,10 +129,10 @@ (#eq? @keyword.operator "new")) ; Match Pattern -[ - (underscore) - (pattern_open_ending) -] @character.special +(pattern_open_ending) @character.special + +((identifier) @character.special + (#eq? @character.special "_")) ; Alternations [