Skip to content

Commit

Permalink
remove B"..." strings
Browse files Browse the repository at this point in the history
Per the discussion in #2301.
  • Loading branch information
nolta committed Mar 6, 2013
1 parent 16ce09f commit e148584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion base/string.jl
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,6 @@ function byteliteral(args...)
Expr(:call, :sprint, writer, sx...)
end

macro B_str(s...); byteliteral(s...); end
macro b_str(s...); ex = byteliteral(s...); :(($ex).data); end

macro mstr(s...); triplequoted(unescape_string, s...); end
Expand Down
2 changes: 1 addition & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@
(not (ts:space? s)))
;; custom prefixed string literals, x"s" => @x_str "s"
(let* ((str (begin (take-token s)
(parse-string-literal s (memq ex '(b B I)))))
(parse-string-literal s (memq ex '(b I)))))
(nxt (peek-token s))
(suffix (if (triplequote-string-literal? str) '_mstr '_str))
(macname (symbol (string #\@ ex suffix)))
Expand Down

0 comments on commit e148584

Please sign in to comment.