From aacf36abfd20d22b1157e1db12008118e64544d5 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Sat, 3 Jun 2017 06:57:28 -0700 Subject: [PATCH] zclsyntax: permit arbitrary newlines inside template interpolations --- zcl/zclsyntax/parser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zcl/zclsyntax/parser.go b/zcl/zclsyntax/parser.go index 1851f08..3195176 100644 --- a/zcl/zclsyntax/parser.go +++ b/zcl/zclsyntax/parser.go @@ -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")