We're updating the issue view to help you get more done. 

A little improvement when reading syntax quote form

Description

When reading syntax quote on keyword,string or number etc,it returns the form as result directly. Read it in:
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L844-847

1 2 3 4 5 else if(form instanceof Keyword || form instanceof Number || form instanceof Character || form instanceof String) ret = form;

But missing check if it is a nil,regular pattern or boolean constants.
After patched:

1 2 3 4 5 6 7 8 else if(form == null || form instanceof Keyword || form instanceof Number || form instanceof Character || form instanceof Pattern || form instanceof Boolean || form instanceof String) ret = form;

It's a little patch, i am not sure if it is worth a try.

Environment

Mac OSX 10.9.4
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Status

Assignee

Unassigned

Reporter

dennis zane

Labels

Approval

None

Patch

Code

Affects versions

Release 1.7

Priority

Minor