We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f9ff22 commit c892602Copy full SHA for c892602
peglib.h
@@ -3482,8 +3482,8 @@ class ParserGenerator {
3482
~g["LABEL"] <= seq(cho(chr('^'), lit(u8(u8"⇑"))), g["Spacing"]);
3483
3484
~g["Spacing"] <= zom(cho(g["Space"], g["Comment"]));
3485
- g["Comment"] <=
3486
- seq(chr('#'), zom(seq(npd(g["EndOfLine"]), dot())), g["EndOfLine"]);
+ g["Comment"] <= seq(chr('#'), zom(seq(npd(g["EndOfLine"]), dot())),
+ opt(g["EndOfLine"]));
3487
g["Space"] <= cho(chr(' '), chr('\t'), g["EndOfLine"]);
3488
g["EndOfLine"] <= cho(lit("\r\n"), chr('\n'), chr('\r'));
3489
g["EndOfFile"] <= npd(dot());
0 commit comments