mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-19 17:15:02 +08:00
[Ada] Improve error recovery
gcc/ada/ * par-ch6.adb (P_Formal_Part): Remove extra call to Scan. * par-tchk.adb: Minor reformatting.
This commit is contained in:
parent
5a85f3129c
commit
7b76fe3dcf
@ -1650,7 +1650,6 @@ package body Ch6 is
|
||||
|
||||
elsif Token = Tok_Comma then
|
||||
T_Semicolon;
|
||||
Scan; -- past comma
|
||||
|
||||
-- Special check for omitted separator
|
||||
|
||||
|
@ -436,7 +436,6 @@ package body Tchk is
|
||||
|
||||
procedure T_Semicolon is
|
||||
begin
|
||||
|
||||
if Token = Tok_Semicolon then
|
||||
Scan;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user