rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.33k stars 735 forks source link

Support primitive directives in NASM lexer #1974

Closed tancnle closed 8 months ago

tancnle commented 1 year ago

This fixes the highlight of square brackets [] around primitive directives in Netwide Assembler (NASM) lexer.

https://www.nasm.us/doc/nasmdoc7.html

Before After
Screenshot 2023-07-04 at 9 04 47 pm Screenshot 2023-07-04 at 9 05 31 pm

Fixes https://github.com/rouge-ruby/rouge/issues/1972

tancnle commented 1 year ago

👋🏼 ShlomiRex would it be possible if you could help to verify if this addressed the reported issue? 🙏🏼