On 4-9-2012 15:40, Marco Patzer wrote:
Hi,
the luacode environment chokes on macro names with underscores.
Example:
\starttext
\unprotect
\def\number_two{two}
\startluacode
userdata = userdata or { }
function userdata.number_one() context("one") end
-- works
userdata.number_one()
Am 04.09.2012 um 15:40 schrieb Marco Patzer :
> Hi,
>
> the luacode environment chokes on macro names with underscores.
> Example:
>
> \starttext
> \unprotect
>
> \def\number_two{two}
>
> \startluacode
> userdata = userdata or { }
> function userdata.number_one() context("one") end
>
> --
Hi,
the luacode environment chokes on macro names with underscores.
Example:
\starttext
\unprotect
\def\number_two{two}
\startluacode
userdata = userdata or { }
function userdata.number_one() context("one") end
-- works
userdata.number_one()
-- fails
-- context.number_two()
--