From 8fe89eb745547d0856841a3976a608b12e32af08 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 7 Jan 2025 01:36:10 +0400 Subject: bug fix: stop iterating through macros when a word matches a macro --- src/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.go b/src/main.go index cc37713..cfcb27c 100644 --- a/src/main.go +++ b/src/main.go @@ -150,6 +150,7 @@ func preprocess(rawTokens[] Token) []Token { tokens = append(tokens[:i], tokens[i + 1:]...) tokens = slices.Insert(tokens, i, macros[y].tokens...) i-- + break; } } } -- cgit v1.2.3