Skip to content

Commit

Permalink
fix(lib/parse): recognise '&' as hex prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadiSave committed Dec 16, 2023
1 parent 911834b commit 5b05db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/parse/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub enum Token {
#[regex("r[0-9][0-9]?", |lex| lex.slice()[1..].parse())]
Gpr(usize),

#[regex("#[xXoObB][0-9a-fA-F]+", parse_num)]
#[regex("#[&xXoObB][0-9a-fA-F]+", parse_num)]
#[regex("#[0-9]+", parse_num)]
Literal(usize),

Expand Down

0 comments on commit 5b05db8

Please sign in to comment.