| 1 |
[ |
| 2 |
(comment) |
| 3 |
(extra_text) |
| 4 |
] @comment |
| 5 |
|
| 6 |
[ |
| 7 |
(section_header) |
| 8 |
(setting_statement) |
| 9 |
(keyword_setting) |
| 10 |
(test_case_setting) |
| 11 |
] @keyword |
| 12 |
|
| 13 |
(scalar_variable (variable_name) @variable) |
| 14 |
(list_variable (variable_name) @variable) |
| 15 |
(dictionary_variable (variable_name) @variable) |
| 16 |
(keyword_definition (name) @function) |
| 17 |
(test_case_definition (name) @function) |
| 18 |
|
| 19 |
(keyword_invocation (keyword) @function) |
| 20 |
(ellipses) @punctuation.delimiter |
| 21 |
|
| 22 |
(text_chunk) @string |
| 23 |
(inline_python_expression) @string.special |
| 24 |
[ |
| 25 |
(scalar_variable) |
| 26 |
(list_variable) |
| 27 |
(dictionary_variable) |
| 28 |
] @variable |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
"RETURN" @keyword.control.return |
| 33 |
|
| 34 |
[ |
| 35 |
"FOR" |
| 36 |
"IN" |
| 37 |
"IN RANGE" |
| 38 |
"IN ENUMERATE" |
| 39 |
"IN ZIP" |
| 40 |
(break_statement) |
| 41 |
(continue_statement) |
| 42 |
] @keyword.control.repeat |
| 43 |
(for_statement "END" @keyword.control.repeat) |
| 44 |
|
| 45 |
"WHILE" @keyword.control.repeat |
| 46 |
(while_statement "END" @keyword.control.repeat) |
| 47 |
|
| 48 |
[ |
| 49 |
"IF" |
| 50 |
"ELSE IF" |
| 51 |
] @keyword.control.conditional |
| 52 |
(if_statement "END" @keyword.control.conditional) |
| 53 |
(if_statement (else_statement "ELSE" @keyword.control.conditional)) |
| 54 |
|
| 55 |
[ |
| 56 |
"TRY" |
| 57 |
"EXCEPT" |
| 58 |
"FINALLY" |
| 59 |
] @keyword.control.exception |
| 60 |
(try_statement "END" @keyword.control.exception) |
| 61 |
(try_statement (else_statement "ELSE" @keyword.control.exception)) |