X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flexer.ll;h=a1c7623703f107f67a50401d80efc87e186c89e6;hb=d393626a5a05ae79713f94714cd203dc8ba2dd14;hp=54c4c3cd0c8009b874771f2d9549c109cce5f891;hpb=86af3fd5421e6a42469fcfbc5689adfde4bec084;p=lilypond.git diff --git a/lily/lexer.ll b/lily/lexer.ll index 54c4c3cd0c..a1c7623703 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -164,7 +164,7 @@ HYPHEN -- } } -\\encoding{WHITE}* { +\\encoding{WHITE}* { yy_push_state (encoding); } \\version{WHITE}* { @@ -243,16 +243,14 @@ HYPHEN -- \\include { yy_push_state (incl); } -\"[^"]*\";? { /* got the include file name */ -/* FIXME: semicolon? */ +\"[^"]*\" { /* got the include file name */ String s (YYText ()+1); s = s.left_string (s.index_last ('"')); new_input (s, sources_); yy_pop_state (); } -\\{BLACK}*;?{WHITE} { /* got the include identifier */ -/* FIXME: semicolon? */ +\\{BLACK}*{WHITE} { /* got the include identifier */ String s = YYText () + 1; strip_trailing_white (s); if (s.length () && (s[s.length () - 1] == ';')) @@ -356,7 +354,6 @@ HYPHEN -- yylval.i = String_convert::dec2int (String (YYText () +1)); return E_UNSIGNED; } - \" { start_quote (); }