diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 15:19:50 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 15:20:07 -0700 |
| commit | 626b6cab7988e26766ba64178dd67e4093494552 (patch) | |
| tree | 47a12a5ac0364661335e53c045fd1a26b4a6fdf9 /nomsu.4.peg | |
| parent | 3e2844ef62d1b1fd099a790a0927e0768a2a846b (diff) | |
Updated compiler to produce cool string output.
Diffstat (limited to 'nomsu.4.peg')
| -rw-r--r-- | nomsu.4.peg | 3 |
1 files changed, 2 insertions, 1 deletions
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 -> ""))* ~} |
