mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -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
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