diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:21:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:21:27 +0000 |
commit | c3d34cd45e183015689139ec167275ed0e8e195a (patch) | |
tree | 8988a8dab1014a24dbb560402730906183cd12aa | |
parent | 7f676f49eaf1552445d2dda2e6effcb4be0b10f6 (diff) | |
download | perl-MDK-Common-c3d34cd45e183015689139ec167275ed0e8e195a.tar perl-MDK-Common-c3d34cd45e183015689139ec167275ed0e8e195a.tar.gz perl-MDK-Common-c3d34cd45e183015689139ec167275ed0e8e195a.tar.bz2 perl-MDK-Common-c3d34cd45e183015689139ec167275ed0e8e195a.tar.xz perl-MDK-Common-c3d34cd45e183015689139ec167275ed0e8e195a.zip |
"^" has a special meaning in regexps, so escaping it can be necessary
-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 e21dd32..d87249c 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -931,7 +931,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" } -| ['r' '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 } | _ { |