summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/lexer.mll3
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
repsys editlog https://repos/svn/cnc/snapshot 14800 """ def parse_options(): parser = OptionParser(help=HELP) opts, args = parser.parse_args() if len(args) == 2: pkgdirurl, revision = args elif len(args) == 1: pkgdirurl, revision = "", args[0] else: raise Error, "invalid arguments" opts.pkgdirurl = package_url(pkgdirurl, mirrored=False) opts.revision = re.compile(r".*?(\d+).*").sub(r"\1", revision) return opts def editlog(pkgdirurl, revision): svn = SVN() svn.propedit("svn:log", pkgdirurl, rev=revision) def main(): do_command(parse_options, editlog) # vim:et:ts=4:sw=4