Skip to content

Commit

Permalink
fix #5, preserve quoting in keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Dec 12, 2016
1 parent d4024ec commit 16a475f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keywords.zp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
($ (let* ((k (car %))
(s (atom->symbol k)))
(eval (+= [define] s
(if (in? dict k) (dict k) (eval (get-from % 1)))) env)))
(if (in? dict k)
(list 'quote (dict k))
(eval (get-from % 1)))) env)))
(quote ,(treat-keywords 'kwargs)))))
,'body))) env) env))))))

Expand Down

0 comments on commit 16a475f

Please sign in to comment.