From 485f6c2b0f3c69c94458b67c797e4d4eb63c6c3e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 22 Jul 2013 18:33:38 -0400 Subject: work around bugs in lex_next_chunk --- t/peek.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 t/peek.t (limited to 't') diff --git a/t/peek.t b/t/peek.t new file mode 100644 index 0000000..6d2d989 --- /dev/null +++ b/t/peek.t @@ -0,0 +1,22 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +{ + package Parser; + + use Parse::Keyword { foo => \&parse_foo }; + + sub foo {} + sub parse_foo { + lex_peek(99999999); + return sub {}; + } + + ::is_deeply([ foo ], []); +} + +is(__LINE__, 20); + +done_testing; -- cgit v1.2.3-54-g00ecf