diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 21697152..a3efc076 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 cea9093c..d7d3a648 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 [