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

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, weird problem with patch in string_interpolation_test.dart hopefully fixed 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..9104d91856a1fe59ed8b184fff97b298c20423fe 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
ahe 2012/09/11 06:04:34 Add : after ). Terminate comment with period.
aam-me 2012/09/12 02:12:38 Done.
+ if (quoteChar === $AT || quoteChar === $r) {
raw = true;
quoteChar = source.next();
}

Powered by Google App Engine
This is Rietveld 408576698