Fix nlb property for template strings tokens starting with nlb
Also add .gitattributes to checkout lf eol style
This commit is contained in:
committed by
Richard van Velzen
parent
0aa526e72c
commit
1b2c02c944
@@ -497,10 +497,10 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
||||
S.template_braces.push(S.brace_counter);
|
||||
}
|
||||
var content = "", raw = "", ch, tok;
|
||||
next();
|
||||
while ((ch = next(true)) !== "`") {
|
||||
next(true, true);
|
||||
while ((ch = next(true, true)) !== "`") {
|
||||
if (ch === "$" && peek() === "{") {
|
||||
next();
|
||||
next(true, true);
|
||||
S.brace_counter++;
|
||||
tok = token(begin ? "template_head" : "template_substitution", content);
|
||||
tok.begin = begin;
|
||||
|
||||
Reference in New Issue
Block a user