mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-04 02:43:09 +08:00
Optimise inspect coloring (#69)
This commit is contained in:
parent
0b6e8f7ef2
commit
199602016c
1 changed files with 8 additions and 4 deletions
|
@ -17,17 +17,21 @@ defmodule Livebook.Evaluator.StringFormatter do
|
|||
end
|
||||
|
||||
defp syntax_colors() do
|
||||
# Note: we intentionally don't specify colors
|
||||
# for `:binary`, `:list`, `:map` and `:tuple`
|
||||
# and rely on these using the default text color.
|
||||
# This way we avoid a bunch of HTML tags for coloring commas, etc.
|
||||
[
|
||||
atom: :blue,
|
||||
binary: :light_black,
|
||||
# binary: :light_black,
|
||||
boolean: :magenta,
|
||||
list: :light_black,
|
||||
map: :light_black,
|
||||
# list: :light_black,
|
||||
# map: :light_black,
|
||||
number: :blue,
|
||||
nil: :magenta,
|
||||
regex: :red,
|
||||
string: :green,
|
||||
tuple: :light_black,
|
||||
# tuple: :light_black,
|
||||
reset: :reset
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue