From 0cdda0b711aa8ed52c1ed870cc6ec81cbec89c7b Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sat, 11 Sep 2021 02:11:41 +0200 Subject: [PATCH] Disallow ws after (type) in grammar (#138) Fixes: https://github.com/kdl-org/kdl/issues/131 --- SPEC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC.md b/SPEC.md index 5512009..f0443d7 100644 --- a/SPEC.md +++ b/SPEC.md @@ -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