[Lazarus] SynEdit: TSynPasSyn and keywords

Mattias Gärtner nc-gaertnma at netcologne.de
Wed Oct 8 18:50:41 CEST 2008


Zitat von Alexander Klenin <klenin at gmail.com>:

> On Wed, Oct 8, 2008 at 22:06, Mattias Gärtner <nc-gaertnma at netcologne.de>
> wrote:
>
> >> 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.
>
> Hm. This does not answer my question, so I suppose I have to decide myself
> ;-)

This was the answer to your question. ;)

> Here is simplified patch, which ignores context-sensitive modifiers for now.
> Reserved word lists taken from FPC Reference Guide.

Thanks. I added it with a small comment.

Mattias




More information about the Lazarus mailing list