From 1970f0d3bbb99c7659e58914948749437c7b7398 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 6 Mar 2026 10:58:02 +0100 Subject: [PATCH] feat(robot)!: update parser and queries Breaking change: replaced `(variable_definition)` by `(scalar_variable)`, `(list_variable)` and `(dictionary_variable)`. Also mark queries as unmaintained. --- SUPPORTED_LANGUAGES.md | 2 +- lua/nvim-treesitter/parsers.lua | 5 ++--- runtime/queries/robot/highlights.scm | 8 +++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index 90d77afb8..547b48d04 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -245,7 +245,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | @steelsojka [rescript](https://github.com/rescript-lang/tree-sitter-rescript) | unstable | `HFIJL` | @ribru17 [rifleconf](https://github.com/purarue/tree-sitter-rifleconf) | unstable | `H  J ` | @purarue [rnoweb](https://github.com/bamonroe/tree-sitter-rnoweb) | unstable | `HF J ` | @bamonroe -[robot](https://github.com/Hubro/tree-sitter-robot) | stable | `HFIJ ` | @Hubro +[robot](https://github.com/Hubro/tree-sitter-robot) | unmaintained | `HFIJ ` | [robots_txt](https://github.com/opa-oz/tree-sitter-robots-txt) | unstable | `H  J ` | @opa-oz [roc](https://github.com/faldor20/tree-sitter-roc) | unmaintained | `H IJL` | [ron](https://github.com/tree-sitter-grammars/tree-sitter-ron) | unstable | `HFIJL` | @amaanq diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 4206c656a..fe5e1b7ba 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1922,11 +1922,10 @@ return { }, robot = { install_info = { - revision = 'v1.2.0', + revision = 'v1.3.0', url = 'https://github.com/Hubro/tree-sitter-robot', }, - maintainers = { '@Hubro' }, - tier = 1, + tier = 3, }, robots_txt = { install_info = { diff --git a/runtime/queries/robot/highlights.scm b/runtime/queries/robot/highlights.scm index a9c545b8a..ab30906c7 100644 --- a/runtime/queries/robot/highlights.scm +++ b/runtime/queries/robot/highlights.scm @@ -10,7 +10,13 @@ (test_case_setting) ] @keyword -(variable_definition +(scalar_variable + (variable_name) @variable) + +(list_variable + (variable_name) @variable) + +(dictionary_variable (variable_name) @variable) (keyword_definition