From b589c23741c3111c151c0fecc7e299fd321c13a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 17 Apr 2018 14:47:28 -0700 Subject: Disabled comment transpilation for now. --- nomsu.peg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu.peg') diff --git a/nomsu.peg b/nomsu.peg index 462e03e..bf2c639 100644 --- a/nomsu.peg +++ b/nomsu.peg @@ -107,8 +107,8 @@ inline_dict_item: dict_key: (({} ({|{%operator / (!number plain_word)}|} -> Tuple) {}) -> Text) / inline_expression -block_comment(Comment): "#.." { [^%nl]* (%nl+ %indent [^%nl]* (%nl+ %nodent [^%nl]*)* %dedent)? } -line_comment(Comment): "#" { [^%nl]* } +block_comment: "#.." [^%nl]* (%nl+ %indent [^%nl]* (%nl+ %nodent [^%nl]*)* %dedent)? +line_comment: "#" [^%nl]* eol: %ws* line_comment? (!. / &%nl) ignored_line: (%nodent (block_comment / line_comment)) / (%ws* (!. / &%nl)) -- cgit v1.2.3