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?
-- Alexander S. Klenin Insight Experts Ltd. _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
