From 47c6d3b32f6e2384d0d01422b4ee684899d76be6 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 9 Nov 2025 21:30:44 -0800 Subject: [PATCH] allow . in label name --- src/bytecode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytecode.ts b/src/bytecode.ts index ae0f7e9..7fc4602 100644 --- a/src/bytecode.ts +++ b/src/bytecode.ts @@ -391,7 +391,7 @@ function toBytecodeFromString(str: string): Bytecode /* throws */ { if (!trimmed) continue // Check for label definition (.label_name:) - if (/^\.[a-zA-Z_][a-zA-Z0-9_]*:$/.test(trimmed)) { + if (/^\.[a-zA-Z_][a-zA-Z0-9_.]*:$/.test(trimmed)) { const labelName = trimmed.slice(1, -1) labels.set(labelName, cleanLines.length) continue