Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1112)

Issue 4057042: code review 4057042: regexp: throw an error on a bare ? (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by benlynn
Modified:
14 years, 5 months ago
Reviewers:
CC:
golang-dev, r, rsc
Visibility:
Public.

Description

regexp: throw an error on a bare ? Minor cleanup: - removed a duplicate test case - added a function to remove repeated code - for consistency, replaced "return nil" with a panic at an unreachable point Fixes issue 1428

Patch Set 1 #

Patch Set 2 : code review 4057042: regexp: throw an error on a bare ? #

Total comments: 1

Patch Set 3 : code review 4057042: regexp: throw an error on a bare ? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -29 lines) Patch
M src/pkg/regexp/all_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/regexp/regexp.go View 1 2 4 chunks +22 lines, -28 lines 0 comments Download

Messages

Total messages: 6
benlynn
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 5 months ago (2011-01-18 14:06:03 UTC) #1
r
http://codereview.appspot.com/4057042/diff/2001/src/pkg/regexp/regexp.go File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/4057042/diff/2001/src/pkg/regexp/regexp.go#newcode286 src/pkg/regexp/regexp.go:286: func (p *parser) checkbackslash() int { s/checkbackslash/checkBackslash/ and at ...
14 years, 5 months ago (2011-01-18 19:12:00 UTC) #2
r
Please fill out the CLA as described in contribute.html
14 years, 5 months ago (2011-01-18 19:12:24 UTC) #3
benlynn
Hello golang-dev@googlegroups.com, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-01-19 00:03:14 UTC) #4
r
LGTM
14 years, 5 months ago (2011-01-19 00:07:44 UTC) #5
rsc
14 years, 5 months ago (2011-01-19 18:47:05 UTC) #6
*** Submitted as f945ffd9fff1 ***

regexp: reject bare ?

Minor cleanup:
  - removed a duplicate test case
  - added a function to remove repeated code
  - for consistency, replaced "return nil" with a panic at an
    unreachable point

Fixes issue 1428.

R=golang-dev, r, rsc
CC=golang-dev
http://codereview.appspot.com/4057042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b