diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-05-16 10:59:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-05-16 10:59:03 +0000 |
commit | e14bc2818a40a3b150859a57102c18585c5f5e86 (patch) | |
tree | 64e2096265b8de2f78dfae4620a098bf022eabb7 /perl_checker.src/lexer.mll | |
parent | 8fec18d1fd339a03ab6fcc41a4b4c302b9c88ecd (diff) | |
download | perl_checker-e14bc2818a40a3b150859a57102c18585c5f5e86.tar perl_checker-e14bc2818a40a3b150859a57102c18585c5f5e86.tar.gz perl_checker-e14bc2818a40a3b150859a57102c18585c5f5e86.tar.bz2 perl_checker-e14bc2818a40a3b150859a57102c18585c5f5e86.tar.xz perl_checker-e14bc2818a40a3b150859a57102c18585c5f5e86.zip |
fix pot generation (have \" instead of \\\")
Diffstat (limited to 'perl_checker.src/lexer.mll')
-rw-r--r-- | perl_checker.src/lexer.mll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll index 5f839bd..2b27689 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -802,7 +802,8 @@ and string_escape = parse | Delimited -> if c = String.make 1 !delimit_char then warn lexbuf ("change the delimit character " ^ String.make 1 !delimit_char ^ " to get rid of this escape") else warn_escape_unneeded lexbuf c); - next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf + let c = if c = "\"" then c else "\\" ^ c in + next_s c (Stack.pop next_rule) lexbuf } and re_string_escape = parse |