ada: Fix gnatmake's parsing of adc files
authorRonan Desplanques <desplanques@adacore.com>
Fri, 4 Nov 2022 15:54:35 +0000 (16:54 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 21 Nov 2022 10:10:31 +0000 (11:10 +0100)
Before this patch, gnatmake's parser for adc files failed to ignore
semicolons located inside comments. This patch fixes that behavior.

gcc/ada/

* sfn_scan.adb (Scan_SFN_Pragmas): Improve handling of comments.

gcc/ada/sfn_scan.adb

index b428ed7..8ee9a09 100644 (file)
@@ -583,6 +583,7 @@ package body SFN_Scan is
 
          else
             Skip_Loop : loop
+               Skip_WS;
                exit Main_Scan_Loop when At_EOF;
                exit Skip_Loop when S (P) = ';';