1
0
mirror of https://github.com/golang/go synced 2024-11-08 04:46:11 -07:00
go/src/text
Russ Cox 3cf56e78d8 text/template: accept new number syntax
This CL updates text/template's scanner to accept the
new number syntaxes:

 - Hexadecimal floating-point values.
 - Digit-separating underscores.
 - Leading 0b and 0o prefixes.

See golang.org/design/19308-number-literals for background.

For #12711.
For #19308.
For #28493.
For #29008.

Change-Id: I68c16ea35c3f506701063781388de72bafee6b8d
Reviewed-on: https://go-review.googlesource.com/c/160248
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2019-02-26 05:18:38 +00:00
..
scanner text/scanner: don't liberally consume (invalid) floats or underbars 2019-02-20 20:23:28 +00:00
tabwriter text/tabwriter: fix BenchmarkPyramid and BenchmarkRagged again 2018-06-04 17:32:17 +00:00
template text/template: accept new number syntax 2019-02-26 05:18:38 +00:00