diff options
Diffstat (limited to 'runtime/queries/ron/highlights.scm')
-rw-r--r-- | runtime/queries/ron/highlights.scm | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/runtime/queries/ron/highlights.scm b/runtime/queries/ron/highlights.scm index 43766a4f..1061d559 100644 --- a/runtime/queries/ron/highlights.scm +++ b/runtime/queries/ron/highlights.scm @@ -1 +1,43 @@ -; inherits: rust
\ No newline at end of file +; 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 |