@@ -2154,8 +2154,6 @@ unit scandir;
procedure dir_region;
begin
- current_scanner.skipspace;
- current_scanner.readquotedstring;
end;
procedure dir_endregion;
@@ -0,0 +1,9 @@
+program tb0722;
+
+{$mode delphi}
+{$region 'foobar}
+begin
+end.
@@ -1,3 +1,9 @@
+{ %FAIL }
+{ Note: this was original added as a succeeding test, but it turns out in Delphi
+ this does not compile either, because Delphi treats it as a comment and
+ not a string }
{$mode delphi}
{$region ' { somelabel } '}