diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-13 15:21:45 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-13 15:21:55 -0800 |
| commit | 0d88091f8d6cba8c552e2d3ffd3551819f8a4aed (patch) | |
| tree | 1381e42637e0921f4362f3b9a200b716e02c4fbb /nomsu.4.peg | |
| parent | efd743591e555e63dce7dd351e1e80bb38848669 (diff) | |
Cleanups and codegen improvements/fixes.
Diffstat (limited to 'nomsu.4.peg')
| -rw-r--r-- | nomsu.4.peg | 3 |
1 files changed, 1 insertions, 2 deletions
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: |
