From 3b12bb5926de65f318cf5136a103a353369e3693 Mon Sep 17 00:00:00 2001 From: Stephan Sahm Date: Wed, 15 May 2024 16:40:23 +0200 Subject: [PATCH] fix the use of end and begin as part of indexing --- src/explore.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/explore.jl b/src/explore.jl index d66c688..d9f5491 100644 --- a/src/explore.jl +++ b/src/explore.jl @@ -321,6 +321,10 @@ end function explore!(sym::Symbol, scopestate::ScopeState)::SymbolsState if sym ∈ scopestate.hiddenglobals SymbolsState() + elseif sym ∈ (:begin, :end) + # in indexing these symbols may appear. They are not globals, but syntax, + # hence there is no way to use these as real symbols anywhere else. + SymbolsState() else SymbolsState(references = Set([sym])) end