mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-27 20:03:29 +04:00
18a79aa3bf
* Update tree-sitter-robot * Update Robot highlights query for Helix * Change @comment.single to @comment Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
60 lines
1.1 KiB
Scheme
60 lines
1.1 KiB
Scheme
[
|
|
(comment)
|
|
(extra_text)
|
|
] @comment
|
|
|
|
[
|
|
(section_header)
|
|
(setting_statement)
|
|
(keyword_setting)
|
|
(test_case_setting)
|
|
] @keyword
|
|
|
|
(variable_definition (variable_name) @variable)
|
|
(keyword_definition (name) @function)
|
|
(test_case_definition (name) @function)
|
|
|
|
(keyword_invocation (keyword) @function)
|
|
(ellipses) @punctuation.delimiter
|
|
|
|
(text_chunk) @string
|
|
(inline_python_expression) @string.special
|
|
[
|
|
(scalar_variable)
|
|
(list_variable)
|
|
(dictionary_variable)
|
|
] @variable
|
|
|
|
; Control structures
|
|
|
|
"RETURN" @keyword.control.return
|
|
|
|
[
|
|
"FOR"
|
|
"IN"
|
|
"IN RANGE"
|
|
"IN ENUMERATE"
|
|
"IN ZIP"
|
|
(break_statement)
|
|
(continue_statement)
|
|
] @keyword.control.repeat
|
|
(for_statement "END" @keyword.control.repeat)
|
|
|
|
"WHILE" @keyword.control.repeat
|
|
(while_statement "END" @keyword.control.repeat)
|
|
|
|
[
|
|
"IF"
|
|
"ELSE IF"
|
|
] @keyword.control.conditional
|
|
(if_statement "END" @keyword.control.conditional)
|
|
(if_statement (else_statement "ELSE" @keyword.control.conditional))
|
|
|
|
[
|
|
"TRY"
|
|
"EXCEPT"
|
|
"FINALLY"
|
|
] @keyword.control.exception
|
|
(try_statement "END" @keyword.control.exception)
|
|
(try_statement (else_statement "ELSE" @keyword.control.exception))
|