diff options
Diffstat (limited to 't/try/lib/Try.pm')
-rw-r--r-- | t/try/lib/Try.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/try/lib/Try.pm b/t/try/lib/Try.pm index 64e6148..20325aa 100644 --- a/t/try/lib/Try.pm +++ b/t/try/lib/Try.pm @@ -30,7 +30,7 @@ sub try_parser { lex_read_space; if (lex_peek(6) =~ /^catch\b/) { - lex_read_to(5); + lex_read(5); lex_read_space; die "syntax error" unless lex_peek(1) eq '{'; $catch = parse_block; @@ -39,7 +39,7 @@ sub try_parser { lex_read_space; if (lex_peek(8) =~ /^finally\b/) { - lex_read_to(7); + lex_read(7); lex_read_space; die "syntax error" unless lex_peek(1) eq '{'; $finally = parse_block; |