Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 44250fe

Browse files
committed
Makes it so that indentation is enforced on only else's that are not inlined. Indnetation is still enforcd on all if's and elif's
1 parent 85d9e01 commit 44250fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

settings/language-python.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
'softTabs': true
55
'tabLength': 4
66
'commentStart': '# '
7-
'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while)\\b.*:.*$'
8-
'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:'
7+
'increaseIndentPattern': '^\\s*(((class|def|elif|except|finally|for|if|try|with|while)\\b.*:.*)|(else\\b.*:\\s*))$'
8+
'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:\\s*$'

0 commit comments

Comments
 (0)