Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit26d9f98

Browse files
authored
Merge pull request#12 from kkinnear/master
Upgrade to tools.reader 1.0.5, fix broken call to read-token (Issue#11)
2 parents5fe6eeb +0168690 commit26d9f98

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎project.clj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:dependencies [[org.clojure/clojure"1.7.0"]
99
[org.clojure/clojurescript"1.7.228"
1010
:exclusions [org.apache.ant/ant]]
11-
[org.clojure/tools.reader"1.0.0-alpha3"]]
11+
[org.clojure/tools.reader"1.0.5"]]
1212
:doo {:build"test"}
1313
:profiles {:dev
1414
{:plugins [[lein-cljsbuild"1.1.2"]

‎src/rewrite_clj/reader.cljs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[goog.string:as gstring]
77
[rewrite-clj.node.protocols:as nd]))
88

9-
(defreader-errorreader-types/reader-error)
109
(defread-charreader-types/read-char)
1110
(defget-column-numberreader-types/get-column-number)
1211
(defget-line-numberreader-types/get-line-number)
@@ -179,7 +178,7 @@
179178

180179
(defnread-keyword
181180
[^not-native reader initch]
182-
(let [tok (cljs.tools.reader/read-token reader (read-char reader))
181+
(let [tok (cljs.tools.reader/read-token reader:keyword(read-char reader))
183182
a (re-matches* (re-pattern"^[:]?([^0-9/].*/)?([^0-9/][^/]*)$") tok)
184183
token (aget a0)
185184
ns (aget a1)
@@ -188,7 +187,9 @@
188187
(identical? (.ns (substring (- (.-lengthns)2) (.-lengthns)))":/"))
189188
(identical? (aget name (dec (.-length name)))":")
190189
(not (== (.indexOf token"::"1)-1)))
191-
(reader-error reader"Invalid token:" token)
190+
(cljs.tools.reader.impl.errors/reader-error reader
191+
"Invalid token:"
192+
token)
192193
(if (and (not (nil?ns)) (> (.-lengthns)0))
193194
(keyword (.substringns0 (.indexOfns"/")) name)
194195
(keyword (.substring token1))))))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp