Page MenuHomePhabricator

ASM lexer: For hexadecimal literals that start with decimal digits, such as 024AF1B, the "024" is grey while the "AF1B" is not
Open, Needs TriagePublic

Description

See https://en.wikibooks.org/w/index.php?title=Wikibooks:Reading_room/Technical_Assistance&oldid=3603127, in the section titled "Bug in source code highlighting".

Basically, an inline comment causes an instruction on the very next line to get incorrectly highlighted. Furthermore, in hexadecimal literals that start with decimal digits, such as 024AF1B, the "024" is grey while the "AF1B" is not.

Event Timeline

Aklapper renamed this task from Bug in Extension:SyntaxHighlight's ASM lexer to ASM lexer: For hexadecimal literals that start with decimal digits, such as 024AF1B, the "024" is grey while the "AF1B" is not.Nov 27 2019, 8:41 PM
Aklapper added a project: SyntaxHighlight.
Esanders subscribed.

This sounds like an upstream issue so should be filed at https://github.com/pygments/pygments/issues