Skip to content

Commit 3c4e831

Browse files
committed
Blacklist with-out-str and with-loading-context
1 parent c2920f4 commit 3c4e831

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fuzzy indent feature. The defaults are:
145145
" Default
146146
let g:clojure_fuzzy_indent = 1
147147
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
148-
let g:clojure_fuzzy_indent_blacklist = ['^with-meta$', '-fn$']
148+
let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$']
149149
150150
" Legacy comma-delimited string version; the list format above is
151151
" recommended. Note that patterns are implicitly anchored with ^ and $.

doc/clojure.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ fuzzy indent feature. The defaults are:
7272
" Default
7373
let g:clojure_fuzzy_indent = 1
7474
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
75-
let g:clojure_fuzzy_indent_blacklist = ['^with-meta$', '-fn$']
75+
let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$']
7676
7777
" Legacy comma-delimited string version; the list format above is
7878
" recommended. Note that patterns are implicitly anchored with ^ and $.
7979
let g:clojure_fuzzy_indent_patterns = 'with.*,def.*,let.*'
8080
<
8181

8282
|g:clojure_fuzzy_indent_patterns| and |g:clojure_fuzzy_indent_blacklist| are
83-
|Lists| of patterns that will be matched against the unqualified symbol at the
84-
head of a list. This means that a pattern like "^foo" will match all these
85-
candidates: "foobar", "my.ns/foobar", and "#'foobar".
83+
|Lists| of patterns that will be matched against the unquoted, unqualified
84+
symbol at the head of a list. This means that a pattern like "^foo" will match
85+
all these candidates: "foobar", "my.ns/foobar", and "#'foobar".
8686

8787
Each candidate word is tested for special treatment in this order:
8888

indent/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if exists("*searchpairpos")
4040
endif
4141

4242
if !exists('g:clojure_fuzzy_indent_blacklist')
43-
let g:clojure_fuzzy_indent_blacklist = ['^with-meta$', '-fn$']
43+
let g:clojure_fuzzy_indent_blacklist = ['-fn$', '\v^with-%(meta|out-str|loading-context)$']
4444
endif
4545

4646
if !exists('g:clojure_special_indent_words')

0 commit comments

Comments
 (0)