summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-01-07 01:36:10 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-01-07 01:36:10 +0400
commit8fe89eb745547d0856841a3976a608b12e32af08 (patch)
tree399fecd0cf146399f8f2fa70f36235e04bf90ec9
parentca9079e1946d390b402ccab2f965de8ad1c32667 (diff)
bug fix: stop iterating through macros when a word matches a macro
-rw-r--r--src/main.go1
1 files changed, 1 insertions, 0 deletions
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;
}
}
}