diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-05-23 13:16:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-05-23 13:16:38 +0000 |
commit | 697d81fb486988bacb73e13c13bbdb65be775b2c (patch) | |
tree | e5ac8fc1ad657ab5dd61dd7cc7334b7f2e874e61 /perl_checker.src/lexer.mll | |
parent | 3b34f453abb3bc38dcd48fe7288773be7b2cee33 (diff) | |
download | perl-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.mll | 2 |
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 |