mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 09:00:06 +08:00
54 lines
662 B
Scheme
54 lines
662 B
Scheme
; 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
|