mirror of
https://github.com/decompme/decomp.me.git
synced 2026-02-20 13:29:14 -06:00
Remove $s (allow comments after function labels) (#736)
This commit is contained in:
@@ -26,17 +26,17 @@ function getLabels(asm: string): string[] {
|
||||
const jtbl_label_regex = /(^L[0-9a-fA-F]{8}$)|(^jtbl_)/
|
||||
|
||||
for (const line of lines) {
|
||||
let match = line.match(/^\s*glabel\s+([A-z0-9_]+)\s*$/)
|
||||
let match = line.match(/^\s*glabel\s+([A-z0-9_]+)\s*/)
|
||||
if (match) {
|
||||
labels.push(match[1])
|
||||
continue
|
||||
}
|
||||
match = line.match(/^\s*\.global\s+([A-z0-9_]+)\s*$/)
|
||||
match = line.match(/^\s*\.global\s+([A-z0-9_]+)\s*/)
|
||||
if (match) {
|
||||
labels.push(match[1])
|
||||
continue
|
||||
}
|
||||
match = line.match(/^[A-z_]+_func_start\s+([A-z0-9_]+)$/)
|
||||
match = line.match(/^[A-z_]+_func_start\s+([A-z0-9_]+)/)
|
||||
if (match) {
|
||||
labels.push(match[1])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user