From 9c79c3508264a73a54882f0d0c27940105e9662c Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 8 Nov 2021 10:37:40 +0100 Subject: [PATCH] syxsyn, fix lexOpAndOpOpAndOpEqual lookup tested the wrong char leading to `-1` being colourized as a whole symbol --- src/u_sxsyn.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u_sxsyn.pas b/src/u_sxsyn.pas index 4cd7d4b0..fccacc42 100644 --- a/src/u_sxsyn.pas +++ b/src/u_sxsyn.pas @@ -399,7 +399,7 @@ begin nextPChar := safeLookupChar(); if nextPChar <> nil then begin - nextChar := fLineBuf[fTokStop]; + nextChar := nextPChar^; if (nextChar = op) or (nextChar = '=') then fTokStop += 1; end;