Skip to content

Commit d3213a5

Browse files
authored
add activate! function as alias to enable_in_core!
This will allow for automatic hookup to be done via `InteractiveUtils.@activate JuliaSyntax`.
1 parent ef9b8dd commit d3213a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hooks.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ end
290290

291291
_default_system_parser = _has_v1_6_hooks ? Core._parse : nothing
292292

293+
294+
# hook into InteractiveUtils.@activate
295+
activate!() = enable_in_core!()
296+
293297
"""
294298
enable_in_core!([enable=true; freeze_world_age=true, debug_filename=nothing])
295299

0 commit comments

Comments
 (0)