We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4cf3d commit caef0c5Copy full SHA for caef0c5
indent/clojure.vim
@@ -157,15 +157,15 @@ function! s:InsideForm(lnum)
157
endif
158
endfor
159
160
- if ! empty(tokens) && has_key(s:pairs, tokens[0][0])
+ if ! empty(tokens) && has_key(s:pairs, tokens[0][0]) && ! in_string
161
" Match found!
162
return tokens[0]
163
164
165
let lnum -= 1
166
endwhile
167
168
- if ! empty(tokens) && tokens[0][0] ==# '"'
+ if (in_string && first_string_pos != []) || (! empty(tokens) && tokens[0][0] ==# '"')
169
" Must have been in a multi-line string or regular expression
170
" as the string was never closed.
171
return first_string_pos
0 commit comments