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 082120a

Browse files
committed
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‎

Lines changed: 3 additions & 3 deletions
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)

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