]> Cypherpunks repositories - gostls13.git/commit
text/scanner: remove AllowDigitSeparator flag again
authorRobert Griesemer <gri@golang.org>
Thu, 27 Jun 2019 20:26:51 +0000 (13:26 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 27 Jun 2019 21:13:53 +0000 (21:13 +0000)
commitb97ec8e57f7a27eea76814bad5c74aa8f0617bb6
tree5aa16ac959165f7dba012bee81faf85c12a74645
parentf205ae3305d2b60076ee294113984595bae7c4da
text/scanner: remove AllowDigitSeparator flag again

The scanner was changed to accept the new Go number literal syntax
of which separators are a part. Making them opt-in is inconsistent
with the rest of the changes. For comparison, the strconv package
also accepts the new number literals including separators with the
various conversion routines, if no explicit number base is given.

Updates #28493.

Change-Id: Ifaae2225a9565364610813658bfe692901dd3ccd
Reviewed-on: https://go-review.googlesource.com/c/go/+/184080
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
api/go1.13.txt
src/text/scanner/scanner.go
src/text/scanner/scanner_test.go