mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:49:19 +02:00
* support record fields with the same name as registers in subscripts in
the assembler reader git-svn-id: trunk@29822 -
This commit is contained in:
parent
504a9d1594
commit
1dd5f579e6
@ -1282,10 +1282,16 @@ unit raatt;
|
|||||||
while (actasmtoken=AS_DOT) do
|
while (actasmtoken=AS_DOT) do
|
||||||
begin
|
begin
|
||||||
Consume(AS_DOT);
|
Consume(AS_DOT);
|
||||||
if actasmtoken=AS_ID then
|
|
||||||
s:=s+'.'+actasmpattern;
|
{ a record field could have the same name as a register }
|
||||||
if not Consume(AS_ID) then
|
if actasmtoken in [AS_ID,AS_REGISTER] then
|
||||||
|
begin
|
||||||
|
s:=s+'.'+actasmpattern;
|
||||||
|
consume(actasmtoken)
|
||||||
|
end
|
||||||
|
else
|
||||||
begin
|
begin
|
||||||
|
Consume(AS_ID);
|
||||||
RecoverConsume(true);
|
RecoverConsume(true);
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user