mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(robot): highlight query improvements
- Highlight "ELSE" in inline_if_statement - Use @string.documentation for "Documentation" settings - Add `@spell` capture to "Documentation" settings
This commit is contained in:
parent
fcd2a5fea9
commit
731fbe9ac3
1 changed files with 50 additions and 0 deletions
|
|
@ -65,6 +65,10 @@
|
|||
(else_statement
|
||||
"ELSE" @keyword.conditional))
|
||||
|
||||
(inline_if_statement
|
||||
(inline_else_statement
|
||||
"ELSE" @keyword.conditional))
|
||||
|
||||
[
|
||||
"TRY"
|
||||
"EXCEPT"
|
||||
|
|
@ -77,3 +81,49 @@
|
|||
(try_statement
|
||||
(else_statement
|
||||
"ELSE" @keyword.exception))
|
||||
|
||||
; Extra captures for "Documentation" settings
|
||||
(setting_statement
|
||||
name: (setting_name) @_name
|
||||
(arguments
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
||||
(setting_statement
|
||||
name: (setting_name) @_name
|
||||
(arguments
|
||||
(continuation
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation)))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
||||
(keyword_setting
|
||||
name: (keyword_setting_name) @_name
|
||||
(arguments
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
||||
(keyword_setting
|
||||
name: (keyword_setting_name) @_name
|
||||
(arguments
|
||||
(continuation
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation)))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
||||
(test_case_setting
|
||||
name: (test_case_setting_name) @_name
|
||||
(arguments
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
||||
(test_case_setting
|
||||
name: (test_case_setting_name) @_name
|
||||
(arguments
|
||||
(continuation
|
||||
(argument
|
||||
(text_chunk) @spell @string.documentation)))
|
||||
(#any-of? @_name "Documentation" "documentation" "DOCUMENTATION"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue