File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 623623 (doseq [file (comp/cljs-files-in src-dir)]
624624 (ana/analyze-file (str " file://" (.getAbsolutePath file)) opts)))))
625625
626+ (defn repl-quit-prompt []
627+ (println " To quit, type:" :cljs/quit ))
628+
626629(defn repl-prompt []
627630 (print (str " ClojureScript:" ana/*cljs-ns* " > " )))
628631
644647 (.printStackTrace e))))
645648
646649(defn repl*
647- [repl-env {:keys [init need-prompt prompt flush read eval print caught reader
650+ [repl-env {:keys [init need-prompt quit-prompt prompt flush read eval print caught reader
648651 print-no-newline source-map-inline wrap repl-requires
649652 compiler-env]
650653 :or {need-prompt #(if (readers/indexing-reader? *in*)
651654 (== (readers/get-column-number *in*) 1 )
652655 (identity true ))
656+ quit-prompt repl-quit-prompt
653657 prompt repl-prompt
654658 flush flush
655659 read repl-read
760764 (binding [*in* (if (true ? (:source-map-inline opts))
761765 *in*
762766 (reader ))]
763- (print " To quit, type: " :cljs/quit )
767+ (quit-prompt )
764768 (prompt )
765769 (flush )
766770 (loop []
You can’t perform that action at this time.
0 commit comments