From ab7c9f356eeaf184fcd702e87aa98e07e5b64efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 2 Sep 2021 15:28:49 -0700 Subject: [PATCH] allow /- to cross linespaces Ref: https://github.com/kdl-org/kdl/issues/121 --- SPEC.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPEC.md b/SPEC.md index 3d342f5..9ee4976 100644 --- a/SPEC.md +++ b/SPEC.md @@ -399,9 +399,9 @@ Note that for the purpose of new lines, CRLF is considered _a single newline_. ``` nodes := linespace* (node nodes?)? linespace* -node := ('/-' ws*)? identifier (node-space node-space* node-props-and-args)* (node-space* node-children ws*)? node-space* node-terminator -node-props-and-args := ('/-' ws*)? (prop | value) -node-children := ('/-' ws*)? '{' nodes '}' +node := ('/-' node-space*)? identifier (node-space node-space* node-props-and-args)* (node-space* node-children ws*)? node-space* node-terminator +node-props-and-args := ('/-' node-space*)? (prop | value) +node-children := ('/-' node-space*)? '{' nodes '}' node-space := ws* escline ws* | ws+ node-terminator := single-line-comment | newline | ';' | eof