Skip to content

Commit

Permalink
fix munge handling of $, ', "
Browse files Browse the repository at this point in the history
clojure.core/munge no longer changes $ to _DOLLARSIGN_. Also, ' is now
munged to _SINGLEQUOTE_ and " to _DOUBLEQUOTE_. This brings munge in
line with java.lang.Character/isJavaIdentifierPart.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
michalmarczyk authored and stuarthalloway committed Jan 5, 2011
1 parent b43bf20 commit 6ca22bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jvm/clojure/lang/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2532,7 +2532,8 @@ else if(form.count() < 3)
'!', "_BANG_",
'@', "_CIRCA_",
'#', "_SHARP_",
'$', "_DOLLARSIGN_",
'\'', "_SINGLEQUOTE_",
'"', "_DOUBLEQUOTE_",
'%', "_PERCENT_",
'^', "_CARET_",
'&', "_AMPERSAND_",
Expand Down

0 comments on commit 6ca22bc

Please sign in to comment.