[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:
Arnaud Charlet 2020-11-13 09:56:14 -05:00 committed by Pierre-Marie de Rodat
parent 5a85f3129c
commit 7b76fe3dcf
2 changed files with 0 additions and 2 deletions

View File

@ -1650,7 +1650,6 @@ package body Ch6 is
elsif Token = Tok_Comma then
T_Semicolon;
Scan; -- past comma
-- Special check for omitted separator

View File

@ -436,7 +436,6 @@ package body Tchk is
procedure T_Semicolon is
begin
if Token = Tok_Semicolon then
Scan;