lua-users home
lua-l archive

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


Philippe Lhoste wrote:
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!

I've browsed a lot of Lua code with most whitespace removed. I'm happy to report that the Lua lexer for Scintilla highlights everything perfectly. Most excellent... I guess people who wants to use de-whitespaced Lua code had better know what they are doing. :-)

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia