Ian Mold wrote:
I think it would require a parser and not just a lexer.

I'm not sure, but I think that "order" and "by" are independent
SQL keywords, so it's ok to mark them as keywords.
I don't think that colorizing keywords with spaces would be useful.

Piotr

I don't believe that a parser is required for this - all that it needs is a simple string match.

Not so simple, they can be separated by more than one space, by tabs, perhaps by newline, or even a combination of these...

Unfortunately, it seems that because the keywords are passed to the lexer in a space-separated form, that it is not possible to include spaces in the keywords strings.

Well, thanks everyone for your assistance ... I guess I'd better roll up my sleeves and get to work on writing a lexer of my own :)

Good luck, if you really feel this is necessary.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to