* correctly read the region label in $region directives, resolves #39395

This commit is contained in:
florian 2021-10-28 21:13:01 +02:00
parent 8ca19a3b65
commit 95ad8f1694
2 changed files with 8 additions and 0 deletions

View File

@ -1914,6 +1914,8 @@ unit scandir;
procedure dir_region;
begin
current_scanner.skipspace;
current_scanner.readquotedstring;
end;
procedure dir_endregion;

6
tests/webtbs/tw39395.pp Normal file
View File

@ -0,0 +1,6 @@
{$mode delphi}
{$region ' { somelabel } '}
begin
end.