[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Allow \markuplines to be assigned to a variable
From: |
Neil Puttock |
Subject: |
Re: [PATCH] Allow \markuplines to be assigned to a variable |
Date: |
Fri, 7 Jan 2011 21:54:54 +0000 |
On 4 January 2011 14:33, Reinhold Kainhofer <address@hidden> wrote:
> mmm = \markup "blah"
> \markup \mmm % works
> \mmm % doesn't work
This is a special case since \markup "blah" returns a string rather
than a markup (using simple_string ()). It works if you wrap the
string in braces:
mmm = \markup { "blah" }
\mmm
If you want something similar for \markuplines, all you need is a
similar rule to the one for MARKUP_IDENTIFIER in full_markup:
full_markup_list:
MARKUPLINES_IDENTIFIER {
$$ = $1;
}
| MARKUPLINES
{ PARSER->lexer_->push_markup_state (); }
markup_list {
$$ = $3;
PARSER->lexer_->pop_state ();
}
;
Cheers,
Neil