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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScanner.java

Issue 8956031: Fix for issue 908 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScanner.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScanner.java (revision 2639)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScanner.java (working copy)
@@ -298,9 +298,7 @@
return ScannerState.STRING.token;
} else if (currentChar == '\\') {
advance();
- if (scanner.peek(0) == stringState.quote) {
- advance();
- }
+ advance();
} else if (!stringState.raw && currentChar == '$') {
if (scanner.peek(1) == '{') {
scannerState = ScannerState.BLOCK_INTERPOLATION_PREFIX;
@@ -334,9 +332,7 @@
}
} else if (currentChar == '\\') {
advance();
- if (scanner.peek(0) == stringState.quote) {
- advance();
- }
+ advance();
} else if (!stringState.raw && currentChar == '$') {
if (scanner.peek(1) == '{') {
scannerState = ScannerState.BLOCK_INTERPOLATION_PREFIX;
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/FastDartPartitionScannerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698