lilypond-devel
[Top][All Lists]
Advanced

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

comment in #{ ... #}


From: Werner LEMBERG
Subject: comment in #{ ... #}
Date: Fri, 22 Oct 2010 12:10:34 +0200 (CEST)

[current git]

It seems that it is not possible to have a comment within #{ ... #}.

In this example

  T = #(define-music-function (parser location music) (ly:music?)
        #{
           \times 2/3 $music   ; $
        #}
      )   

  \relative {
    \T { c c c }
  }

lilypond complains about a syntax error.  Replacing the `;' with `%' I
get a syntax error also...

Is it possible at all to have a comment within #{...#}?  It would be
quite useful: For example, if you write a LaTeX document with lilypond
environments, and your editor supports syntax coloring, the unbalanced
`$' in the above macro causes incorrect coloring.

BTW, according to the docs (section 3.1.5, File structure), `%' should
be possible.


    Werner



reply via email to

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