Noeck <address@hidden> writes:
Hi,
why does compiling this code fail to compile with lilypond?
\version "2.16.0"
{ a }
%
The empty comment in the last line is the problem.
No, the problem is that there _is_ no last line. You have an EOF in the
middle of the line (not every editor will even allow producing that).
Since a line comment has to end with a newline, this is not a line
comment, and a non-comment % is beyond LilyPond's understanding.
One would need to non-trivially rewrite comment matching in the lexer to
get either a nicer error message or just silently a line comment even
though the line does not end.