Skip to content

Commit

Permalink
use pprint v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thautwarm committed Jul 30, 2020
1 parent aa41b76 commit eefbe92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
PrettyPrint = "8162dcfd-2161-5ef2-ae6c-7681170c5f98"

[compat]
julia = "1"
DataStructures = "^0.17"
PrettyPrint = "^0.2"
julia = "1"

[extras]
PrettyPrint = "8162dcfd-2161-5ef2-ae6c-7681170c5f98"
Expand Down
2 changes: 2 additions & 0 deletions src/Pretty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ Base.show(io::IO, v::LocalVar) = begin
print(io, "LocalVar($(v.sym), is_mutable=$(v.is_mutable.x), is_shared=$(v.is_shared.x))")
end

PrettyPrint.is_atom_t(::Type{LocalVar}) = true

Base.show(io::IO, scope :: Scope) = pprint(io, scope)

3 comments on commit eefbe92

@thautwarm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/18715

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" eefbe92f8a7ed1cdd592882bba831772f8f40482
git push origin v0.1.4

@thautwarm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #3

Please sign in to comment.