From a603268f0005a661f247918206c7d015b69c46ed Mon Sep 17 00:00:00 2001 From: chrehall68 Date: Fri, 22 Nov 2024 10:17:06 -0800 Subject: [PATCH] fix issue with defines now being undefined --- server/internal/lang/interpreter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/lang/interpreter.go b/server/internal/lang/interpreter.go index 0b4be30..6205fd5 100644 --- a/server/internal/lang/interpreter.go +++ b/server/internal/lang/interpreter.go @@ -217,7 +217,7 @@ func (i *Interpreter) diagnoseInteriorNode(node InteriorNode, curSymbols map[str func (i *Interpreter) diagnoseModule(module ModuleNode) { knownSymbols := map[string]bool{} for _, define := range i.defines { - knownSymbols[define.Identifier.Value] = true + knownSymbols["`"+define.Identifier.Value] = true } for _, statement := range module.Interior { knownSymbols = i.diagnoseInteriorNode(statement, knownSymbols)