protobuf-go/internal
Josh Humphries fcf5f6cb72 encoding/prototext: allow whitespace and comments between minus sign and number in negative numeric literal
The text format specification[1] indicates that whitespace and comments
may appear after a minus sign and before the subsequent numeric component
in negative number literals. But the Go implementation does not allow
this.

This brings the Go implementation info conformance with this aspect.

Fixes golang/protobuf#1526

[1] https://protobuf.dev/reference/protobuf/textformat-spec/#parsing

Change-Id: I3996c89ee9d37cf2b7502fc6736d6e2ed6dbcf43
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/473015
Reviewed-by: Lasse Folger <lassefolger@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-03-06 07:33:04 +00:00
..
benchmarks internal/impl: improve MessageInfo.New performance 2022-07-21 16:01:25 +00:00
cmd types/descriptorpb: regenerate using latest protobuf v22.0 release 2023-02-22 09:33:03 +00:00
conformance types/descriptorpb: regenerate using latest protobuf v22.0 release 2023-02-22 09:33:03 +00:00
descfmt all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
descopts
detrand
encoding encoding/prototext: allow whitespace and comments between minus sign and number in negative numeric literal 2023-03-06 07:33:04 +00:00
errors all: gofmt all 2022-01-04 22:57:54 +00:00
filedesc types/descriptorpb: regenerate using latest protobuf v22.0 release 2023-02-22 09:33:03 +00:00
filetype all: reformat with go1.19 gofmt 2022-07-21 16:01:13 +00:00
flags all: gofmt all 2022-01-04 22:57:54 +00:00
fuzz all: implement depth limit for unmarshaling 2022-02-17 17:07:31 +00:00
fuzztest
genid types/descriptorpb: regenerate using latest protobuf v22.0 release 2023-02-22 09:33:03 +00:00
impl internal/impl: remove the unreachable line of code 2023-01-30 09:33:22 +00:00
msgfmt
order all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
pragma
protobuild all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
protolegacy
set
strs internal/strs: avoid unnecessary allocations in Builder 2023-02-06 09:03:56 +00:00
testprotos types/descriptorpb: regenerate using latest protobuf v22.0 release 2023-02-22 09:33:03 +00:00
version all: start v1.28.1-devel 2022-07-28 12:39:36 +00:00
weakdeps all: gofmt all 2022-01-04 22:57:54 +00:00