codetools: prevent av/error when typing '.' in array definition or float value, issue #34448

This commit is contained in:
Pascal Riekenberg 2022-06-29 21:38:45 +02:00
parent 852c512bba
commit 00fca7c4fa

View File

@ -9805,6 +9805,10 @@ var
CurNodeStart: Integer;
begin
// for example 'A.B'
if (ExprType.Context.Node=nil) then
// 'a:array[0. '
// 'f:=1. '
exit;
if fdfExtractOperand in Params.Flags then
Params.AddOperandPart('.');
if (not (NextAtomType in [vatSpace,vatIdentifier,vatPreDefIdentifier])) then