Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Number rule

Yes,

So far it is just this:
http://git.eclipse.org/c/koneki/org.eclipse.koneki.ldt.git/tree/plugins/org.eclipse.koneki.ldt.ui/src/org/eclipse/koneki/ldt/ui/internal/editor/text/LuaCodeScanner.java#n114
It needs more abstraction, I can do it if you are interested.

Regards

Le 17/07/2012 17:24, Alexey Panchenko a écrit :
Hi Kevin,

We already have language specific implementations for _javascript_, Ruby and TCL.
The grammars looks mostly the same, the only difference seems to be if hex numbers are supported with "0x" prefix or not.
You are right, it makes sense to extract the base class.

Just for the reference, could you provide the link to your implementation?

Thanks,
Alex

On Tue, Jul 17, 2012 at 8:48 PM, Kevin KIN-FOO <kkinfoo@xxxxxxxxxxxxxxxxxx> wrote:
Hi,

I extended org.eclipse.jface.text.rules.NumberRule to handle Lua numbers. And I wonder if it could interest you as default number rule in the DLTK framework.

Regards
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev




Back to the top