Skip to content

Commit 0531a27

Browse files
committed
fix(parser/instruction): fix syntax display of pseudoinstructions
1 parent 5297658 commit 0531a27

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/parser/instruction.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ impl Instruction {
146146
// First token is an identifier => assume it's the instruction name
147147
// There is no opcode field specification => assume it shouldn't be included in the
148148
// output
149-
Some(Token::Identifier(_)) => vec![],
149+
Some(Token::Identifier(_)) => {
150+
syntax.push_str("opcode ");
151+
vec![]
152+
}
150153
_ => return Err("unexpected first token of signature definition"),
151154
})
152155
.boxed();

0 commit comments

Comments
 (0)