mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat: add RON
This commit is contained in:
parent
70af55b428
commit
720f75f988
8 changed files with 100 additions and 2 deletions
53
queries/ron/highlights.scm
Normal file
53
queries/ron/highlights.scm
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
; Structs
|
||||
;------------
|
||||
|
||||
(enum_variant) @constant
|
||||
(struct_entry (identifier) @property)
|
||||
(struct_entry (enum_variant (identifier) @constant))
|
||||
(struct_name (identifier)) @type
|
||||
|
||||
(unit_struct) @type.builtin
|
||||
|
||||
|
||||
; Literals
|
||||
;------------
|
||||
|
||||
(string) @string
|
||||
(boolean) @boolean
|
||||
(integer) @number
|
||||
(float) @float
|
||||
(char) @character
|
||||
|
||||
|
||||
; Comments
|
||||
;------------
|
||||
|
||||
[
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @comment @spell
|
||||
|
||||
|
||||
; Punctuation
|
||||
;------------
|
||||
|
||||
["{" "}"] @punctuation.bracket
|
||||
|
||||
["(" ")"] @punctuation.bracket
|
||||
|
||||
["[" "]"] @punctuation.bracket
|
||||
|
||||
[
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"-"
|
||||
] @operator
|
||||
|
||||
; Special
|
||||
;------------
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
(ERROR) @error
|
||||
Loading…
Add table
Add a link
Reference in a new issue