"Piotr Fusik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Neil Hodgson wrote: >> Ian Mold: >> >> >>>Is it possible to define a set of keywords that contain spaces? >> >> >> Its not currently implemented in any lexers and is somewhat complex >> as the two words may be on separate lines and lexing is often >> performed separately for adjacent lines such as when scrolling down >> reveals shows one line then the next. Depending on the language, it >> may also be possible for comments to appear between the two words. >>
I was only considering the simple case of a single space between two words. > > 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. 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 :) _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
