File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ defmodule Gradient.ElixirExpr do
3535 def pp_expr ( { :atom , _ , val } ) do
3636 case Atom . to_string ( val ) do
3737 "Elixir." <> mod -> mod
38- str -> ":" <> str
38+ str -> ":\" " <> str <> " \" "
3939 end
4040 end
4141
@@ -420,7 +420,7 @@ defmodule Gradient.ElixirExpr do
420420
421421 if shortand_syntax do
422422 { :atom , _ , key } = key
423- Atom . to_string ( key ) <> ": " <> value
423+ " \" " <> Atom . to_string ( key ) <> " \ " : " <> value
424424 else
425425 pp_expr ( key ) <> " => " <> value
426426 end
Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ defmodule Gradient.ElixirType do
8484 end
8585
8686 def pretty_print ( { :atom , _ , val } ) do
87- ":" <> Atom . to_string ( val )
87+ case Atom . to_string ( val ) do
88+ "Elixir." <> mod -> mod
89+ str -> ":\" " <> str <> "\" "
90+ end
8891 end
8992
9093 def pretty_print ( { :integer , _ , val } ) do
You can’t perform that action at this time.
0 commit comments