mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 21:29:42 +02:00
* correctly read the region label in $region directives, resolves #39395
This commit is contained in:
parent
8ca19a3b65
commit
95ad8f1694
@ -1914,6 +1914,8 @@ unit scandir;
|
|||||||
|
|
||||||
procedure dir_region;
|
procedure dir_region;
|
||||||
begin
|
begin
|
||||||
|
current_scanner.skipspace;
|
||||||
|
current_scanner.readquotedstring;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure dir_endregion;
|
procedure dir_endregion;
|
||||||
|
6
tests/webtbs/tw39395.pp
Normal file
6
tests/webtbs/tw39395.pp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
{$region ' { somelabel } '}
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user