From 0d88091f8d6cba8c552e2d3ffd3551819f8a4aed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 13 Dec 2018 15:21:45 -0800 Subject: Cleanups and codegen improvements/fixes. --- nomsu.4.peg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nomsu.4.peg') diff --git a/nomsu.4.peg b/nomsu.4.peg index d1840f9..95e3ef0 100644 --- a/nomsu.4.peg +++ b/nomsu.4.peg @@ -158,7 +158,7 @@ indented_text (Text): _inline_text* (('\' %nl+ {:curr_indent: indent :} ('..')?) / disallowed_interpolation? {%nl+} {:curr_indent: indent :}) - (indented_plain_text / text_interpolation / illegal_char / {~ %nl+ (=curr_indent -> "") ~})* + (indented_plain_text / text_interpolation / illegal_char / {~ %nl+ (=curr_indent -> "") [ ]* ~})* ('"' eol / eof / missing_quote_err) {:curr_indent: %nil :} -- Tracking text-lines-within-indented-text as separate objects allows for better debugging line info @@ -167,7 +167,6 @@ indented_plain_text (Text): ((("\" blank_lines =curr_indent "..") -> "") / ('\\' -> '\') / (!text_interpolation (escaped_char / '\')) / (nonterminal_quote / text_char)+)+ - (%nl+ (=curr_indent -> ""))* ~} text_interpolation: -- cgit v1.2.3