lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall wrote:
BTW: Has anyone noticed that the following:

  x=1y=2print(x,y)

is accepted by the lexer as valid Lua code (with or without
my patch)?

I guess most tools parsing Lua files won't handle this
(vim syntax highlighting doesn't).

YES! :-)
Scintilla lexer for Lua does highlight it correctly...
Probably pure chance, but hey!

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --