From 1583d5959300aa6810db09bd212ae34f850887cb Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 30 Jan 2024 11:42:03 +0100 Subject: [PATCH] Static resolve @doc Matching https://github.com/fonsp/Pluto.jl/pull/2797 --- src/ExpressionExplorer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExpressionExplorer.jl b/src/ExpressionExplorer.jl index 25f3fd9..b3b87ae 100644 --- a/src/ExpressionExplorer.jl +++ b/src/ExpressionExplorer.jl @@ -99,7 +99,7 @@ function macro_has_special_heuristic_inside(; symstate::SymbolsState, expr::Expr return PlutoDependencyExplorer.cell_precedence_heuristic(node, code) < PlutoDependencyExplorer.DEFAULT_PRECEDENCE_HEURISTIC end -const can_macroexpand_no_bind = Set(Symbol.(["@md_str", "Markdown.@md_str", "@gensym", "Base.@gensym", "@enum", "Base.@enum", "@assert", "Base.@assert", "@cmd"])) +const can_macroexpand_no_bind = Set(Symbol.(["@md_str", "Markdown.@md_str", "@gensym", "Base.@gensym", "@enum", "Base.@enum", "@assert", "Base.@assert", "@cmd", "Base.@cmd", "@doc", "Base.@doc", "Core.@doc"])) const can_macroexpand = can_macroexpand_no_bind ∪ Set(Symbol.(["@bind", "PlutoRunner.@bind"])) const plutorunner_id = Base.PkgId(Base.UUID("dc6b355a-2368-4481-ae6d-ae0351418d79"), "PlutoRunner")