+2006-01-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/lexer.ll: use sourcefilename iso. renameinput.
+
2006-01-01 Han-Wen Nienhuys <hanwen@xs4all.nl>
* mf/GNUmakefile ($(NCSB_TTFS)): revise rule. Create
%x markup
%x notes
%x quote
-%x renameinput
+%x sourcefilename
%x version
A [a-zA-Z]
<INITIAL,chords,lyrics,notes,figures>\\version{WHITE}* {
yy_push_state (version);
}
-<INITIAL,chords,lyrics,notes,figures>\\renameinput{WHITE}* {
- yy_push_state (renameinput);
+<INITIAL,chords,lyrics,notes,figures>\\sourcefilename{WHITE}* {
+ yy_push_state (sourcefilename);
}
<version>\"[^"]*\" { /* got the version number */
String s (YYText () + 1);
scm_module_define (top_scope, ly_symbol2scm ("version-seen?"), SCM_BOOL_T);
}
-<renameinput>\"[^"]*\" {
+<sourcefilename>\"[^"]*\" {
String s (YYText () + 1);
s = s.left_string (s.index_last ('\"'));
LexerError (_ ("quoted string expected after \\version").to_str0 ());
yy_pop_state ();
}
-<renameinput>. {
- LexerError (_ ("quoted string expected after \\renameinput").to_str0 ());
+<sourcefilename>>. {
+ LexerError (_ ("quoted string expected after \\sourcefilename").to_str0 ());
yy_pop_state ();
}
<longcomment>{