aboutsummaryrefslogtreecommitdiff
path: root/nomsu.4.peg
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.4.peg')
-rw-r--r--nomsu.4.peg4
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu.4.peg b/nomsu.4.peg
index b2e636f..7ca8423 100644
--- a/nomsu.4.peg
+++ b/nomsu.4.peg
@@ -118,14 +118,14 @@ inline_action (Action):
( (inline_arg (ws* (inline_arg / word))+)
/ (word (ws* (inline_arg / word))*))
(ws* inline_block)?
-inline_arg: inline_expression / inline_block
+inline_arg: inline_expression / inline_block / "(" ws* ")"
action (Action):
!section_division
({:target: (expression / "(" inline_block ")" / indented_block) :}
((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
+arg: expression / inline_block / indented_block / "(" ws* ")"
word: !number { operator_char+ / ident_char+ }