mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(robot): update parser, queries and maintainer
* Update tree-sitter-robot version and maintainer * Improve query code style * Update tree-sitter-robot revision
This commit is contained in:
parent
0e27391e90
commit
087166aae1
5 changed files with 80 additions and 18 deletions
|
|
@ -1,21 +1,57 @@
|
|||
(argument (dictionary_variable) @string.special)
|
||||
(argument (list_variable) @string.special)
|
||||
(argument (scalar_variable) @string.special)
|
||||
(argument (text_chunk) @string)
|
||||
[
|
||||
(comment)
|
||||
(extra_text)
|
||||
] @comment
|
||||
|
||||
(keyword_invocation (keyword) @function)
|
||||
|
||||
(test_case_definition (name) @property)
|
||||
|
||||
(keyword_definition (body (keyword_setting) @keyword))
|
||||
(keyword_definition (name) @function)
|
||||
[
|
||||
(section_header)
|
||||
(setting_statement)
|
||||
(keyword_setting)
|
||||
(test_case_setting)
|
||||
] @keyword
|
||||
|
||||
(variable_definition (variable_name) @variable)
|
||||
(keyword_definition (name) @function)
|
||||
(test_case_definition (name) @function)
|
||||
|
||||
(setting_statement) @keyword
|
||||
|
||||
(extra_text) @comment
|
||||
(section_header) @keyword
|
||||
|
||||
(keyword_invocation (keyword) @function.call)
|
||||
(ellipses) @punctuation.delimiter
|
||||
(comment) @comment
|
||||
|
||||
(text_chunk) @string
|
||||
(inline_python_expression) @string.special
|
||||
[
|
||||
(scalar_variable)
|
||||
(list_variable)
|
||||
(dictionary_variable)
|
||||
] @variable
|
||||
|
||||
; Control structures
|
||||
|
||||
[
|
||||
"FOR"
|
||||
"IN"
|
||||
"IN RANGE"
|
||||
"IN ENUMERATE"
|
||||
"IN ZIP"
|
||||
(break_statement)
|
||||
(continue_statement)
|
||||
] @repeat
|
||||
(for_statement "END" @repeat)
|
||||
|
||||
"WHILE" @repeat
|
||||
(while_statement "END" @repeat)
|
||||
|
||||
[
|
||||
"IF"
|
||||
"ELSE IF"
|
||||
] @conditional
|
||||
(if_statement "END" @conditional)
|
||||
(if_statement (else_statement "ELSE" @conditional))
|
||||
|
||||
[
|
||||
"TRY"
|
||||
"EXCEPT"
|
||||
"FINALLY"
|
||||
] @exception
|
||||
(try_statement "END" @exception)
|
||||
(try_statement (else_statement "ELSE" @exception))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue