mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
62
runtime/queries/ron/highlights.scm
Normal file
62
runtime/queries/ron/highlights.scm
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
; Structs
|
||||
;------------
|
||||
(enum_variant) @constant
|
||||
|
||||
(struct_entry
|
||||
(identifier) @variable.member)
|
||||
|
||||
(struct_entry
|
||||
(enum_variant
|
||||
(identifier) @constant))
|
||||
|
||||
(struct_name
|
||||
(identifier)) @type
|
||||
|
||||
(unit_struct) @type.builtin
|
||||
|
||||
; Literals
|
||||
;------------
|
||||
(string) @string
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(integer) @number
|
||||
|
||||
(float) @number.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue