zclsyntax: permit arbitrary newlines inside template interpolations
This commit is contained in:
parent
1517231d71
commit
aacf36abfd
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user