I was referred to make this bug report by Discord support after seeing this behavior in Discord, which uses highlight.js.
When highlighting ARM assembly, # comments and // comments are not treated as comments but instead as live code. This leads to incorrect highlighting that can span the entirety of the code, see the included screenshot.
Example (from Discord)
I was referred to make this bug report by Discord support after seeing this behavior in Discord, which uses highlight.js.
When highlighting ARM assembly,
# commentsand// commentsare not treated as comments but instead as live code. This leads to incorrect highlighting that can span the entirety of the code, see the included screenshot.Example (from Discord)