Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
fix form reader
Browse files Browse the repository at this point in the history
  • Loading branch information
rksm committed May 5, 2015
1 parent d3fd4e8 commit 0df7865
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject org.rksm/cloxp-source-reader "0.1.5"
(defproject org.rksm/cloxp-source-reader "0.1.6"
:description "Source reading, parsing, and querying for cloxp."
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
Expand Down
6 changes: 3 additions & 3 deletions src/rksm/cloxp_source_reader/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
=>
'(String [:user/foo \"Bar\"])"
[form]
(if (seq? form)
(if (defmethod? form)
(let [ex-form (macroexpand form)
[_ _ _ match-1 fn-def] ex-form
rest-matches (if (= (->> fn-def last (map type))
Expand Down Expand Up @@ -143,9 +143,9 @@
column (+ (if (> (count ws-lines) 0) 1 start-column) (count leading-ws))
meta (meta o)
def? (def? o)
defmethod? (defmethod? o)
defmethod? (if def? (defmethod? o))
name (if def? (name-of-def o))
defmethod-name (defmethod-qualifier-string o)]
defmethod-name (if defmethod? (defmethod-qualifier-string o))]
(when (= \newline (trt/peek-char rdr))
(trt/read-char rdr)
(purge-string! rdr))
Expand Down

0 comments on commit 0df7865

Please sign in to comment.