From 6a7f00f1b440dfd6433bc344749089b19ba3e463 Mon Sep 17 00:00:00 2001 From: TEC Date: Sun, 22 Oct 2023 17:25:27 +0800 Subject: [PATCH] New faces for stacktrace printing in Base --- src/faces.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/faces.jl b/src/faces.jl index 862e77c5..f551c15c 100644 --- a/src/faces.jl +++ b/src/faces.jl @@ -318,6 +318,14 @@ const FACES = let default = Dict{Symbol, Face}( :info => Face(foreground=:bright_cyan), :note => Face(foreground=:grey), :tip => Face(foreground=:bright_green), + # Stacktraces (on behalf of Base) + :julia_stacktrace_frameindex => Face(), + :julia_stacktrace_location => Face(inherit=:shadow), + :julia_stacktrace_filename => Face(underline=true, inherit=:julia_stacktrace_location), + :julia_stacktrace_fileline => Face(inherit=:julia_stacktrace_filename), + :julia_stacktrace_repetition => Face(inherit=:warning), + :julia_stacktrace_inlined => Face(inherit=:julia_stacktrace_repetition), + :julia_stacktrace_basemodule => Face(inherit=:shadow), # Log messages :log_error => Face(inherit=[:error, :bold]), :log_warn => Face(inherit=[:warning, :bold]),