We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uppercase Fs in a hex number cause an error.
F
null:4:26 error: expected ';', but found 'an identifier' 4 │ let x: u32 = 1234 & 0xFF; ^~
Lowercase fs cause a different issue:
f
null:4:24 error: hexadecimal float literals not implemented 4 │ let x: u32 = 1234 & 0xff; ^~~~
The same error occurs with hex numbers containing a singular e/E:
e
E
null:4:28 error: hexadecimal float literals not implemented 4 │ let x: u32 = 1234 & 0x0E; ^~~~ null:4:28 error: hexadecimal float literals not implemented 4 │ let x: u32 = 1234 & 0x0e; ^~~~
Finally, numbers containing two es/Es also cause an error:
null:4:24 error: duplicate exponent 'E' 4 │ let x: u32 = 123 & 0xEE; ^~~~
Putting other digits between two es doesn't change this:
null:4:24 error: duplicate exponent 'e' 4 │ let x: u32 = 123 & 0xe123e; ^~~~~~~
The text was updated successfully, but these errors were encountered:
sysgpu/shader: Fix 'F' in hex number being classified as identifier.
c454cff
First issue described in hexops#1340
sysgpu/shader: Don't confuse hex digits with exponents and suffixes i…
e6321e7
…n numbers. Fixed the other issues described in hexops#1340
No branches or pull requests
Uppercase
F
s in a hex number cause an error.Lowercase
f
s cause a different issue:The same error occurs with hex numbers containing a singular
e
/E
:Finally, numbers containing two
e
s/E
s also cause an error:Putting other digits between two
e
s doesn't change this:The text was updated successfully, but these errors were encountered: