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

Unified Diff: frog/leg/scanner/scanner.dart

Issue 9190038: Handle escapes in string literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed validation from scanner Created 8 years, 11 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 | « frog/leg/scanner/parser.dart ('k') | frog/leg/scanner/scanner_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/scanner/scanner.dart
diff --git a/frog/leg/scanner/scanner.dart b/frog/leg/scanner/scanner.dart
index bfce2342cb9597ab318b32124ef838c973f29a26..d55c53a179c20c487ebdf4d024968509a9d64218 100644
--- a/frog/leg/scanner/scanner.dart
+++ b/frog/leg/scanner/scanner.dart
@@ -629,6 +629,12 @@ class AbstractScanner<T> implements Scanner {
}
}
+ static bool isHexDigit(int character) {
+ if ($0 <= character && character <= $9) return true;
+ character |= 0x20;
+ return ($a <= character && character <= $f);
+ }
+
int tokenizeSingleLineString(int next, int q1, int start) {
while (next !== $EOF) {
if (next === q1) {
« no previous file with comments | « frog/leg/scanner/parser.dart ('k') | frog/leg/scanner/scanner_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698