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

Issue 9414015: Issue 1551. Report error for new-line in single-line raw string. (Closed)

Created:
8 years, 10 months ago by scheglov
Modified:
8 years, 10 months ago
Reviewers:
codefu, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartScanner.java View 2 chunks +6 lines, -1 line 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java View 1 chunk +4 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/StringsErrorsNegativeTest.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java View 1 chunk +2 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 10 months ago (2012-02-16 18:56:25 UTC) #1
codefu
https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/google/dart/compiler/parser/DartScanner.java File compiler/java/com/google/dart/compiler/parser/DartScanner.java (right): https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/google/dart/compiler/parser/DartScanner.java#newcode883 compiler/java/com/google/dart/compiler/parser/DartScanner.java:883: } else if (c == '\n' && !multiLine) { ...
8 years, 10 months ago (2012-02-16 18:59:38 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/google/dart/compiler/parser/DartScanner.java File compiler/java/com/google/dart/compiler/parser/DartScanner.java (right): https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/google/dart/compiler/parser/DartScanner.java#newcode883 compiler/java/com/google/dart/compiler/parser/DartScanner.java:883: } else if (c == '\n' && !multiLine) { ...
8 years, 10 months ago (2012-02-16 19:13:26 UTC) #3
codefu
8 years, 10 months ago (2012-02-16 19:16:35 UTC) #4
On 2012/02/16 19:13:26, scheglov wrote:
>
https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/googl...
> File compiler/java/com/google/dart/compiler/parser/DartScanner.java (right):
> 
>
https://chromiumcodereview.appspot.com/9414015/diff/1/compiler/java/com/googl...
> compiler/java/com/google/dart/compiler/parser/DartScanner.java:883: } else if
(c
> == '\n' && !multiLine) {
> On 2012/02/16 18:59:38, codefu wrote:
> > Will this catch the case on windows as well?
> 
> Yes, on Windows \r\n is used.

LGTM...  my only concern was the token offsets being off.  It would take a
"unix2dos" of the file to change a n to a rn and the tests would fail; fragile
to external forces.

Powered by Google App Engine
This is Rietveld 408576698