Skip to content

Commit 8a859de

Browse files
committed
Fix
1 parent f4d5e2f commit 8a859de

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PrismSharp.SourceGenerator/prismjs/prism-nasm.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// The 'instruction' token is intentionally last as a catch-all for any
66
// unmatched word — in this format, that's always a mnemonic.
77
Prism.languages.nasm = {
8+
// Annotations: "; MethodName()" or "; module.dll+0x1234"
9+
'comment': {
10+
pattern: /;.*/,
11+
greedy: true
12+
},
813
// Address at line start: "000A ", "0032 ".
914
// PrismSharp's JS→C# pipeline strips regex flags (toJSON returns .source only),
1015
// so /m doesn't work. Instead, use lookbehind with (^|\n) to anchor to line start.

0 commit comments

Comments
 (0)