aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/doc/testdata
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2020-02-10 22:02:47 -0800
committerRobert Griesemer <gri@golang.org>2020-03-05 00:40:38 +0000
commitbfb903f2521ff24639aa7a5219330df38b06f412 (patch)
treec63369cd3ccf4bc9c91c21be02e1ba841e7bf4eb /src/cmd/doc/testdata
parent17e6252c051e09a3a433620182fc54952a402d73 (diff)
downloadgo-bfb903f2521ff24639aa7a5219330df38b06f412.tar.xz
cmd/compile/internal/syntax: better scanner error messages
This is one of several changes that were part of a larger rewrite which I made in early 2019 after switching to the new number literal syntax implementation. The purpose of the rewrite was to simplify reading of source code (Unicode character by character) and speed up the scanner but was never submitted for review due to other priorities. Part 2 of 3: This change contains improvements to the scanner error messages: - Use "rune literal" rather than "character literal" to match the spec nomenclature. - Shorter, more to the point error messages. (For instance, "more than one character in rune literal" rather than "invalid character literal (more than one character)", etc.) Change-Id: I1aaf79003374a68dbb05926437ed305cf2a8ec96 Reviewed-on: https://go-review.googlesource.com/c/go/+/221602 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/doc/testdata')
0 files changed, 0 insertions, 0 deletions