This repository was archived by the owner on Oct 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#Changes
22
3+ ##unreleased
4+
5+ * UPDATE: ClojureScript 2202
6+
37##0 .0.10
48
59* FIX: disconnecting from a remote nrepl caused issues
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ CodeMirror.defineMode("clojure", function () {
4747 keyword_char : / [ ^ \s \( \[ \; \) \] ] / ,
4848 basic : / [ \w \$ _ \- \. \* \+ \/ \? \> < ! ] / ,
4949 lang_keyword : / [ \w \* \+ ! \- _ ? : \/ \. # = > < ] / ,
50+ block_indent : / ^ (?: d e f | w i t h ) [ ^ \/ ] + $ | \/ (?: d e f | w i t h ) /
5051 } ;
5152
5253 function stateStack ( indent , type , prev ) { // represents a state stack object
@@ -117,7 +118,7 @@ CodeMirror.defineMode("clojure", function () {
117118 state . mode = "comment" ;
118119 pushStack ( state , indentTemp + INDENT_WORD_SKIP , "comment" ) ;
119120 } else if ( keyWord . length > 0 && ( indentKeys . propertyIsEnumerable ( keyWord ) ||
120- / ^ (?: d e f | w i t h ) / . test ( keyWord ) ) ) { // indent-word
121+ tests . block_indent . test ( keyWord ) ) ) { // indent-word
121122 pushStack ( state , indentTemp + INDENT_WORD_SKIP , ch ) ;
122123 } else { // non-indent word
123124 // we continue eating the spaces
Original file line number Diff line number Diff line change 1111 [ibdknox/analyzer " 0.0.2" ]
1212 [clj-stacktrace " 0.2.7" ]
1313 [fs " 1.3.3" ]
14- [org.clojure/clojurescript " 0.0-2173 "
14+ [org.clojure/clojurescript " 0.0-2202 "
1515 :exclusions [org.apache.ant/ant]]
1616 [com.cemerick/pomegranate " 0.2.0" ]
1717 [clojure-complete " 0.2.3" ]
Original file line number Diff line number Diff line change 1212 [cljs.source-map :as sm]
1313 [cljs.env :as cljs-env :refer [with-compiler-env]]
1414 [clojure.test :as test]
15- [cljs.closure :as cljsc]
1615 [clojure.java.io :as io]
1716 [cljs.tagged-literals :as tags]
1817 [clojure.set :as set :refer [difference union intersection]]
2423 [ibdknox.tools.reader.reader-types :as rt])
2524 (:import java.io.Writer))
2625
27-
26+ (def js-dependency-index
27+ " Try to get the js-dependency-index function from two places for
28+ compatibility with older cljs. This should be removed after support for
29+ cljs prior to 0.0-2197 is no longer desired"
30+ (->>
31+ (for [x ['cljs.closure/js-dependency-index
32+ 'cljs.js-deps/js-dependency-index]]
33+ (some->> x resolve deref))
34+ (filter identity)
35+ (first )))
2836
2937(defn without
3038 " Returns set s with x removed."
185193 {(-> dep :name ) dep}))
186194
187195(defn js-dep [{:keys [ns ]}]
188- (when-let [dep (get (cljsc/ js-dependency-index {}) (str ns ))]
196+ (when-let [dep (get (js-dependency-index {}) (str ns ))]
189197 (let [deps (:requires dep)
190198 deps (if (not= ns 'goog)
191199 (conj deps 'goog)
Original file line number Diff line number Diff line change 450450 :reaction (fn [this res len]
451451 len))
452452
453- (object/object* :langs.clj
453+ (object/object* :: langs.clj
454454 :tags #{:clojure.lang })
455455
456- (def clj-lang (object/create :langs.clj ))
456+ (def clj-lang (object/create :: langs.clj ))
457457
458458(behavior ::java-exe
459459 :triggers #{:object.instant }
You can’t perform that action at this time.
0 commit comments