]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3102: Allow EOF to occur in the middle of a line comment
authorDavid Kastrup <dak@gnu.org>
Fri, 11 Jan 2013 22:20:40 +0000 (23:20 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 16 Jan 2013 10:02:38 +0000 (11:02 +0100)
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}+     {