fix(grammar): allow whitespace before a node-terminator (#98)

kudos to @lucretiel for spotting this one.
This commit is contained in:
Kat Marchán 2021-08-21 18:05:53 -07:00 committed by GitHub
parent 549ba1d2ec
commit 5883435297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ 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-props-and-args)* (node-space* node-children ws*)? node-terminator
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-space := ws* escline ws* | ws+