mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-05 17:13:14 +02:00
codetools: prevent av/error when typing '.' in array definition or float value, issue #34448
This commit is contained in:
parent
852c512bba
commit
00fca7c4fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user