mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
switch to tree-sitter-ron (#8624)
This commit is contained in:
parent
553ffbcaa0
commit
4f1d414d9c
@ -1689,7 +1689,10 @@ file-types = ["ron"]
|
||||
roots = []
|
||||
comment-token = "//"
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
grammar = "rust"
|
||||
|
||||
[[grammar]]
|
||||
name = "ron"
|
||||
source = { git = "https://github.com/zee-editor/tree-sitter-ron", rev = "7762d709a0f7c1f9e269d0125a2e8a7a69006146" }
|
||||
|
||||
[[language]]
|
||||
name = "robot"
|
||||
|
@ -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
Block a user