mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +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;
|
||||
end;
|
||||
|
||||
if (aVarType=vtInline) and (fcTokenList.FirstSolidTokenType=ttAssign) then
|
||||
begin
|
||||
Recognise(ttAssign);
|
||||
RecogniseExpr(True);
|
||||
end;
|
||||
|
||||
lc := fcTokenList.FirstSolidToken;
|
||||
CheckNilInstance(lc, fcRoot.LastLeaf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user