Fix nlb property for template strings tokens starting with nlb

Also add .gitattributes to checkout lf eol style
This commit is contained in:
Anthony Van de Gejuchte
2016-10-28 23:47:03 +02:00
committed by Richard van Velzen
parent 0aa526e72c
commit 1b2c02c944
4 changed files with 247 additions and 210 deletions

View File

@@ -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;