Skip to content

Commit 218340c

Browse files
committed
chore: update syntax and test doc
1 parent cd86ad5 commit 218340c

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

jsona.configuration.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
{ "open": "'", "close": "'", "notIn": ["string"] },
1515
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
1616
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }
17-
]
17+
],
18+
"indentationRules": {
19+
"increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)",
20+
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
21+
}
1822
}

test/repository-syntax.jsona

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
@number(-3)
1313
@string('abc "def" ghi')
1414
@array([3,4])
15-
@object({k: "v"})
15+
@object({
16+
k1: "v1",
17+
k2: "v2",
18+
})
1619

17-
nullValue: null,
20+
nullValue: /* xyz */ null,
1821
boolTrue: true,
1922
boolFale: false,
2023
float: 3.14,

0 commit comments

Comments
 (0)