Zitat von Alexander Klenin <[EMAIL PROTECTED]>:

> I noticed that FreePascal highlighter does not overload IsKeyword function.
> Thinking that it should be trivial to implement, I have taken a look
> at SynHighlighterPas unit.
> I found some code worthy of TheDailyWTF.com ;-)
> TSynPasSyn class have more than a hundred functions names Fun15 to Func191,
> each recognizing one or two keywords, called via a sort of hash table.
> So my question is -- how do I reuse them to create IsKeyword function?
> Or is it better to just create a separate keyword list, similar to
> e.g. SynHighlighterPython?

Some words like 'end' depends on the context, if they are a keyword or an
identifier.
Please define IsKeyword.


Mattias

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to