Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Issue 7218009: Make multi-line comments not count when checking whether --> is first on a line. (Closed)

Created:
9 years, 6 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Make multi-line comments not count when checking whether --> is first on a line. A multi-line comment containing a newline is considered a line-terminator for other purposes, but a "-->" following such a comment is considered as being on the same line as the text preceeding the multi-line comment. This behavior matches JSC matching Firefox. TEST=cctest/test-parsing/ScanHTMLEndComments Committed: http://code.google.com/p/v8/source/detail?r=8351

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changed logic as suggested. #

Total comments: 8

Patch Set 3 : Addressed review comments. Refactored scanner classes. #

Patch Set 4 : Undid class merge. Different renaming. #

Patch Set 5 : Undid too much. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -19 lines) Patch
M src/parser.cc View 1 2 3 7 chunks +7 lines, -7 lines 0 comments Download
M src/preparser.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M src/preparser-api.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/scanner.cc View 1 3 1 chunk +1 line, -0 lines 0 comments Download
M src/scanner-base.h View 1 2 3 4 2 chunks +11 lines, -3 lines 0 comments Download
M src/scanner-base.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 3 3 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
9 years, 6 months ago (2011-06-21 11:10:15 UTC) #1
William Hesse
LGTM, but I suggest better names for the flags. http://codereview.chromium.org/7218009/diff/1/src/scanner-base.cc File src/scanner-base.cc (right): http://codereview.chromium.org/7218009/diff/1/src/scanner-base.cc#newcode83 src/scanner-base.cc:83: ...
9 years, 6 months ago (2011-06-21 11:37:41 UTC) #2
William Hesse
LGTM, with comments. http://codereview.chromium.org/7218009/diff/2001/src/scanner-base.cc File src/scanner-base.cc (right): http://codereview.chromium.org/7218009/diff/2001/src/scanner-base.cc#newcode172 src/scanner-base.cc:172: // when checking whether there is ...
9 years, 6 months ago (2011-06-21 12:38:54 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/7218009/diff/2001/src/scanner-base.cc File src/scanner-base.cc (right): http://codereview.chromium.org/7218009/diff/2001/src/scanner-base.cc#newcode172 src/scanner-base.cc:172: // when checking whether there is non-whitespace before a ...
9 years, 6 months ago (2011-06-21 13:05:37 UTC) #4
William Hesse
9 years, 6 months ago (2011-06-21 13:29:38 UTC) #5
LGTM.

Powered by Google App Engine
This is Rietveld 408576698