X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-lexer.cc;h=ba6429c3ea2798344702178363f200071c0f73cc;hb=f875ef39c544bd3499dae5360e9e24f69933575f;hp=5d87c83872d25052496f800de539760a71264c69;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/lily-lexer.cc b/lily/lily-lexer.cc index 5d87c83872..ba6429c3ea 100644 --- a/lily/lily-lexer.cc +++ b/lily/lily-lexer.cc @@ -310,7 +310,7 @@ void Lily_lexer::LexerError (char const *s) { if (include_stack_.empty ()) - message (_f ("error at EOF: %s", s) + "\n"); + non_fatal_error (s, _f ("%s:EOF", s)); else { error_level_ |= 1; @@ -319,6 +319,18 @@ Lily_lexer::LexerError (char const *s) } } +void +Lily_lexer::LexerWarning (char const *s) +{ + if (include_stack_.empty ()) + warning (s, _f ("%s:EOF", s)); + else + { + Input spot (*lexloc_); + spot.warning (s); + } +} + char Lily_lexer::escaped_char (char c) const {