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 78ecad5

Browse files
committed
Indent with- macros and functions like cljfmt default
1 parent 161ea5f commit 78ecad5

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

‎clj/resources/indent-test-cases/with/in.clj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
(slurp f))
33

44
(with-meta obj
5-
{:foo 1})
5+
{:foo 1})
66

77
(with-meta
8-
obj
8+
obj
99
{:foo 1})
1010

1111
(with-out-str

‎clj/resources/indent-test-cases/with/out.clj‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
(slurp f))
33

44
(with-meta obj
5-
{:foo 1})
5+
{:foo 1})
66

77
(with-meta
8-
obj
9-
{:foo 1})
8+
obj
9+
{:foo 1})
1010

1111
(with-out-str
12-
())
12+
())
1313

1414
(with-in-str
15-
())
15+
())

‎indent/clojure.vim‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ endfunction
3535

3636
call s:SConf('clojure_indent_style', 'standard')
3737
call s:SConf('clojure_indent_multiline_strings', 'standard')
38-
call s:SConf('clojure_fuzzy_indent_patterns', [
39-
\ '\m^def', '\m^let', '\m^with-\%(meta\|in-str\|out-str\|loading-context\)\@!'
40-
\ ])
38+
call s:SConf('clojure_fuzzy_indent_patterns', ['\m^def', '\m^let', '\m^with-'])
4139

4240
" FIXME: reader conditional indentation?
4341

0 commit comments

Comments
(0)

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