aboutsummaryrefslogtreecommitdiff
path: root/syntax/scan_test.go
diff options
context:
space:
mode:
authoralandonovan <adonovan@google.com>2019-01-03 15:19:20 -0500
committerGitHub <noreply@github.com>2019-01-03 15:19:20 -0500
commitf6c29bf4ef5bbbdf8829ab2418c934e03af82321 (patch)
tree6d804027493bd997acc15b37fab8e27043eedd69 /syntax/scan_test.go
parent74f6cacf9e604301442678325c3dfb2d0caeb0ab (diff)
downloadstarlark-go-f6c29bf4ef5bbbdf8829ab2418c934e03af82321.tar.gz
syntax: print RBRACE correctly in scan errors (#93)
+ test Fixes #80
Diffstat (limited to 'syntax/scan_test.go')
-rw-r--r--syntax/scan_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/syntax/scan_test.go b/syntax/scan_test.go
index bc11eb5..e01a1c9 100644
--- a/syntax/scan_test.go
+++ b/syntax/scan_test.go
@@ -206,6 +206,8 @@ pass`, "pass newline pass EOF"}, // consecutive newlines are consolidated
{"0123.1", `1.231000e+02 EOF`},
// github.com/google/skylark/issues/16
{"x ! 0", "foo.star:1:3: unexpected input character '!'"},
+ // github.com/google/starlark-go/issues/80
+ {"([{<>}])", "( [ { < > } ] ) EOF"},
} {
got, err := scan(test.input)
if err != nil {