mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-06 12:32:52 +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;
|
CurNodeStart: Integer;
|
||||||
begin
|
begin
|
||||||
// for example 'A.B'
|
// for example 'A.B'
|
||||||
|
if (ExprType.Context.Node=nil) then
|
||||||
|
// 'a:array[0. '
|
||||||
|
// 'f:=1. '
|
||||||
|
exit;
|
||||||
if fdfExtractOperand in Params.Flags then
|
if fdfExtractOperand in Params.Flags then
|
||||||
Params.AddOperandPart('.');
|
Params.AddOperandPart('.');
|
||||||
if (not (NextAtomType in [vatSpace,vatIdentifier,vatPreDefIdentifier])) then
|
if (not (NextAtomType in [vatSpace,vatIdentifier,vatPreDefIdentifier])) then
|
||||||
|
Loading…
Reference in New Issue
Block a user