diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:53:00 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 20:54:18 -0800 |
| commit | d3905474c9c84da4a789f6dc40aa1ae7d0bfaf2a (patch) | |
| tree | fcf0e2361b7a877ca2ddb0112bfb14a7e1ea1cfa /nomsu.5.peg | |
| parent | d30f6a397d274b0b942bdd2e2648b42538f1cbe2 (diff) | |
Removed EOL comments
Diffstat (limited to 'nomsu.5.peg')
| -rw-r--r-- | nomsu.5.peg | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nomsu.5.peg b/nomsu.5.peg index e51f72d..ae87f71 100644 --- a/nomsu.5.peg +++ b/nomsu.5.peg @@ -31,15 +31,13 @@ empty_block (Block): nodent: (unexpected_indent [^%nl]* / =curr_indent) indent: {~ =curr_indent (ws / (%tab -> ' '))+ ~} blank_lines: %nl ((nodent comment / ws*) %nl)* -eol: ws* eol_comment? (!. / &%nl) +eol: ws* (!. / &%nl) nl_nodent: blank_lines nodent nl_indent: blank_lines tab_error? {:curr_indent: indent :} (comment nl_nodent)* comment (Comment): "#" {~ [^%nl]* (%nl+ (indent -> '') [^%nl]*)* (%nl &%nl)* ~} -eol_comment (Comment): - "#" {[^%nl]*} unexpected_code: ws* _unexpected_code _unexpected_code (Error): @@ -236,7 +234,7 @@ inline_dict_entry: dict_key: text_word / inline_expression -operator_char: ['`~@^&*+=|<>?/%!-] +operator_char: [#'`~@^&*+=|<>?/%!-] ident_char: [a-zA-Z0-9_] / %utf8_char ws: " " |
