feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

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

View file

@ -0,0 +1,50 @@
; 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: (_) @label)
(number) @number
(float) @float
(boolean) @boolean
(null) @constant.builtin
; Punctuation
[
","
":"
] @punctuation.delimiter
[ "{" "}" ] @punctuation.bracket
[ "[" "]" ] @punctuation.bracket
[ "<" ">" ] @punctuation.bracket
(("\"" @conceal)
(#set! conceal ""))
; Comments
(comment) @comment @spell
; Errors
(ERROR) @error

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,7 @@
[
(document)
(meta_map)
(map)
(array)
] @scope