-
Notifications
You must be signed in to change notification settings - Fork 201
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
Inconsistent hex literals in pos: #456
Comments
I suspect that it's only for JavaScript version of ksc, running in IDE? JVM-based version doesn't seem to exhibit this behavior? If yes, the problem is with the JS YAML parser (which is not really something we can fix without writing our own parser), and I believe I've seen that bug filed in the past, I'll try to find the reference now. The simple workaround is just use quotes around the expression to clearly state that it's a string, not a hex number. |
If there isn't one already, probably at least a bug should be filed upstream? And possibly other alternative yaml libraries could be looked into--three should be a few for JS probably. |
See #229 |
Correct, using the web IDE. |
Starting a pos: expression with a hex literal gives very undesirable results. For instance:
Generates code:
Placing the literal in the middle or at the end behaves as expected:
Generated code:
The text was updated successfully, but these errors were encountered: