Page 1 of 1

Syntax again: Delphi pragmas

Posted: Mon Mar 12, 2001 10:54 am
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