summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/lexer.mll
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-05-23 13:16:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-05-23 13:16:38 +0000
commit697d81fb486988bacb73e13c13bbdb65be775b2c (patch)
treee5ac8fc1ad657ab5dd61dd7cc7334b7f2e874e61 /perl_checker.src/lexer.mll
parent3b34f453abb3bc38dcd48fe7288773be7b2cee33 (diff)
downloadperl-MDK-Common-697d81fb486988bacb73e13c13bbdb65be775b2c.tar
perl-MDK-Common-697d81fb486988bacb73e13c13bbdb65be775b2c.tar.gz
perl-MDK-Common-697d81fb486988bacb73e13c13bbdb65be775b2c.tar.bz2
perl-MDK-Common-697d81fb486988bacb73e13c13bbdb65be775b2c.tar.xz
perl-MDK-Common-697d81fb486988bacb73e13c13bbdb65be775b2c.zip
fix "/^\d+\.\*$/" giving warning "you can remove \".*$\" at the end of your regexp"
Diffstat (limited to 'perl_checker.src/lexer.mll')
-rw-r--r--perl_checker.src/lexer.mll2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll
index 2b27689..e43aa9f 100644
--- a/perl_checker.src/lexer.mll
+++ b/perl_checker.src/lexer.mll
@@ -815,7 +815,7 @@ and re_string_escape = parse
| 'x' [^ '{'] _ { hex_in_string lexbuf next_rule (skip_n_char 1 (lexeme lexbuf)) }
| '\n' { die lexbuf "do not use \"\\\" before end-of-line, it's useless and generally bad" }
| ['b' 'f' '$' '@' '%' '"' 's' 'S' 'd' 'D' 'w' 'W' 'Q' 'E' 'b' '.' '*' '+' '?' '[' ']' '(' ')' '|' '{' '}' '-'] {
- next (Stack.pop next_rule) lexbuf
+ next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf
}
| _ {
let c = lexeme lexbuf in