aboutsummaryrefslogtreecommitdiff
path: root/nomsu.4.peg
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-10-30 20:32:14 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-10-30 20:32:49 -0700
commite7e84c9eda38c930f5475301de4a449dcf59e8b6 (patch)
treeb0d3890516170ca5aee0269aace10121b97a7593 /nomsu.4.peg
parentfdf7a537c8ae13fc7ccb32278e5e364a52005443 (diff)
Fix for compiler not parenthesizing method targets, fix for parser not
recognizing \ line continuation, and improvements to upgrade tool API.
Diffstat (limited to 'nomsu.4.peg')
-rw-r--r--nomsu.4.peg6
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu.4.peg b/nomsu.4.peg
index 06bfead..a3677c6 100644
--- a/nomsu.4.peg
+++ b/nomsu.4.peg
@@ -121,9 +121,9 @@ inline_action (Action):
inline_arg: inline_expression / inline_block
action (Action):
!section_division
- ({:target: arg :} (eol nl_nodent "..")? ws* "::" (eol nl_nodent "..")? ws*)?
- ( (arg ((eol nl_nodent "..")? ws* (arg / word))+)
- / (word ((eol nl_nodent "..")? ws* (arg / word))*))
+ ({:target: arg :} ((ws* "\")? eol nl_nodent "..")? ws* "::" ((ws* "\")? eol nl_nodent "..")? ws*)?
+ ( (arg (((ws* "\")? eol nl_nodent "..")? ws* (arg / word))+)
+ / (word (((ws* "\")? eol nl_nodent "..")? ws* (arg / word))*))
arg: expression / inline_block / indented_block
word: !number { operator_char+ / ident_char+ }