Skip to content

Commit

Permalink
fixing parser bug: only custom string literal if there is no space
Browse files Browse the repository at this point in the history
a"s"  YES
a "s" NO
  • Loading branch information
JeffBezanson committed May 14, 2011
1 parent 0b6d842 commit ef181a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@
((#\{ ) (take-token s)
(loop (list* 'curly ex (parse-arglist s #\} ))))
((#\")
(if (and (symbol? ex) (not (operator? ex)))
(if (and (symbol? ex) (not (operator? ex))
(not (ts:space? s)))
;; custom prefixed string literals, x"s" => @x_str "s"
(let ((str (begin (take-token s)
(parse-string-literal s #t)))
Expand Down

0 comments on commit ef181a2

Please sign in to comment.