mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat: add Robot Framework parser and highlights
This commit is contained in:
parent
1e3b986650
commit
dd6964575e
3 changed files with 33 additions and 0 deletions
|
|
@ -440,6 +440,9 @@
|
||||||
"rnoweb": {
|
"rnoweb": {
|
||||||
"revision": "502c1126dc6777f09af5bef16e72a42f75bd081e"
|
"revision": "502c1126dc6777f09af5bef16e72a42f75bd081e"
|
||||||
},
|
},
|
||||||
|
"robot": {
|
||||||
|
"revision": "f1142bfaa6acfce95e25d2c6d18d218f4f533927"
|
||||||
|
},
|
||||||
"ron": {
|
"ron": {
|
||||||
"revision": "ce6086b2c9e8e71065b8129d6c2289c5f66d1879"
|
"revision": "ce6086b2c9e8e71065b8129d6c2289c5f66d1879"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1309,6 +1309,15 @@ list.rnoweb = {
|
||||||
maintainers = { "@bamonroe" },
|
maintainers = { "@bamonroe" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.robot = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/Hubro/tree-sitter-robot",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@ema2159" },
|
||||||
|
experimental = true,
|
||||||
|
}
|
||||||
|
|
||||||
list.ron = {
|
list.ron = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/amaanq/tree-sitter-ron",
|
url = "https://github.com/amaanq/tree-sitter-ron",
|
||||||
|
|
|
||||||
21
queries/robot/highlights.scm
Normal file
21
queries/robot/highlights.scm
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
(argument (dictionary_variable) @string.special)
|
||||||
|
(argument (list_variable) @string.special)
|
||||||
|
(argument (scalar_variable) @string.special)
|
||||||
|
(argument (text_chunk) @string)
|
||||||
|
|
||||||
|
(keyword_invocation (keyword) @function)
|
||||||
|
|
||||||
|
(test_case_definition (name) @property)
|
||||||
|
|
||||||
|
(keyword_definition (body (keyword_setting) @keyword))
|
||||||
|
(keyword_definition (name) @function)
|
||||||
|
|
||||||
|
(variable_definition (variable_name) @variable)
|
||||||
|
|
||||||
|
(setting_statement) @keyword
|
||||||
|
|
||||||
|
(extra_text) @comment
|
||||||
|
(section_header) @keyword
|
||||||
|
|
||||||
|
(ellipses) @punctuation.delimiter
|
||||||
|
(comment) @comment
|
||||||
Loading…
Add table
Add a link
Reference in a new issue