summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/try/lib/Try.pm12
1 files changed, 5 insertions, 7 deletions
diff --git a/t/try/lib/Try.pm b/t/try/lib/Try.pm
index 6de5bf8..64e6148 100644
--- a/t/try/lib/Try.pm
+++ b/t/try/lib/Try.pm
@@ -24,26 +24,24 @@ sub try_parser {
lex_read_space;
- die "syntax error" unless lex_peek_unichar eq '{';
+ die "syntax error" unless lex_peek(1) eq '{';
$try = parse_block;
lex_read_space;
- ensure_linestr_len(6);
- if (linestr =~ /^catch\b/) {
+ if (lex_peek(6) =~ /^catch\b/) {
lex_read_to(5);
lex_read_space;
- die "syntax error" unless lex_peek_unichar eq '{';
+ die "syntax error" unless lex_peek(1) eq '{';
$catch = parse_block;
}
lex_read_space;
- ensure_linestr_len(8);
- if (linestr =~ /^finally\b/) {
+ if (lex_peek(8) =~ /^finally\b/) {
lex_read_to(7);
lex_read_space;
- die "syntax error" unless lex_peek_unichar eq '{';
+ die "syntax error" unless lex_peek(1) eq '{';
$finally = parse_block;
}