Syntax again: Delphi pragmas

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Pavel

Syntax again: Delphi pragmas

Post by Pavel »

How to enable recognition of Delphi pragmas as either keywords
or preprocessor keywords?

I mean anything that looks like {$.........}
For example
{$IFDEF FOO blah blah blah}
{$A+}
{.$this is a regular comment}

With the existing syntax file (pascal.syn file by Tim Stewart), they look like comments. Ok, strictly speaking they _are_ comments - but actually they are directives.

Providing list of all possible words that can follow {$ is not necessary because
unknown word will cause compiler message.

I tried some obvious changes in the pascal.syn, but without success.

TIA,
-PA
Post Reply