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

Unified Diff: vm/scanner.cc

Issue 9431038: Fix issue 732: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | « vm/parser.cc ('k') | vm/token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/scanner.cc
===================================================================
--- vm/scanner.cc (revision 4470)
+++ vm/scanner.cc (working copy)
@@ -376,6 +376,7 @@
const String& kLibrary = String::Handle(String::NewSymbol("library"));
const String& kImport = String::Handle(String::NewSymbol("import"));
const String& kSource = String::Handle(String::NewSymbol("source"));
+ const String& kResource = String::Handle(String::NewSymbol("resource"));
const String& ident = String::Handle(ConsumeIdentChars(false));
if (ident.Equals(kLibrary)) {
current_token_.kind = Token::kLIBRARY;
@@ -389,6 +390,10 @@
current_token_.kind = Token::kSOURCE;
return;
}
+ if (ident.Equals(kResource)) {
+ current_token_.kind = Token::kRESOURCE;
+ return;
+ }
ErrorMsg("Unrecognized library token");
SkipLine();
}
« no previous file with comments | « vm/parser.cc ('k') | vm/token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698