![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 4-10-2010 9:19, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
(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 (?).
indeed. but string.format("%0.3f %0.3f",a,b) does as does context("%0.3f %0.3f",a,b) so the % is just a normal token Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------