On Sun, 10 Oct 2010 15:53:43 +0200 Joost van der Sluis <[email protected]> wrote:
> Hi all, > > There is a xpcom-branch which adds the 'constref' parameter type to Free > Pascal. This can be useful for connecting to external api's > (http://bugs.freepascal.org/view.php?id=7612) > > Normally I would ask Mattias to add the 'constref' parsing to the > codetools and in most cases it's done within a few hours. But this case > I though: I can do this myself. When is constref a keyword and when not? > Attached patch works for me, but I doubt it is ok. Why are there two > lists for keywords? (WordIsKeyword and WordIsDelphiKeyword) Is that for > the different fpc-compilation mode's? Yes. WordIsKeyword should probably better be named WordIsObjFPCKeyWord. > And what is AllKeyWords for? It is used by the simple beautifier. > And why is 'END' added to it, it is already in WordIsKeyword? Thanks for the hint. I removed it. > Maybe if some explanation for all these keywords-lists is added, someone > else can also have a look at them and fix/change somethings? Please create a feature request, so I don't forget it. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
