diff options
author | alandonovan <adonovan@google.com> | 2017-10-20 10:55:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 10:55:17 -0400 |
commit | 6696fc363ddd14245a8d3b03e806e48703d1b23f (patch) | |
tree | e883c301d6dd8d35f74beea7abb0e1d1ca4385d7 /syntax/parse_test.go | |
parent | 4cbd89655273776a2cc65b02514f98b68df5b27e (diff) | |
download | starlark-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.go | 2 |
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): |