We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5297658 commit 4af8f53Copy full SHA for 4af8f53
1 file changed
src/parser/instruction.rs
@@ -142,11 +142,14 @@ impl Instruction {
142
}
143
_ => return Err("the first field should have type `co`"),
144
145
- }
+ },
146
// First token is an identifier => assume it's the instruction name
147
// There is no opcode field specification => assume it shouldn't be included in the
148
// output
149
- Some(Token::Identifier(_)) => vec![],
+ Some(Token::Identifier(_)) => {
150
+ syntax.push_str("opcode ");
151
+ vec![]
152
153
_ => return Err("unexpected first token of signature definition"),
154
})
155
.boxed();
0 commit comments