Open sprintersb opened 2 weeks ago
Describe the issue
The rendering of a hexadecimal floating-point constant may stop in the middle of the literal
double a = -0x1.638e38e38e38ep5;
Live example: https://stackoverflow.com/q/78603151/1556746
Such literals are supported since C++17 / C99.
Which language seems to have the issue?
C/C++ (in stackoverflow what's renderd for the cpp "language").
cpp
Are you using highlight or highlightAuto?
highlight
highlightAuto
Dunno. Using stackoverflow, and they said at Meta that I should report it here at highlight.js ...
Sample Code to Reproduce
though the artifact looks different here than on stackoverflow.
Expected behavior
A literal should either be highlightet completey, or not at all.
Additional context
Popped up in the context of stackoverflow
Describe the issue
The rendering of a hexadecimal floating-point constant may stop in the middle of the literal
Live example: https://stackoverflow.com/q/78603151/1556746
Such literals are supported since C++17 / C99.
Which language seems to have the issue?
C/C++ (in stackoverflow what's renderd for the
cpp
"language").Are you using
highlight
orhighlightAuto
?Dunno. Using stackoverflow, and they said at Meta that I should report it here at highlight.js ...
Sample Code to Reproduce
though the artifact looks different here than on stackoverflow.
Expected behavior
A literal should either be highlightet completey, or not at all.
Additional context
Popped up in the context of stackoverflow