dex
dex copied to clipboard
Bug: Spurious octal error highlighting in floating point numbers
I've been using Python syntax highlighting, but C/C++ seems to have this issue as well.
When a floating point literal such as 132.02598 is typed, the syntax highlighter mistakes the part after the decimal point with the leading zero for an octal number. Since 9 and 8 are invalid in octal literals, they then get highlighted with the error color, even though this is actually just a single float.
(Also, it looks like it does this for exponential notation floats like 10E-8 or 10.0e4).