aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp A2018-12-02 18:56:38 +0100
committerPhilipp A2018-12-02 18:56:38 +0100
commitc81bdf3cb38c91c42e8a40b41335a3222f807040 (patch)
tree4d71c7d82f396091a2b09d3176f13befa89faf82
parentd067cee68744691f3aebd939befc9837247e639c (diff)
downloadrust-rst-c81bdf3cb38c91c42e8a40b41335a3222f807040.tar.bz2
Fix inlines
-rw-r--r--src/rst.pest2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rst.pest b/src/rst.pest
index 9d1bd54..7b99b5c 100644
--- a/src/rst.pest
+++ b/src/rst.pest
@@ -99,7 +99,7 @@ admonition_content = _{ PEEK[..-1] ~ PUSH(" " ~ POP) ~ hanging_block ~ block* }
line = { !marker ~ inline+ ~ NEWLINE }
blank_line = _{ !marker ~ !inline ~ " "* ~ NEWLINE }
-inlines = _{ !marker ~ inline+ ~ (NEWLINE ~ PEEK[..] ~ !marker ~ inline+ ~ NEWLINE)* }
+inlines = _{ !marker ~ inline+ ~ ( NEWLINE ~ (PEEK[..] ~ !marker ~ inline+ ~ NEWLINE)+ )? }
inline = _{
reference
| str