Add support for Robot Framework files (#6611)

* Add support for Robot Framework files

* Run docgen
pull/6643/head
karei 2 years ago committed by GitHub
parent b663b89529
commit 1148ce1fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -117,6 +117,7 @@
| rego | ✓ | | | `regols` |
| rescript | ✓ | ✓ | | `rescript-language-server` |
| rmarkdown | ✓ | | ✓ | `R` |
| robot | ✓ | | | `robotframework_ls` |
| ron | ✓ | | ✓ | |
| rst | ✓ | | | |
| ruby | ✓ | ✓ | ✓ | `solargraph` |

@ -1437,6 +1437,20 @@ comment-token = "//"
indent = { tab-width = 4, unit = " " }
grammar = "rust"
[[language]]
name = "robot"
scope = "source.robot"
injection-regex = "robot"
file-types = ["robot", "resource"]
comment-token = "#"
roots = []
indent = { tab-width = 4, unit = " " }
language-server = { command = "robotframework_ls" }
[[grammar]]
name = "robot"
source = { git = "https://github.com/Hubro/tree-sitter-robot", rev = "f1142bfaa6acfce95e25d2c6d18d218f4f533927" }
[[language]]
name = "r"
scope = "source.r"

@ -0,0 +1,21 @@
(comment) @comment
(ellipses) @punctuation.delimiter
(section_header) @keyword
(extra_text) @comment
(setting_statement) @keyword
(variable_definition (variable_name) @variable)
(keyword_definition (name) @function)
(keyword_definition (body (keyword_setting) @keyword))
(test_case_definition (name) @property)
(keyword_invocation (keyword) @function)
(argument (text_chunk) @string)
(argument (scalar_variable) @string.special)
(argument (list_variable) @string.special)
(argument (dictionary_variable) @string.special)
Loading…
Cancel
Save