]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lexer.ll
Issue 3102: Allow EOF to occur in the middle of a line comment
[lilypond.git] / lily / lexer.ll
index df05b45c38a7db4a72dcbe1e69d87313f2316574..9b1d6eb5aabb1f18d778715b502bc1532dac9eca 100644 (file)
@@ -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}+     {