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

Unified Diff: src/scanner.h

Issue 778813003: ES6 template literals: Fix issue with template after rbrace (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add tests without newlines Created 6 years 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/preparser.h ('k') | src/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index 590f3a88e4d6f4ec0361f6d2169eacdd978daf1d..87ff20b753a0f4314dc0553d2ea3ac7847789811 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -484,7 +484,8 @@ class Scanner {
bool ScanRegExpFlags();
// Scans the input as a template literal
- Token::Value ScanTemplateSpan();
+ Token::Value ScanTemplateStart();
+ Token::Value ScanTemplateContinuation();
const LiteralBuffer* source_url() const { return &source_url_; }
const LiteralBuffer* source_mapping_url() const {
@@ -692,6 +693,8 @@ class Scanner {
// Helper for the above functions.
uc32 ScanUnicodeEscape();
+ Token::Value ScanTemplateSpan();
+
// Return the current source position.
int source_pos() {
return source_->pos() - kCharacterLookaheadBufferSize;
« no previous file with comments | « src/preparser.h ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698