diff --git a/components/synedit/lazsyntextarea.pp b/components/synedit/lazsyntextarea.pp index 0efca447e8..0cce9123ec 100644 --- a/components/synedit/lazsyntextarea.pp +++ b/components/synedit/lazsyntextarea.pp @@ -332,6 +332,7 @@ begin FNextMarkupLogPos := MaxInt; end; + ATokenInfo.Attr := nil; if FCurMarkupState = cmPastEOL then Result := False else Result := GetNextHighlighterTokenFromView(ATokenInfo, FNextMarkupPhysPos, FNextMarkupLogPos);