feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,5 @@
[
(meta_map)
(map)
(array)
] @fold

View file

@ -0,0 +1,54 @@
; Literals
(string) @string
(escape_sequence) @string.escape
(hex_blob
"x" @character.special
(_) @string)
(esc_blob
"b" @character.special
(_) @string)
(datetime
"d" @character.special
(_) @string.special)
(_
key: (_) @property)
(number) @number
(float) @number.float
(boolean) @boolean
(null) @constant.builtin
; Punctuation
[
","
":"
] @punctuation.delimiter
[
"{"
"}"
] @punctuation.bracket
[
"["
"]"
] @punctuation.bracket
[
"<"
">"
] @punctuation.bracket
("\"" @string
(#set! conceal ""))
; Comments
(comment) @comment @spell

View file

@ -0,0 +1,17 @@
[
(meta_map)
(map)
(imap)
(array)
] @indent.begin
[
"]"
"}"
">"
] @indent.end @indent.branch
[
(ERROR)
(comment)
] @indent.auto

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,6 @@
[
(document)
(meta_map)
(map)
(array)
] @local.scope