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 | 01b8c19bc5da6f55a2667f86939eb35961e6eabf (patch) | |
tree | bc4bccf4de681ba06fd6bc67a0d7e57097d2b53e /perl_checker.src/lexer.mll | |
parent | 48f0a7af6acc58f586740b921d7fa0fbde722d92 (diff) | |
download | perl-MDK-Common-01b8c19bc5da6f55a2667f86939eb35961e6eabf.tar perl-MDK-Common-01b8c19bc5da6f55a2667f86939eb35961e6eabf.tar.gz perl-MDK-Common-01b8c19bc5da6f55a2667f86939eb35961e6eabf.tar.bz2 perl-MDK-Common-01b8c19bc5da6f55a2667f86939eb35961e6eabf.tar.xz perl-MDK-Common-01b8c19bc5da6f55a2667f86939eb35961e6eabf.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 |