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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus