zclsyntax: permit arbitrary newlines inside template interpolations

This commit is contained in:
Martin Atkins 2017-06-03 06:57:28 -07:00
parent 1517231d71
commit aacf36abfd

View File

@ -735,6 +735,7 @@ Token:
}
}
p.PushIncludeNewlines(false)
expr, exprDiags := p.ParseExpression()
diags = append(diags, exprDiags...)
close := p.Peek()
@ -759,6 +760,7 @@ Token:
ltrimNext = true
}
}
p.PopIncludeNewlines()
parts = append(parts, expr)
case TokenTemplateControl:
panic("template control sequences not yet supported")