Commit fad7791b authored by Robert Griesemer's avatar Robert Griesemer

fix regexp to strip comment markers

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=29221
CL=29221
parent ad8527c4
......@@ -221,7 +221,7 @@ var (
// TODO(rsc): Cannot use var initialization for regexps,
// because Regexp constructor needs threads.
func setupRegexps() {
comment_markers = makeRex("^[ \t]*(// ?| ?\\* ?)");
comment_markers = makeRex("^[ \t]*(// ?| ?/\\* ?)");
trailing_whitespace = makeRex("[ \t\r]+$");
comment_junk = makeRex("^[ \t]*(/\\*|\\*/)[ \t]*$");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment