Fix lexer for coloring negative numbers in asm (#1367)

pull/1370/head
Artur Cygan 3 years ago committed by GitHub
parent f71a4aa65d
commit 456fdb776e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ class PwntoolsLexer(RegexLexer):
string = r'"(\\"|[^"])*"'
char = r"[\w$.@-]"
identifier = r"(?:[a-zA-Z$_]" + char + r"*|\." + char + r"+|or)"
number = r"(?:0[xX][a-zA-Z0-9]+|\d+)"
number = r"(?:\-?0[xX][a-zA-Z0-9]+|\d+)"
memory = r"(?:[\]\[])"
eol = r"[\r\n]+"

Loading…
Cancel
Save