Skip to content

Commit d76f053

Browse files
committed
Fix reading of #'nil (#87)
1 parent b2b22cd commit d76f053

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎code/reader/macro-functions.lisp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,16 +371,16 @@
371371
stream 'end-of-input-after-sharpsign-single-quote
372372
:stream-position (stream-position condition)
373373
:report 'inject-nil)
374-
nil)
374+
(return-from %sharpsign-single-quote nil))
375375
(end-of-list (condition)
376376
(%recoverable-reader-error
377377
stream 'object-must-follow-sharpsign-single-quote
378378
:position-offset -1 :report 'inject-nil)
379379
(unread-char (%character condition) stream)
380-
nil)))))
381-
(cond (suppress nil)
382-
((null name) nil)
383-
(t (wrap-in-function client name))))))
380+
(return-from %sharpsign-single-quote nil))))))
381+
(if suppress
382+
nil
383+
(wrap-in-function client name)))))
384384

385385
;;; This variation of SHARPSIGN-SINGLE-QUOTE allows unquote within #',
386386
;;; that is `#',(foo) is read as

0 commit comments

Comments
 (0)