From e80c3a67dbe8601ad5cddf5034bf439348b9d357 Mon Sep 17 00:00:00 2001 From: tolauwae Date: Tue, 23 Jan 2024 21:31:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20parse=20error=20of=20sourc?= =?UTF-8?q?e=20map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sourcemap/SourceMapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sourcemap/SourceMapper.ts b/src/sourcemap/SourceMapper.ts index d326237..c3870ba 100644 --- a/src/sourcemap/SourceMapper.ts +++ b/src/sourcemap/SourceMapper.ts @@ -66,7 +66,7 @@ export class WatMapper implements SourceMapper { this.lineMapping = []; const lines = compileOutput.split('\n'); for (let i = 0; i < lines.length; i++) { - if (lines[i].match(/@/)) { + if (lines[i].match(/^@ {/)) { let mapping: SourceLine = WatMapper.extractLineInfo(lines[i]); mapping.instructions = WatMapper.extractAddressInfo(lines[i + 1]); this.lineMapping.push(mapping);