@@ -39,11 +39,10 @@ if !exists('g:clojure_indent_rules')
39
39
\ ' let' : 1 , ' binding' : 1 , ' defmethod' : 1 ,
40
40
\ ' if' : 1 , ' if-not' : 1 , ' if-some' : 1 , ' if-let' : 1 ,
41
41
\ ' when' : 1 , ' when-not' : 1 , ' when-some' : 1 , ' when-let' : 1 , ' when-first' : 1 ,
42
- \ ' case' : 1 , ' cond' : 0 , ' cond ->' : 1 , ' cond->>' : 1 , ' condp' : 2 ,
42
+ \ ' case' : 1 , ' cond->' : 1 , ' cond->>' : 1 , ' condp' : 2 ,
43
43
\ ' while' : 1 , ' loop' : 1 , ' for' : 1 , ' doseq' : 1 , ' dotimes' : 1 ,
44
- \ ' do' : 0 , ' doto' : 1 , ' comment' : 0 , ' as->' : 2 ,
45
- \ ' delay' : 0 , ' future' : 0 , ' locking' : 1 ,
46
- \ ' try' : 0 , ' catch' : 2 , ' finally' : 0 ,
44
+ \ ' doto' : 1 , ' as->' : 2 ,
45
+ \ ' locking' : 1 , ' catch' : 2 ,
47
46
\ ' reify' : 1 , ' proxy' : 2 , ' defrecord' : 2 , ' defprotocol' : 1 , ' definterface' : 1 ,
48
47
\ ' extend' : 1 , ' extend-protocol' : 1 , ' extend-type' : 1
49
48
\ }
@@ -64,9 +63,7 @@ if !exists('g:clojure_indent_rules')
64
63
\ })
65
64
66
65
" core.async
67
- call extend (g: clojure_indent_rules , {
68
- \ ' alt!' : 0 , ' alt!!' : 0 , ' go' : 0 , ' go-loop' : 1 , ' thread' : 0
69
- \ })
66
+ call extend (g: clojure_indent_rules , { ' go-loop' : 1 })
70
67
71
68
" core.logic
72
69
call extend (g: clojure_indent_rules , {
@@ -286,7 +283,7 @@ function! s:ListIndent(delim_pos)
286
283
endfor
287
284
288
285
let rules = s: Conf (' clojure_indent_rules' , {})
289
- let sym_match = get (rules, sym, -1 )
286
+ let sym_match = get (rules, sym)
290
287
" TODO: handle 2+ differently?
291
288
if sym_match > 0 | return base_indent + 1 | endif
292
289
endif
0 commit comments