Re: [NTG-context] \startluacode and macro names with underscores

2012-09-04 Thread Hans Hagen
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()

Re: [NTG-context] \startluacode and macro names with underscores

2012-09-04 Thread Wolfgang Schuster
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 > > --

[NTG-context] \startluacode and macro names with underscores

2012-09-04 Thread 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 -- works userdata.number_one() -- fails -- context.number_two() --