File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1087,8 +1087,6 @@ defmodule Macro do
1087
1087
"\# {" <> to_string ( arg , fun ) <> "}"
1088
1088
1089
1089
binary when is_binary ( binary ) ->
1090
- binary = inspect_no_limit ( binary )
1091
- binary = binary_part ( binary , 1 , byte_size ( binary ) - 2 )
1092
1090
escape_sigil ( binary , left )
1093
1091
end )
1094
1092
Original file line number Diff line number Diff line change @@ -327,12 +327,12 @@ defmodule MacroTest do
327
327
328
328
test "sigil call" do
329
329
assert Macro . to_string ( quote ( do: ~r" 123" ) ) == ~S/ ~r"123"/
330
- assert Macro . to_string ( quote ( do: ~r" \n 123" ) ) == ~S/ ~r"\\ n123"/
331
- assert Macro . to_string ( quote ( do: ~r" 12\" 3" ) ) == ~S/ ~r"12\\ "3"/
330
+ assert Macro . to_string ( quote ( do: ~r" \n 123" ) ) == ~S/ ~r"\n123"/
331
+ assert Macro . to_string ( quote ( do: ~r" 12\" 3" ) ) == ~S/ ~r"12\"3"/
332
332
assert Macro . to_string ( quote ( do: ~r/ 12\/ 3/ u ) ) == ~S" ~r/12\/3/u"
333
- assert Macro . to_string ( quote ( do: ~r{ \n 123} ) ) == ~S/ ~r{\\ n123}/
333
+ assert Macro . to_string ( quote ( do: ~r{ \n 123} ) ) == ~S/ ~r{\n123}/
334
334
assert Macro . to_string ( quote ( do: ~r( (1\) (2\) 3) ) ) == ~S/ ~r((1\)(2\)3)/
335
- assert Macro . to_string ( quote ( do: ~r{ \n 1{1\} 23} ) ) == ~S/ ~r{\\ n1{1\}23}/
335
+ assert Macro . to_string ( quote ( do: ~r{ \n 1{1\} 23} ) ) == ~S/ ~r{\n1{1\}23}/
336
336
assert Macro . to_string ( quote ( do: ~r| 12\| 3| ) ) == ~S" ~r|12\|3|"
337
337
338
338
assert Macro . to_string ( quote ( do: ~r[ 1#{ two } 3] ) ) == ~S/ ~r[1#{two}3]/
You can’t perform that action at this time.
0 commit comments