mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
7
runtime/queries/ron/folds.scm
Normal file
7
runtime/queries/ron/folds.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
(array)
|
||||
(map)
|
||||
(tuple)
|
||||
(struct)
|
||||
(block_comment)
|
||||
] @fold
|
||||
53
runtime/queries/ron/highlights.scm
Normal file
53
runtime/queries/ron/highlights.scm
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
; 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
|
||||
12
runtime/queries/ron/indents.scm
Normal file
12
runtime/queries/ron/indents.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
(array)
|
||||
(map)
|
||||
(tuple)
|
||||
(struct)
|
||||
] @indent.begin
|
||||
|
||||
[ "{" "}" ] @indent.branch
|
||||
|
||||
[ "(" ")" ] @indent.branch
|
||||
|
||||
[ "[" "]" ] @indent.branch
|
||||
5
runtime/queries/ron/injections.scm
Normal file
5
runtime/queries/ron/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
([
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
12
runtime/queries/ron/locals.scm
Normal file
12
runtime/queries/ron/locals.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(source_file) @scope
|
||||
(source_file (array) @scope)
|
||||
(source_file (map) @scope)
|
||||
(source_file (struct) @scope)
|
||||
(source_file (tuple) @scope)
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
(struct_entry (identifier) @definition.field)
|
||||
(struct_entry (identifier) @definition.enum (enum_variant))
|
||||
|
||||
(struct (struct_name) @definition.type)
|
||||
Loading…
Add table
Add a link
Reference in a new issue