-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for new float syntax #163
feat: Add support for new float syntax #163
Conversation
@@ -838,6 +838,15 @@ | |||
} | |||
} | |||
}, | |||
{ | |||
"match": "\\b(0[xX][\\da-fA-F]+)(\\.[\\da-fA-F]*)?([p`P][+-]?\\d[\\d_]*)?([fdwW]?)\\b", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a backtick in [p`P]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looks like underscores aren't accepted in the mantissa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I meant that the underscores weren't accepted by your regex here. I'll add them.
I accidentally closed my other pr, when I deleted my fork, reopening from my new fork.
Closes: #154