mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add limited comment support in assembly
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user