summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-26 11:59:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-26 11:59:30 +0000
commit422d55f021d4fdd1dfa5eb460e816ce316f73687 (patch)
treedee448b5f99ae6de835af225817022b48c8e0b34
parenta448e88165084ad52cdfe6a2446bfa8f1ac4f4b5 (diff)
downloadperl_checker-422d55f021d4fdd1dfa5eb460e816ce316f73687.tar
perl_checker-422d55f021d4fdd1dfa5eb460e816ce316f73687.tar.gz
perl_checker-422d55f021d4fdd1dfa5eb460e816ce316f73687.tar.bz2
perl_checker-422d55f021d4fdd1dfa5eb460e816ce316f73687.tar.xz
perl_checker-422d55f021d4fdd1dfa5eb460e816ce316f73687.zip
really help detecting hashrefs
-rw-r--r--perl_checker.src/lexer.mll4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll
index 570add8..a9de7d2 100644
--- a/perl_checker.src/lexer.mll
+++ b/perl_checker.src/lexer.mll
@@ -88,8 +88,8 @@ let rec concat_bareword_paren accu = function
concat_bareword_paren (e :: accu) l
let rec bracket_bareword_is_hashref accu = function
- | (_, Parser.BRACKET _ as bracket) :: (_, Parser.BAREWORD _ as bareword) :: (_, Parser.RIGHT_ARROW _ as right_arrow) :: l ->
- bracket_bareword_is_hashref (right_arrow :: bareword :: bracket :: accu) l
+ | (pos, Parser.BRACKET bracket) :: (_, Parser.BAREWORD _ as bareword) :: (_, Parser.RIGHT_ARROW _ as right_arrow) :: l ->
+ bracket_bareword_is_hashref (right_arrow :: bareword :: (pos, Parser.BRACKET_HASHREF bracket) :: accu) l
| [] -> List.rev accu
| e :: l ->
bracket_bareword_is_hashref (e :: accu) l