You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing of 1000Possibilities as the string "1000Possibilities"
What did you see instead?
example:1:69: 'P' exponent requires hexadecimal mantissa
example:1:69: exponent has no digits
example:1:69: 1000P
example:1:74: ossibilities
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
scanner.Scanner misinterpreting \dP as a number
text/scanner: Scanner parsing 1000Possibilities as float
May 22, 2021
seankhliao
changed the title
text/scanner: Scanner parsing 1000Possibilities as float
text/scanner: Scanner parsing "1000Possibilities" as float
May 22, 2021
The package scans Go tokens, and 1000Possibilities is not a valid Go token. The only problem here, if there is one at all, is that the error might be improvable but it's equivalent to the error given by the Go compiler:
Rob and Ian
Thank you for the comments. I had not realized the exclusive default use of
the package in the go tokens and was able to deal with the mal-formed tokens
Regards
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Scanned a token with a number followed by a missing space before a word that started with a 'P' or a 'p'
https://play.golang.org/p/x2e4I1kp7BN
What did you expect to see?
Parsing of 1000Possibilities as the string "1000Possibilities"
What did you see instead?
example:1:69: 'P' exponent requires hexadecimal mantissa
example:1:69: exponent has no digits
example:1:69: 1000P
example:1:74: ossibilities
The text was updated successfully, but these errors were encountered: