Skip to content

Commit 3cea4e8

Browse files
committed
Merge dictionaries into ftplugin/clojure.dict
The only other .dict in Vim runtime is runtime/ftplugin/logtalk.dict, so we follow suit.
1 parent 960a503 commit 3cea4e8

4 files changed

Lines changed: 23 additions & 29 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
->VecSeq
4646
-cache-protocol-fn
4747
-reset-methods
48+
.
4849
..
4950
/
5051
<
@@ -122,6 +123,7 @@ byte-array
122123
bytes
123124
case
124125
cast
126+
catch
125127
char
126128
char-array
127129
char-escape-string
@@ -169,6 +171,7 @@ dec
169171
dec'
170172
decimal?
171173
declare
174+
def
172175
default-data-readers
173176
definline
174177
definterface
@@ -196,6 +199,7 @@ dissoc
196199
dissoc!
197200
distinct
198201
distinct?
202+
do
199203
doall
200204
dorun
201205
doseq
@@ -230,6 +234,7 @@ ffirst
230234
file-seq
231235
filter
232236
filterv
237+
finally
233238
find
234239
find-keyword
235240
find-ns
@@ -244,6 +249,7 @@ float?
244249
floats
245250
flush
246251
fn
252+
fn
247253
fn?
248254
fnext
249255
fnil
@@ -273,6 +279,7 @@ hash-map
273279
hash-set
274280
identical?
275281
identity
282+
if
276283
if-let
277284
if-not
278285
ifn?
@@ -306,6 +313,7 @@ last
306313
lazy-cat
307314
lazy-seq
308315
let
316+
let
309317
letfn
310318
line-seq
311319
list
@@ -321,6 +329,7 @@ long
321329
long-array
322330
longs
323331
loop
332+
loop
324333
macroexpand
325334
macroexpand-1
326335
make-array
@@ -342,11 +351,14 @@ methods
342351
min
343352
min-key
344353
mod
354+
monitor-enter
355+
monitor-exit
345356
munge
346357
name
347358
namespace
348359
namespace-munge
349360
neg?
361+
new
350362
newline
351363
next
352364
nfirst
@@ -415,6 +427,7 @@ proxy-super
415427
push-thread-bindings
416428
pvalues
417429
quot
430+
quote
418431
rand
419432
rand-int
420433
rand-nth
@@ -432,6 +445,7 @@ read
432445
read-line
433446
read-string
434447
realized?
448+
recur
435449
reduce
436450
reduce-kv
437451
reduced
@@ -479,6 +493,7 @@ seque
479493
sequence
480494
sequential?
481495
set
496+
set!
482497
set-agent-send-executor!
483498
set-agent-send-off-executor!
484499
set-error-handler!
@@ -525,13 +540,15 @@ take-while
525540
test
526541
the-ns
527542
thread-bound?
543+
throw
528544
time
529545
to-array
530546
to-array-2d
531547
trampoline
532548
transient
533549
tree-seq
534550
true?
551+
try
535552
type
536553
unchecked-add
537554
unchecked-add-int
@@ -562,6 +579,7 @@ update-proxy
562579
use
563580
val
564581
vals
582+
var
565583
var-get
566584
var-set
567585
var?

ftplugin/clojure/special-forms.dict

Lines changed: 0 additions & 18 deletions
This file was deleted.

syntax/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ setlocal iskeyword+=?,-,*,!,+,/,=,<,>,.,:,$
2121
syntax match clojureError "]\|}\|)"
2222

2323
" Generated from vim_clojure_static.clj
24-
" Clojure 1.5.0-RC3
24+
" Clojure 1.5.0-RC4
2525
syntax keyword clojureConstant nil
2626
syntax keyword clojureBoolean false true
2727
syntax keyword clojureSpecial . catch clojure.core/fn clojure.core/let clojure.core/loop def do finally fn if let loop monitor-enter monitor-exit new quote recur set! throw try var

vim_clojure_static.clj

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,16 @@
5353
(clojure.string/join \newline definitions))))
5454

5555
(def core-dictionary
56-
"Newline delimited string of public vars in clojure.core. Intended for use
57-
as a dictionary file for Vim insert mode completion."
56+
"Newline delimited string of special forms and public vars in clojure.core.
57+
Intended for use as a dictionary file for Vim insert mode completion."
5858
(->> `clojure.core
5959
ns-publics
6060
keys
61-
(map str)
62-
sort
63-
(clojure.string/join \newline)))
64-
65-
(def special-forms-dictionary
66-
(->> special-forms
61+
(concat special-forms)
6762
(map str)
6863
sort
6964
(clojure.string/join \newline)))
7065

7166
(comment
7267
(do (spit "/tmp/clojure-keywords.vim" syntax-keywords)
73-
(spit "/home/guns/src/vim-clojure-static/ftplugin/clojure/clojure.core.dict" core-dictionary)
74-
(spit "/home/guns/src/vim-clojure-static/ftplugin/clojure/special-forms.dict" special-forms-dictionary)))
68+
(spit "/home/guns/src/vim-clojure-static/ftplugin/clojure.dict" core-dictionary)))

0 commit comments

Comments
 (0)