aboutsummaryrefslogtreecommitdiff
path: root/nomsu.2.peg
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-20 19:36:05 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-20 19:36:18 -0700
commit878fff6db510d5ce15d5f274e1fe9eecc2b7799f (patch)
tree208ffe124a90d0abe74ee8926c941f3d554b7712 /nomsu.2.peg
parent8deb59b6a70420815aac949cc89f0dbf53fa6915 (diff)
Added documentation.
Diffstat (limited to 'nomsu.2.peg')
-rw-r--r--nomsu.2.peg1
1 files changed, 1 insertions, 0 deletions
diff --git a/nomsu.2.peg b/nomsu.2.peg
index a16474d..1ed88ea 100644
--- a/nomsu.2.peg
+++ b/nomsu.2.peg
@@ -102,6 +102,7 @@ indented_text (Text):
'".."' eol %nl {%nl*} {:curr_indent: indent :}
(indented_plain_text / text_interpolation / {~ %nl+ (=curr_indent -> "") ~})*
(!! [^%nl]+ -> "Unexpected character while parsing Text" !!)?
+-- Tracking text-lines-within-indented-text as separate objects allows for better debugging line info
indented_plain_text (Text):
{~ (("\\" -> "\") / (("\" blank_lines =curr_indent "..") -> "") / (!text_interpolation "\") / [^%nl\]+)+
(%nl+ (=curr_indent -> ""))* ~}