Skip to content

Commit 7027d7d

Browse files
committed
Fix syntax highlighting of multiline comments in ASM
Enable DOT_ALL next to the default MULTILINE regex flags to match newlines too with the `.*?`. ``` /* this works */ /* this is not highlighted as a comment */ ```
1 parent aeb4c26 commit 7027d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/lexer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class PwntoolsLexer(RegexLexer):
9595
'whitespace': [
9696
(r'\n', Text),
9797
(r'\s+', Text),
98-
(r'/\*.*?\*/', Comment),
98+
(r'(?ms)/\*.*?\*/', Comment),
9999
(r';.*$', Comment)
100100
],
101101
'punctuation': [

0 commit comments

Comments
 (0)