go/parser: scanner errors do not cause a bailout #70726
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
While investigating #70725, i noticed that, errors from the scanner are passed directly to
p.errors
:go/src/go/parser/parser.go
Lines 69 to 71 in 8c3e391
Per the docs i would assume that the parsing should stop after 10 error (including scanner errors):
go/src/go/parser/interface.go
Line 57 in 8c3e391
It should probably call the
p.errors
instead:go/src/go/parser/parser.go
Lines 260 to 281 in 8c3e391
CC @griesemer @adonovan
The text was updated successfully, but these errors were encountered: