SynEdit: Pas-Highlighter, fix "nil^" as deref, rather than the next source-char being a "^" control char like "^c".

(cherry picked from commit 68f4d56310)
This commit is contained in:
Martin 2024-07-19 11:13:28 +02:00
parent d703eb5231
commit 3a2e12409f

View File

@ -1311,8 +1311,10 @@ end;
function TSynPasSyn.Func35: TtkTokenKind;
begin
if KeyComp('Nil') then
Result := tkKey
if KeyComp('Nil') then begin
Result := tkKey;
fRange := fRange + [rsAfterIdentifierOrValueAdd];
end
else
if KeyComp('To') then
Result := tkKey