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

Unified Diff: src/scanner.cc

Issue 1481513002: Revert of Removed support deprecated (//@|/*@) source(URL|MappingURL)= (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « src/js/messages.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.cc
diff --git a/src/scanner.cc b/src/scanner.cc
index f6e354a23c2e91d7fdbdf7c6d6385c9b99421ef9..7e429718ec96c5e56b1dc17121bf64543f5fd768 100644
--- a/src/scanner.cc
+++ b/src/scanner.cc
@@ -356,7 +356,7 @@
void Scanner::TryToParseSourceURLComment() {
- // Magic comments are of the form: //[#]\s<name>=\s*<value>\s*.* and this
+ // Magic comments are of the form: //[#@]\s<name>=\s*<value>\s*.* and this
// function will just return if it cannot parse a magic comment.
if (c0_ < 0 || !unicode_cache_->IsWhiteSpace(c0_)) return;
Advance();
@@ -574,7 +574,7 @@
Advance();
if (c0_ == '/') {
Advance();
- if (c0_ == '#') {
+ if (c0_ == '@' || c0_ == '#') {
Advance();
token = SkipSourceURLComment();
} else {
« no previous file with comments | « src/js/messages.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698