Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Floating point literals should accept unsigned exponents #141

Open
apiarian opened this issue Oct 3, 2017 · 0 comments
Open

Floating point literals should accept unsigned exponents #141

apiarian opened this issue Oct 3, 2017 · 0 comments

Comments

@apiarian
Copy link

apiarian commented Oct 3, 2017

According to https://golang.org/ref/spec#Floating-point_literals the + or - bit after the E is optional. Should the line below just be changed to say something like [\+\-]?

'match': '(\\.\\d+([Ee][\-\+]\\d+)?i?)\\b|\\b\\d+\\.\\d*(([Ee][\-\+]\\d+)?i?\\b)?'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants