From 1d3ce5237d5f961b644eef56fa8a8227d006d5f2 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sat, 11 Sep 2021 01:51:04 +0200 Subject: [PATCH] Disallow ws after (type) in grammar Fix 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