mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:20:34 +02:00
Jedi code format: Fix bug parsing delphi inline vars like "var J: Integer := 22 + I;"
This commit is contained in:
parent
98b800100f
commit
5abac68141
@ -2678,6 +2678,12 @@ begin
|
|||||||
RecogniseType;
|
RecogniseType;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if (aVarType=vtInline) and (fcTokenList.FirstSolidTokenType=ttAssign) then
|
||||||
|
begin
|
||||||
|
Recognise(ttAssign);
|
||||||
|
RecogniseExpr(True);
|
||||||
|
end;
|
||||||
|
|
||||||
lc := fcTokenList.FirstSolidToken;
|
lc := fcTokenList.FirstSolidToken;
|
||||||
CheckNilInstance(lc, fcRoot.LastLeaf);
|
CheckNilInstance(lc, fcRoot.LastLeaf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user