Disallow ws after (type) in grammar

Fix https://github.com/kdl-org/kdl/issues/131
This commit is contained in:
Lars Willighagen 2021-09-11 01:51:04 +02:00 committed by GitHub
parent 5a13b920c4
commit 1d3ce5237d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ bare-identifier := ((identifier-char - digit - sign) identifier-char* | sign ((i
identifier-char := unicode - linespace - [\/(){}<>;[]=,"]
keyword := boolean | 'null'
prop := identifier '=' value
value := (type ws*)? (string | number | keyword)
value := type? (string | number | keyword)
type := '(' identifier ')'
string := raw-string | escaped-string