diff options
author | Alan Donovan <adonovan@google.com> | 2017-10-10 15:46:17 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2017-10-10 15:46:17 -0400 |
commit | ae06384bfb5755fb94e9fc095f9f7de044f4808c (patch) | |
tree | 764b0ce50ce60e8ac97450b8b6730bd6b1f32214 /syntax/parse_test.go | |
parent | 78b3c34942a39834fff8d4dd6a48bc34bd8ae115 (diff) | |
download | starlark-go-ae06384bfb5755fb94e9fc095f9f7de044f4808c.tar.gz |
syntax: allow newline after expression
Change-Id: I3087d84e4be9f85a68ec088ea5935a7d18fd0407
Diffstat (limited to 'syntax/parse_test.go')
-rw-r--r-- | syntax/parse_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/syntax/parse_test.go b/syntax/parse_test.go index a5900cc..dc9e4a9 100644 --- a/syntax/parse_test.go +++ b/syntax/parse_test.go @@ -22,6 +22,8 @@ func TestExprParseTrees(t *testing.T) { }{ {`print(1)`, `(CallExpr Fn=print Args=(1))`}, + {"print(1)\n", + `(CallExpr Fn=print Args=(1))`}, {`x + 1`, `(BinaryExpr X=x Op=+ Y=1)`}, {`[x for x in y]`, |