Skip to content

Commit

Permalink
print LineNumberNode in light_black (JuliaLang#40937)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott authored May 27, 2021
1 parent c509eff commit e73a2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1477,8 +1477,8 @@ emphasize(io, str::AbstractString, col = Base.error_color()) = get(io, :color, f
printstyled(io, str; color=col, bold=true) :
print(io, uppercase(str))

show_linenumber(io::IO, line) = print(io, "#= line ", line, " =#")
show_linenumber(io::IO, line, file) = print(io, "#= ", file, ":", line, " =#")
show_linenumber(io::IO, line) = printstyled(io, "#= line ", line, " =#", color=:light_black)
show_linenumber(io::IO, line, file) = printstyled(io, "#= ", file, ":", line, " =#", color=:light_black)
show_linenumber(io::IO, line, file::Nothing) = show_linenumber(io, line)

# show a block, e g if/for/etc
Expand Down

0 comments on commit e73a2a0

Please sign in to comment.