* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
definition terminates and that subroutine was defined after a declaration that
ended with a semicolon.
(extract_perl): Pass semicolon_delim=true.
Test case:
==========================================
my %a = 4;
sub b
{
}
==========================================
init_keywords ();
- /* Eat tokens until eof is seen. When extract_balanced returns
- due to an unbalanced closing brace, just restart it. */
+ /* Eat tokens until eof is seen. When extract_balanced returns due to an
+ unbalanced closing brace or due to a semicolon, just restart it. */
while (!extract_balanced (mlp,
token_type_rbrace, true,
- false, false, false,
+ true, true, false,
null_context, null_context_list_iterator,
1, arglist_parser_alloc (mlp, NULL)))
;