diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-19 18:53:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-19 18:53:05 +0000 |
commit | 04f79981f5965f302fb69ee787f74efc2ad20e6e (patch) | |
tree | b277c6aedf87a88b020d086e435dd1a375ec32f8 /perl_checker.src | |
parent | 7d7d7acc3090a0bc740e676180547e6fd1f082be (diff) | |
download | perl-MDK-Common-04f79981f5965f302fb69ee787f74efc2ad20e6e.tar perl-MDK-Common-04f79981f5965f302fb69ee787f74efc2ad20e6e.tar.gz perl-MDK-Common-04f79981f5965f302fb69ee787f74efc2ad20e6e.tar.bz2 perl-MDK-Common-04f79981f5965f302fb69ee787f74efc2ad20e6e.tar.xz perl-MDK-Common-04f79981f5965f302fb69ee787f74efc2ad20e6e.zip |
you can't replace \r with r
Diffstat (limited to 'perl_checker.src')
-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 d0a2152..9edf77b 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -820,7 +820,7 @@ and re_string_escape = parse | "x{" [^ '}']* '}' { hex_in_string lexbuf next_rule (skip_n_char_ 2 1 (lexeme lexbuf)) } | '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' '.' '*' '+' '?' '[' ']' '(' ')' '|' '{' '}' '-'] { +| ['r' 'b' 'f' '$' '@' '%' '"' 's' 'S' 'd' 'D' 'w' 'W' 'Q' 'E' 'b' '.' '*' '+' '?' '[' ']' '(' ')' '|' '{' '}' '-'] { next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf } | _ { |