fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

No autocomplete in `do` arguments and variable names #2872

Closed fonsp closed 3 months ago

fonsp commented 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.

So it's just regex-based.

github-actions[bot] commented 3 months ago

Try this Pull Request!

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