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 62b215f

Browse files
committed
Remove support for comma-separated variant of fuzzy_indent_patterns
Previously, `g:clojure_fuzzy_indent_patterns` would accept a string of comma-separated patterns instead of a proper list of patterns. This had been deprecated 9 years ago. See: <3bd91be#diff-752180eb8dc62c50aabe89619582363f65cb62ee49284c846d82ed7fe156cd1bR147-R149>
1 parent 324f999 commit 62b215f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎indent/clojure.vim

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,10 @@ if exists("*searchpairpos")
7171
return s:current_char() =~# '\v[\(\)\[\]\{\}]' && !s:ignored_region()
7272
endfunction
7373

74-
" Returns 1 if string matches a pattern in 'patterns', which may be a
75-
" list of patterns, or a comma-delimited string of implicitly anchored
76-
" patterns.
74+
" Returns 1 if string matches a pattern in 'patterns', which should be
75+
" a list of patterns.
7776
function! s:match_one(patterns, string)
78-
let list = type(a:patterns) == type([])
79-
\ ? a:patterns
80-
\ : map(split(a:patterns, ','), '"^" . v:val . "$"')
81-
for pat in list
77+
for pat in a:patterns
8278
if a:string =~# pat | return 1 | endif
8379
endfor
8480
endfunction

0 commit comments

Comments
(0)

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