diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-17 18:41:10 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-17 18:41:10 +0200 |
| commit | 87c7a9c4e518f3384c1ff9fd7927d65691a6378c (patch) | |
| tree | 9b0ec2496a5ac8ff1130ff003d6c02b57608f8c1 | |
| parent | 4c93323a09fe9fbbe8c866eaed9022eff66a1ea1 (diff) | |
relax HardBreak grammar
| -rw-r--r-- | def.peg | 2 | ||||
| -rwxr-xr-x | def_HardBreak.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ LinkedWords <- '[' Words ']' '(' Uri ')' AnnotatedWords <- '[' Words ']' '{' ![{}] PlainWords '}' PlainWords <- PRINTABLES (SPACE PRINTABLES)* Uri <- '<' ![<>] PRINTABLES? '>' / ![<>] PRINTABLES -HardBreak <- SPACE SPACE NEWLINE +HardBreak <- SPACE SPACE+ NEWLINE # Terminals PRINTABLES <- [[:graph:]]+ diff --git a/def_HardBreak.py b/def_HardBreak.py index 386487d..cdc3c62 100755 --- a/def_HardBreak.py +++ b/def_HardBreak.py @@ -9,7 +9,7 @@ from railroad import * Diagram( Start("complex"), NonTerminal("SPACE"), - NonTerminal("SPACE"), + OneOrMore(NonTerminal("SPACE")), NonTerminal("NEWLINE"), End("complex") ).writeStandalone( |
