Closed fonsp closed 3 months ago
https://github.com/fonsp/Pluto.jl/assets/6933510/7ae6c58c-a33b-49a7-afb9-eb26b036ff7b
I wasn't able to use the lezer parsed syntax tree for this because you often face this with incomplete expressions, like map(1:190) do xx which does not parse as a DoClause because of the missing end.
map(1:190) do xx
end
So it's just regex-based.
Open Julia and type:
julia> import Pkg julia> Pkg.activate(temp=true) julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="no-autocomplete-in-variable-names") julia> using Pluto
https://github.com/fonsp/Pluto.jl/assets/6933510/7ae6c58c-a33b-49a7-afb9-eb26b036ff7b
I wasn't able to use the lezer parsed syntax tree for this because you often face this with incomplete expressions, like
map(1:190) do xx
which does not parse as a DoClause because of the missingend
.So it's just regex-based.