[Metalua-list] Re: metalua source parsing
agladysh at gmail.com
Sun Sep 14 16:10:45 GMT+2 2008
On Sun, Sep 14, 2008 at 9:49 PM, Fabien Fleutot <fleutot at gmail.com> wrote:
> Case in point, the "do" keyword in a for loop: if I modify the loop
> boundaries and the loop body, I'm going to weave my modified code at the
> positions of the old loop boundaries and loop body code, without touching
> the for loop itself, nor its textual representation. I'll let the "do"
> keyword untouched (with any spaces, '\n', '\t', or comments around it)
> rather than re-generating it.
Oh. I've entirely missed the point that I have lineinfo on loop
expression and loop body "slots". This effectively gives me all the
needed info. Looks like I do not need to parse loop text after all to
get "secondary" keyword positions. Good. More food for thought.
>> I have thought of another use-case here. It seemed to me that metalua
>> would be fine back-end for Lua syntax highlighting plugin for some
> My company is very open-source friendly, employs a bunch of Eclipse gurus
> and committers, and works on some stuff which heavily rely on Lua. Stay
> tuned ;-)
That is great indeed!
More information about the Metalua-list