File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 623
623
(doseq [file (comp/cljs-files-in src-dir)]
624
624
(ana/analyze-file (str " file://" (.getAbsolutePath file)) opts)))))
625
625
626
+ (defn repl-quit-prompt []
627
+ (println " To quit, type:" :cljs/quit ))
628
+
626
629
(defn repl-prompt []
627
630
(print (str " ClojureScript:" ana/*cljs-ns* " > " )))
628
631
644
647
(.printStackTrace e))))
645
648
646
649
(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
648
651
print-no-newline source-map-inline wrap repl-requires
649
652
compiler-env]
650
653
:or {need-prompt #(if (readers/indexing-reader? *in*)
651
654
(== (readers/get-column-number *in*) 1 )
652
655
(identity true ))
656
+ quit-prompt repl-quit-prompt
653
657
prompt repl-prompt
654
658
flush flush
655
659
read repl-read
760
764
(binding [*in* (if (true ? (:source-map-inline opts))
761
765
*in*
762
766
(reader ))]
763
- (print " To quit, type: " :cljs/quit )
767
+ (quit-prompt )
764
768
(prompt )
765
769
(flush )
766
770
(loop []
You can’t perform that action at this time.
0 commit comments