mirror of https://github.com/helix-editor/helix
switch to tree-sitter-ron (#8624)
parent
553ffbcaa0
commit
4f1d414d9c
@ -1 +1,43 @@
|
||||
; inherits: rust
|
||||
; Literals
|
||||
;------------
|
||||
|
||||
(string) @string
|
||||
(boolean) @constant.builtin.boolean
|
||||
(integer) @constant.numeric.integer
|
||||
(float) @constant.numeric.float
|
||||
(char) @constant.character
|
||||
|
||||
; Structs
|
||||
;------------
|
||||
|
||||
(enum_variant) @type.enum.variant
|
||||
(struct_entry (_) @variable.other.member ":")
|
||||
(struct_name (identifier)) @type
|
||||
|
||||
|
||||
|
||||
|
||||
; Comments
|
||||
;------------
|
||||
|
||||
(line_comment) @comment.line
|
||||
(block_comment) @comment.block
|
||||
|
||||
|
||||
; Punctuation
|
||||
;------------
|
||||
|
||||
"," @punctuation.delimiter
|
||||
":" @punctuation.delimiter
|
||||
|
||||
"(" @punctuation.bracket
|
||||
")" @punctuation.bracket
|
||||
"[" @punctuation.bracket
|
||||
"]" @punctuation.bracket
|
||||
"{" @punctuation.bracket
|
||||
"}" @punctuation.bracket
|
||||
|
||||
|
||||
; Special
|
||||
;------------
|
||||
(escape_sequence) @constant.character.escape
|
||||
|
@ -1 +1,12 @@
|
||||
; inherits: rust
|
||||
[
|
||||
(array)
|
||||
(map)
|
||||
(tuple)
|
||||
(struct)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @outdent
|
||||
|
@ -1 +1,2 @@
|
||||
; inherits: rust
|
||||
([(line_comment) (block_comment)] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
Loading…
Reference in New Issue