diff options
author | alandonovan <adonovan@google.com> | 2019-01-03 15:19:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-03 15:19:20 -0500 |
commit | f6c29bf4ef5bbbdf8829ab2418c934e03af82321 (patch) | |
tree | 6d804027493bd997acc15b37fab8e27043eedd69 /syntax/scan_test.go | |
parent | 74f6cacf9e604301442678325c3dfb2d0caeb0ab (diff) | |
download | starlark-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.go | 2 |
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 { |