Skip to content

Commit f546c53

Browse files
committed
Fix regex of asm operator token by escaping '-'.
1 parent 3a41342 commit f546c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

librz/arch/p/asm/asm_hexagon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static RZ_OWN RzPVector /*<RzAsmTokenPattern *>*/ *get_token_patterns() {
7777
pat = RZ_NEW0(RzAsmTokenPattern);
7878
pat->type = RZ_ASM_TOKEN_OPERATOR;
7979
pat->pattern = rz_str_dup(
80-
"[+*&+?=!^\\/|-~]{1,2}" // +,-,=,],[, ! (not the packet prefix)
80+
"[+*&+?=!^\\/|~\\-]{1,2}" // +,-,=,],[, ! (not the packet prefix)
8181
);
8282
rz_pvector_push(pvec, pat);
8383

0 commit comments

Comments
 (0)