Skip to content

Commit

Permalink
fix issue with defines now being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
chrehall68 committed Nov 22, 2024
1 parent 740f901 commit a603268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/internal/lang/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a603268

Please sign in to comment.