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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java

Issue 18117007: Report CHARACTER_EXPECTED_AFTER_SLASH (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/ScannerErrorCode.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java
index bafa9e41df61ea9f54b5808c55996408b7f60fee..078b2247e799101e1ffaca4a6b052ca92cd2a265 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/AbstractScanner.java
@@ -933,6 +933,13 @@ public abstract class AbstractScanner {
if (next == -1) {
break;
}
+ if (next == '\r' || next == '\n') {
+ errorListener.onError(new AnalysisError(
+ getSource(),
+ getOffset() - 1,
+ 1,
+ ScannerErrorCode.CHARACTER_EXPECTED_AFTER_SLASH));
+ }
}
next = advance();
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/ScannerErrorCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698