This commit is contained in:
Max Brunsfeld
2022-03-29 11:06:08 -07:00
parent dd1c88afa5
commit d466768eed
35 changed files with 523 additions and 372 deletions
@@ -0,0 +1,3 @@
("[" @open "]" @close)
("{" @open "}" @close)
("\"" @open "\"" @close)
@@ -0,0 +1,8 @@
name = "JSON"
path_suffixes = ["json"]
autoclose_before = ",]}"
brackets = [
{ start = "{", end = "}", close = true, newline = true },
{ start = "[", end = "]", close = true, newline = true },
{ start = "\"", end = "\"", close = true, newline = false },
]
@@ -0,0 +1,12 @@
(string) @string
(pair
key: (string) @property)
(number) @number
[
(true)
(false)
(null)
] @constant
@@ -0,0 +1,2 @@
(array "]" @end) @indent
(object "}" @end) @indent
@@ -0,0 +1,2 @@
(pair
key: (string (string_content) @name)) @item