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

Issue 4277089: code review 4277089: scanner: treat line comments like in Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by gri
Modified:
14 years, 1 month ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

scanner: treat line comments like in Go - don't consume '\n' as part of line comment (otherwise grammars where '\n' are tokens won't see them after a line comment) - permit line comments to end in EOF

Patch Set 1 #

Patch Set 2 : diff -r 7247c0730fbf https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 7247c0730fbf https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 7247c0730fbf https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -48 lines) Patch
M src/pkg/scanner/scanner.go View 1 3 chunks +16 lines, -27 lines 0 comments Download
M src/pkg/scanner/scanner_test.go View 1 2 3 19 chunks +45 lines, -21 lines 0 comments Download

Messages

Total messages: 3
gri
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 1 month ago (2011-03-30 21:37:11 UTC) #1
r
LGTM http://codereview.appspot.com/4277089/diff/5001/src/pkg/scanner/scanner_test.go File src/pkg/scanner/scanner_test.go (right): http://codereview.appspot.com/4277089/diff/5001/src/pkg/scanner/scanner_test.go#newcode511 src/pkg/scanner/scanner_test.go:511: // make sure there were no token-internal errors ...
14 years, 1 month ago (2011-03-30 22:11:25 UTC) #2
gri
14 years, 1 month ago (2011-03-30 22:26:59 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=d4a8eff854f6 ***

scanner: treat line comments like in Go

- don't consume '\n' as part of line comment
(otherwise grammars where '\n' are tokens won't
see them after a line comment)

- permit line comments to end in EOF

R=r
CC=golang-dev
http://codereview.appspot.com/4277089
Sign in to reply to this message.

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