From aa2f023d354524d1fc677e639c176f0ad28c7fb5 Mon Sep 17 00:00:00 2001 From: Tab Atkins Jr Date: Sun, 17 Oct 2021 08:02:57 -0700 Subject: [PATCH] [editorial] tweak node-props-and-args grammar * replaces a `foo foo*` with a `foo+` * switches the name of the production to singular, since it only represents one prop/arg at a time No normative changes intended. --- SPEC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index 96cad16..08df1f4 100644 --- a/SPEC.md +++ b/SPEC.md @@ -420,8 +420,8 @@ Note that for the purpose of new lines, CRLF is considered _a single newline_. ``` nodes := linespace* (node nodes?)? linespace* -node := ('/-' node-space*)? type? 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 := ('/-' node-space*)? type? identifier (node-space+ node-prop-or-arg)* (node-space* node-children ws*)? node-space* node-terminator +node-prop-or-arg := ('/-' node-space*)? (prop | value) node-children := ('/-' node-space*)? '{' nodes '}' node-space := ws* escline ws* | ws+ node-terminator := single-line-comment | newline | ';' | eof