]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lexer.ll
patch::: 1.1.5.jcn2: extender
[lilypond.git] / lily / lexer.ll
index b61c4c197553e7824110a8775b832bb9a9faeee2..551cf48aec682c7a4f755e35fae5912a76c05bf6 100644 (file)
@@ -93,6 +93,7 @@ LYRICS                ({AA}|{TEX})[^0-9 \t\n\f]*
 ESCAPED                [nt\\'"]
 PLET           \\\[
 TELP           \\\]
+EXTENDER       [_][_]
 
 %%
 
@@ -262,6 +263,8 @@ TELP                \\\]
        {LYRICS} {
                /* ugr. This sux. */
                String s (YYText ()); 
+               if (s == "__")
+                       return yylval.i = EXTENDER;
                int i = 0;
                        while ((i=s.index_i ("_")) != -1) // change word binding "_" to " "
                        *(s.ch_l () + i) = ' ';
@@ -286,6 +289,8 @@ TELP                \\\]
          yyterminate (); // can't move this, since it actually rets a YY_NULL
        }
 }
+
+
 {WORD} {
        return scan_bare_word (YYText ());
 }