diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-30 08:19:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-30 08:19:23 +0000 |
commit | a40a84536bba545bb010a12aac632317545b40b9 (patch) | |
tree | 714d840470ba49c7857b3f85e8139350844044d0 /perl_checker.src/lexer.mll | |
parent | 005060db6e6e943d46d70abdea1e8f51948cfe01 (diff) | |
download | perl-MDK-Common-a40a84536bba545bb010a12aac632317545b40b9.tar perl-MDK-Common-a40a84536bba545bb010a12aac632317545b40b9.tar.gz perl-MDK-Common-a40a84536bba545bb010a12aac632317545b40b9.tar.bz2 perl-MDK-Common-a40a84536bba545bb010a12aac632317545b40b9.tar.xz perl-MDK-Common-a40a84536bba545bb010a12aac632317545b40b9.zip |
\ *is* necessary in "$foo\{"
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 5a9fd4b..b00e728 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -787,7 +787,7 @@ and 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' '$' '@' '%' 'a' 'r'] { next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf } +| ['b' 'f' '$' '@' '%' 'a' 'r' '{'] { next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf } | _ { let c = lexeme lexbuf in (match !string_escape_kind with |