File tree 5 files changed +13
-6
lines changed
src-shared/nextjournal/clojure_mode
5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - Bump squint to 0.7.105
6
+ - Fix [ #49 ] ( https://github.com/nextjournal/clojure-mode/issues/49 ) : bug with hitting backspace after line comment
7
+
3
8
## 0.3.1
4
9
5
10
- Fix [ #45 ] ( https://github.com/nextjournal/clojure-mode/issues/45 ) : cursor after Discard node should evaluate child
Original file line number Diff line number Diff line change 74
74
(j/fn [^:js {:keys [from to head anchor empty]}]
75
75
(cond
76
76
(in-string? state from)
77
- (if (= open \" )
77
+ (if (= \" open )
78
78
(u/insertion head " \\\" " )
79
79
(u/insertion from to open))
80
80
; ; allow typing escaped bracket
Original file line number Diff line number Diff line change 49
49
(defn line-content-at [state from]
50
50
(-> state
51
51
(j/call-in [:doc :lineAt ] from)
52
- (j/call :slice )))
52
+ (j/get :text )))
53
53
54
54
(defn map-cursor [^js original-range ^js state update-map]
55
55
{:pre [(map? update-map)]}
Original file line number Diff line number Diff line change 123
123
" \" | \" " " \" | \" " ; ; do not delete string with whitespace
124
124
" :x :a |" " :x :a|" ; ; do not format on backspace
125
125
" \" [|]\" " " \" |]\" " ; ; normal deletion inside strings
126
+ " ( ;;\n |)" " ( ;;|\n )" ; ; don't put paren behind line comment
127
+ " ( ;|\n )" " ( |\n )"
126
128
))
127
129
128
130
#?(:squint nil
Original file line number Diff line number Diff line change @@ -1176,10 +1176,10 @@ source-map@^0.5.6:
1176
1176
resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz"
1177
1177
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
1178
1178
1179
- squint-cljs@0.4.81 :
1180
- version "0.4.81 "
1181
- resolved "https://registry.yarnpkg.com/squint-cljs/-/squint-cljs-0.4.81 .tgz#b1926c112a5caa12ed4ecc6f9035827dc4270bb7 "
1182
- integrity sha512-ffMxWbL901+xHMlaXeUavfrhK+uX7tsZYzF9/kxJYGZ6+KLOGy1Ke9+osbVNR+Vd/uszX6O/YcpNxCJzThgTUA ==
1179
+ squint-cljs@0.7.105 :
1180
+ version "0.7.105 "
1181
+ resolved "https://registry.yarnpkg.com/squint-cljs/-/squint-cljs-0.7.105 .tgz#848a588aaf5d19593b2d8b24bad026382435a4ff "
1182
+ integrity sha512-YtnPewo1ZM5p9kaC6j/rNw4F/FzsLaAS61Vhikw6z6dRJvns/Y/3rwGcb8BCoD6Abx23/frlk0B4/xhedgCbUw ==
1183
1183
dependencies :
1184
1184
chokidar "^3.5.3"
1185
1185
You can’t perform that action at this time.
0 commit comments