lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\sourcefileline


From: Erik Sandberg
Subject: \sourcefileline
Date: Mon, 31 Jul 2006 23:40:25 +0200

Hi,

The attached patch makes lilypond-book display lilypond errors
correctly, so file name and line number always points to the right
spot in the tely/ly/itely source file, using standard file:line:col
notation.

I have introduced a command \sourcefileline in the lexer, and then
modified lily-book to use this command.

sourcefilenameline works as follows:

\sourcefilename "foo.tely"
\sourcefileline 100
\x

=>
foo.tely:101:0: error: unknown escaped string

The \sourcefileline command is implemented in a dirty way, using
sscanf. Should I attempt to softcode \sourcefilename, \sourcefileline
and \version?

--
Erik

Attachment: es-line-number.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]