mirror of https://github.com/kdl-org/kdl.git
Disallow ws after (type) in grammar
Fix https://github.com/kdl-org/kdl/issues/131
This commit is contained in:
parent
5a13b920c4
commit
1d3ce5237d
2
SPEC.md
2
SPEC.md
|
|
@ -419,7 +419,7 @@ bare-identifier := ((identifier-char - digit - sign) identifier-char* | sign ((i
|
||||||
identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
|
identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
|
||||||
keyword := boolean | 'null'
|
keyword := boolean | 'null'
|
||||||
prop := identifier '=' value
|
prop := identifier '=' value
|
||||||
value := (type ws*)? (string | number | keyword)
|
value := type? (string | number | keyword)
|
||||||
type := '(' identifier ')'
|
type := '(' identifier ')'
|
||||||
|
|
||||||
string := raw-string | escaped-string
|
string := raw-string | escaped-string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue