From 626b6cab7988e26766ba64178dd67e4093494552 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Sep 2018 15:19:50 -0700 Subject: Updated compiler to produce cool string output. --- nomsu.4.peg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nomsu.4.peg') diff --git a/nomsu.4.peg b/nomsu.4.peg index 8d8296e..b0ce3da 100644 --- a/nomsu.4.peg +++ b/nomsu.4.peg @@ -147,7 +147,7 @@ indented_text (Text): cool_quote: - '"' !(%nl+ !(=curr_indent)) + '"' &([^%nl] / %nl+ =curr_indent) cool_indented_text (Text): '"' _inline_text* @@ -155,6 +155,7 @@ cool_indented_text (Text): / disallowed_interpolation? {%nl+} {:curr_indent: indent :}) (indented_cool_plain_text / text_interpolation / {~ %nl+ (=curr_indent -> "") ~})* ('"' eol / missing_quote_err) + {:curr_indent: %nil :} indented_cool_plain_text (Text): {~ ((("\" blank_lines =curr_indent "..") -> "") / (!text_interpolation ((!("\n") escaped_char) / ('\\' -> '\') / '\')) / (cool_quote / [^%nl"\])+)+ (%nl+ (=curr_indent -> ""))* ~} -- cgit v1.2.3