We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eab608 commit a3ea77bCopy full SHA for a3ea77b
spec/v0.1/maml.abnf
@@ -7,7 +7,7 @@ object = "{" [ members ] ws-comment-newline "}"
7
members = ws-comment-newline key-value ws [ comment ] separator members
8
members =/ ws-comment-newline key-value ws [ comment ] [ separator ]
9
10
-key-value = key ws ":" ws value
+key-value = key ws-comment-newline ":" ws-comment-newline value
11
12
key = string / identifier
13
spec/v0.1/maml.test.js
@@ -71,6 +71,15 @@ describe('MAML v0.1', () => {
71
`)
72
})
73
74
+ test('object keys with space and newlines', () => {
75
+ parse(`
76
+ {
77
+ key
78
+ :
79
+ "value"
80
+ }`)
81
+ })
82
+
83
test('array', () => {
84
parse(`[]`)
85
parse(`[1,2,3]`)
0 commit comments