@@ -56,7 +56,7 @@ endfunction
56
56
" Wrapper around "searchpairpos" that will automatically set "s:best_match" to
57
57
" the closest pair match and optimises the "stopline" value for later
58
58
" searches. This results in a significant performance gain by reducing the
59
- " number of syntax lookups that need to take place.
59
+ " search distance and number of syntax lookups that need to take place.
60
60
function ! s: CheckPair (name, start , end , SkipFn)
61
61
let prevln = s: best_match [1 ][0 ]
62
62
let pos = searchpairpos (a: start , ' ' , a: end , ' bznW' , a: SkipFn , prevln)
@@ -107,15 +107,6 @@ function! s:GetClojureIndent()
107
107
elseif formtype == # ' str' || formtype == # ' reg'
108
108
" Mimic multi-line string indentation behaviour in VS Code and
109
109
" Emacs.
110
- "
111
- " Scenarios:
112
- " - "=" operator should NOT alter indentation within
113
- " multi-line strings.
114
- " - Changes made while in insert mode (e.g. "<CR>"), should
115
- " use standard string indent.
116
- " - All other commands from normal mode (e.g. "o" and "O")
117
- " should trigger normal string indent.
118
-
119
110
let m = mode ()
120
111
if m == # ' i' || (m == # ' n' && ! (v: operator == # ' =' && state () = ~# ' o' ))
121
112
" If in insert mode, or (in normal mode and last
@@ -141,9 +132,8 @@ endfunction
141
132
if exists (" *searchpairpos" )
142
133
setlocal indentexpr = s: GetClojureIndent ()
143
134
else
144
- " If searchpairpos is not available, fallback to normal lisp
145
- " indenting.
146
- setlocal lisp indentexpr =
135
+ " If "searchpairpos" is not available, fallback to Lisp indenting.
136
+ setlocal lisp
147
137
endif
148
138
149
139
let &cpoptions = s: save_cpo
0 commit comments