![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
(Sorry, I've written bad information, now correcting (*)...)
Hello,
my observation:
---
\starttext
AAA
\startluacode
a = 10
context(a)
-- a = 20
context(a)
\stopluacode
\stoptext
---
- works OK, 'AAA', '10' and '10' (*) is printed.
If I modify the code:
---
\starttext
AAA
\startluacode
a = 10
context(a)
-- a = 20
context(a)
% a = 30
context(a)
\stopluacode
\stoptext
---
- I get an error:
! LuaTeX error <main ctx instance>:11: unexpected symbol near '%'.
So it seems to me that '--' works fine to start a comment but '%' doesn't (?).
Lukas
NB: ConTeXt ver: 2010.09.29 23:37 MKIV fmt: 2010.9.30 int: english/english
On Sun, 03 Oct 2010 08:33:23 +0200, Wolfgang Schuster
Am 03.10.2010 um 01:46 schrieb Aditya Mahajan:
Hi,
The following snippet
\startluacode -- \undefined why should a comment matter a = 10 \stopluacode
fails with
system > error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a comment matt a = 10 \dodostartluacode ...and \directlua \zerocount {#1 }} l.4 \stopluacode
Bug or limitation?
The comment character in the luacode environment is “%”.
Wolfgang