We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class
1 parent e641540 commit 107485eCopy full SHA for 107485e
Indentation Rules.tmPreferences
@@ -11,7 +11,7 @@
11
<key>increaseIndentPattern</key>
12
<string>(?x)
13
^\s*
14
- ( class\b
+ ( .*\bclass\b(?!\s*:) # class keyword without colon after it (otherwise we are in object with property name "class")
15
| [a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(\s*\(.*\))?\s*((=|-)>\s*$)) # function that is not one line
16
| [a-zA-Z\$_](\w|\$|\.)*\s*(:|=)\s*((if|while)(?!.*?then)|for|$) # assignment using multiline if/while/for
17
| (if|while|unless)\b(?!.*?then)|(for|switch|when|loop)\b
0 commit comments