aboutsummaryrefslogtreecommitdiff
path: root/syntax/parse_test.go
diff options
context:
space:
mode:
authoralandonovan <adonovan@google.com>2017-10-20 10:55:17 -0400
committerGitHub <noreply@github.com>2017-10-20 10:55:17 -0400
commit6696fc363ddd14245a8d3b03e806e48703d1b23f (patch)
treee883c301d6dd8d35f74beea7abb0e1d1ca4385d7 /syntax/parse_test.go
parent4cbd89655273776a2cc65b02514f98b68df5b27e (diff)
downloadstarlark-go-6696fc363ddd14245a8d3b03e806e48703d1b23f.tar.gz
syntax: make 'load' a reserved word (#31)
* syntax: make 'load' a reserved word
Diffstat (limited to 'syntax/parse_test.go')
-rw-r--r--syntax/parse_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/syntax/parse_test.go b/syntax/parse_test.go
index dc9e4a9..6657df6 100644
--- a/syntax/parse_test.go
+++ b/syntax/parse_test.go
@@ -154,8 +154,6 @@ else:
`(AssignStmt Op== LHS=(TupleExpr List=(x y)) RHS=1)`},
{`load("", "a", b="c")`,
`(LoadStmt Module="" From=(a c) To=(a b))`},
- {`load = 1`, // load is not a reserved word
- `(AssignStmt Op== LHS=load RHS=1)`},
{`if True: load("", "a", b="c")`, // load needn't be at toplevel
`(IfStmt Cond=True True=((LoadStmt Module="" From=(a c) To=(a b))))`},
{`def f(x, *args, **kwargs):