rouge icon indicating copy to clipboard operation
rouge copied to clipboard

NASM lexer fails to highlight disassembly addresses

Open umutoztunc opened this issue 4 years ago • 1 comments

Name of the lexer nasm

Since disassembly starts with addresses, the lexer gets confused. I am aware that nasm lexer's main focus is not highlighting a disassembly, but as you can see below, GitHub is able to highlight it really well.

Code sample

0x0007: mov r3, [r1]
0x000d: xor r3, r0
0x0013: mov [r1], r3
0x001a: add r1, 0x4
0x0021: mov r3, r1
0x0027: sub r3, r2
0x002d: call 0x0007
0x0033: ret

Screenshot of rouge highlighting image

umutoztunc avatar Jul 29 '21 11:07 umutoztunc

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

stale[bot] avatar Aug 13 '22 08:08 stale[bot]