From: David Kastrup Date: Fri, 11 Jan 2013 22:20:40 +0000 (+0100) Subject: Issue 3102: Allow EOF to occur in the middle of a line comment X-Git-Tag: release/2.17.11-1~20 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2a12b7b4a23ccfe7b1dc5e0e769fab1aa9124474;hp=ed71f11424450515d9daa1e48a355b4a027c6bb2;p=lilypond.git Issue 3102: Allow EOF to occur in the middle of a line comment --- diff --git a/lily/lexer.ll b/lily/lexer.ll index df05b45c38..9b1d6eb5aa 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -217,16 +217,10 @@ BOM_UTF8 \357\273\277 "%{" { yy_push_state (longcomment); } - %[^{\n\r][^\n\r]*[\n\r] { + %[^{\n\r][^\n\r]*[\n\r]? { (void) YYText_utf8 (); } - %[^{\n\r] { // backup rule - (void) YYText_utf8 (); - } - %[\n\r] { - } - %[^{\n\r][^\n\r]* { - (void) YYText_utf8 (); + %[\n\r]? { } {WHITE}+ {