Add limited comment support in assembly

This commit is contained in:
Andrew Morris
2023-03-23 08:59:57 +11:00
parent d21de90730
commit 56f6ce5922

View File

@@ -427,6 +427,20 @@ impl<'a> AssemblyParser<'a> {
break;
}
if c == '/' {
self.parse_exact("//");
loop {
let c = self.pos.next();
if c == None || c == Some('\n') {
break;
}
}
continue;
}
let optional_label = self.test_label();
if optional_label.is_some() {