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

Unified Diff: lib/compiler/implementation/string_validator.dart

Issue 10920066: issue 4817 fixed. Implemented raw strings with 'r' instead of '@' for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. Marked raw_string_test as pass for dart2js-ff and dart2dart Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/string_validator.dart
diff --git a/lib/compiler/implementation/string_validator.dart b/lib/compiler/implementation/string_validator.dart
index 1017931b4dd2d25908d5d7c6193831a31b920b84..c127942250ecbe75576d702fac47d4c03665eb76 100644
--- a/lib/compiler/implementation/string_validator.dart
+++ b/lib/compiler/implementation/string_validator.dart
@@ -49,7 +49,8 @@ class StringValidator {
bool raw = false;
int quoteLength = 1;
int quoteChar = source.next();
- if (quoteChar == $AT) {
+ // TODO(aprelev@gmail.com): Remove deprecated "quoteChar === $AT ||" below.
+ if (quoteChar === $AT || quoteChar === $r) {
raw = true;
quoteChar = source.next();
}
« no previous file with comments | « lib/compiler/implementation/scanner/scanner.dart ('k') | tests/compiler/dart2js/array_static_intercept_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698