Hello,
my observation:
---
\starttext
AAA
\startluacode
a = 10
context(a)
-- a = 20
context(a)
\stopluacode
\stoptext
---
- works OK, 'AAA', '10' and '20' 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
<schuster.wolfg...@googlemail.com> wrote:
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________