[Lazarus] [fpc-pascal] character escaping with ^LETTER

Martin Frb lazarus at mfriebe.de
Sun Jan 25 14:44:12 CET 2015


On 25/01/2015 13:23, Mattias Gaertner wrote:
> That is because the highlighter now treats ^{ as constant and so the
> {$endif} is not seen by the highlighter code.
>
> AFAIK only ^A..^Z are constants.
>

No,

program Project1;
begin
   writeln( ^{ );
end.

compiles. Also
   writeln( ^^ );
   writeln( ^. );
even space
   writeln( ^  );
are ok

But
   writeln( ^{ $);
does not.

Seems than directives have a special priority.

Also other multi char tokens (* are split
   writeln( ^(* 8 );
project1.lpr(4,12) Error: Incompatible types: got "Char" expected "LongInt"

So this is:  char * 8







More information about the Lazarus mailing list