@@ -38,9 +38,9 @@ endfunction
38
38
call s: SConf (' clojure_indent_style' , ' standard' )
39
39
call s: SConf (' clojure_indent_multiline_strings' , ' standard' )
40
40
call s: SConf (' clojure_fuzzy_indent_patterns' , [
41
- \ ' ^with-\%(meta\|in-str\|out-str\|loading-context\)\@!' ,
42
- \ ' ^def' ,
43
- \ ' ^let'
41
+ \ ' \m ^with-\%(meta\|in-str\|out-str\|loading-context\)\@!' ,
42
+ \ ' \m ^def' ,
43
+ \ ' \m ^let'
44
44
\ ])
45
45
46
46
" FIXME: reader conditional indentation?
@@ -89,13 +89,13 @@ function! s:FirstFnArgPos(pos)
89
89
let lnr = a: pos [0 ]
90
90
let s: in_form_current_form = a: pos
91
91
call cursor (lnr , a: pos [1 ] + 1 )
92
- return searchpos (' [ ,]\+\zs' , ' z' , lnr , 0 , function (' <SID>IsSubForm' ))
92
+ return searchpos (' \m [ ,]\+\zs' , ' z' , lnr , 0 , function (' <SID>IsSubForm' ))
93
93
endfunction
94
94
95
95
" Used by "s:FirstFnArgPos" function to skip over subforms as the first value
96
96
" in a list form.
97
97
function ! s: IsSubForm ()
98
- let pos = searchpairpos (' [([{"]' , ' ' , ' [)\]}"]' , ' b' )
98
+ let pos = searchpairpos (' \m [([{"]' , ' ' , ' \m [)\]}"]' , ' b' )
99
99
return pos != [0 , 0 ] && pos != s: in_form_current_form
100
100
endfunction
101
101
@@ -118,7 +118,7 @@ function! s:TokeniseLine(line_num)
118
118
while 1
119
119
" We perform searches within the buffer (and move the cusor)
120
120
" for better performance than looping char by char in a line.
121
- let token_pos = searchpos (' [()[\]{};"]' , ' bW' , a: line_num )
121
+ let token_pos = searchpos (' \m [()[\]{};"]' , ' bW' , a: line_num )
122
122
123
123
" No more matches, exit loop.
124
124
if token_pos == [0 , 0 ] | break | endif
@@ -266,13 +266,13 @@ function! s:ListIndent(delim_pos)
266
266
" TODO: simplify this.
267
267
let syms = split (ln_content, ' [[:space:],;()\[\]{}@\\"^~`]' , 1 )
268
268
269
- if ! empty (syms)
269
+ if ! empty (syms)
270
270
let sym = syms[0 ]
271
271
if sym = ~# ' \v^%([a-zA-Z!$&*_+=|<>?-]|[^\x00-\x7F])'
272
272
273
273
" TODO: handle namespaced and non-namespaced variants.
274
- if sym = ~# ' ./.'
275
- let [_namespace, name] = split (sym, ' /' )
274
+ if sym = ~# ' \m ./.'
275
+ let [_namespace, name] = split (sym, ' \m /' )
276
276
endif
277
277
278
278
" TODO: replace `clojure_fuzzy_indent_patterns` with `clojure_indent_patterns`?
0 commit comments