From c9bfa38fe2413feb0c4495242fa8886c7f4669d3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 23 May 2003 13:16:38 +0000 Subject: fix "/^\d+\.\*$/" giving warning "you can remove \".*$\" at the end of your regexp" --- perl_checker.src/lexer.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1