diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 11:20:35 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 11:20:35 +0000 |
commit | 3e35dab169f409de8622f014b2e613b4f9849ef3 (patch) | |
tree | 0468012219198f10d7d60de350d7193474cbf4ee /perl_checker.src/lexer.mll | |
parent | 34eeb1ff87067534cb075e8569a85a25c95421f8 (diff) | |
download | perl-MDK-Common-3e35dab169f409de8622f014b2e613b4f9849ef3.tar perl-MDK-Common-3e35dab169f409de8622f014b2e613b4f9849ef3.tar.gz perl-MDK-Common-3e35dab169f409de8622f014b2e613b4f9849ef3.tar.bz2 perl-MDK-Common-3e35dab169f409de8622f014b2e613b4f9849ef3.tar.xz perl-MDK-Common-3e35dab169f409de8622f014b2e613b4f9849ef3.zip |
explicitly disallow <<=, >>= and **= (instead of having a syntax error)
Diffstat (limited to 'perl_checker.src/lexer.mll')
-rw-r--r-- | perl_checker.src/lexer.mll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll index e43aa9f..0153374 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -417,6 +417,11 @@ rule token = parse | "=" | "+=" | "-=" | "*=" | ".=" | "|=" | "&=" | "^=" | "||=" | "&&=" { ASSIGN(lexeme lexbuf, pos lexbuf) } +| "<<=" | ">>=" | "**=" { + warn lexbuf (Printf.sprintf "don't use \"%s\", use the expanded version instead" (lexeme lexbuf)) ; + ASSIGN(lexeme lexbuf, pos lexbuf) + } + | "," { COMMA(pos lexbuf) } | "=>" { RIGHT_ARROW(pos lexbuf) } | "not" { NOT(pos lexbuf) } |