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

Commit 161ea5f

Browse files
committed
Make ClojureIndent() function public
1 parent 082120a commit 161ea5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎indent/clojure.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ function! s:ListIndent(delim_pos)
297297
return base_indent + (indent_style ==# 'traditional' || sym_match == 0)
298298
endfunction
299299

300-
" TODO: make this usable from other Clojure-like languages.
301-
function! s:ClojureIndent()
300+
" TODO: improve configurability for other Clojure-like languages.
301+
function! ClojureIndent()
302302
" Calculate and return indent to use based on the matching form.
303303
let [form, pos] = s:InsideForm(v:lnum)
304304
if form ==# '^' | return 0 " At top-level, no indent.
@@ -315,7 +315,7 @@ if exists('&lispoptions')
315315
setlocal lisp lispoptions=expr:1
316316
let b:undo_indent .= ' lispoptions<'
317317
endif
318-
setlocal indentexpr=s:ClojureIndent()
318+
setlocal indentexpr=ClojureIndent()
319319

320320
let &cpoptions = s:save_cpo
321321
unlet! s:save_cpo

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /