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

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

Issue 18053012: Report ILLEGAL_CHARACTER for nbsp. (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_test/src/com/google/dart/engine/scanner/AbstractScannerTest.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..b11addcba5bb90f39b6b7b4e0a41ff10311386fd 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
@@ -88,11 +88,6 @@ public abstract class AbstractScanner {
private boolean hasUnmatchedGroups = false;
/**
- * A non-breaking space, which is allowed by this scanner as a white-space character.
- */
- private static final int $NBSP = 160;
-
- /**
* Initialize a newly created scanner.
*
* @param source the source being scanned
@@ -484,13 +479,6 @@ public abstract class AbstractScanner {
return -1;
}
- // The following are non-ASCII characters.
-
- if (next == $NBSP) {
- //appendWhiteSpace(next);
- return advance();
- }
-
reportError(ScannerErrorCode.ILLEGAL_CHARACTER, Integer.valueOf(next));
return advance();
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/scanner/AbstractScannerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698