Skip to content

Commit 082120a

Browse files
committedJan 18, 2025
Set mode in new regexprs
1 parent 968340e commit 082120a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎indent/clojure.vim

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ function! s:FirstFnArgPos(pos)
9090
let ln = getline(lnr)
9191
call cursor([lnr, base_idx + 1])
9292

93-
if ln[base_idx] =~# '["\\,[:space:]]' | return [0, 0] | endif
93+
if ln[base_idx] =~# '\m["\\,[:space:]]' | return [0, 0] | endif
9494
9595
" Find first collection delimiter or char preceeding whitespace.
96-
let pos = searchpos('\([{\[(]\|.[[:space:],]\)', 'cWz', lnr)
96+
let pos = searchpos('\m\([{\[(]\|.[[:space:],]\)', 'cWz', lnr)
9797
if pos == [0, 0] | return pos | endif
9898

9999
" If at collection delimiter, jump to end delimiter.
@@ -105,7 +105,7 @@ function! s:FirstFnArgPos(pos)
105105
endif
106106

107107
" Search forwards for first non-whitespace/comment char on line.
108-
let pos = searchpos('[^[:space:],]', 'Wz', lnr)
108+
let pos = searchpos('\m[^[:space:],]', 'Wz', lnr)
109109
return ln[pos[1] - 1] ==# ';' ? [0, 0] : pos
110110
endfunction
111111

0 commit comments

Comments
 (0)