diff --git a/Indentation Rules.tmPreferences b/Indentation Rules.tmPreferences
index 5922b59..aaea42e 100644
--- a/Indentation Rules.tmPreferences
+++ b/Indentation Rules.tmPreferences
@@ -11,7 +11,7 @@
increaseIndentPattern
(?x)
^\s*
- ( class\b
+ ( .*\bclass\b(?!\s*:) # class keyword without colon after it (otherwise we are in object with property name "class")
| [a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(\s*\(.*\))?\s*((=|-)>\s*$)) # function that is not one line
| [a-zA-Z\$_](\w|\$|\.)*\s*(:|=)\s*((if|while)(?!.*?then)|for|$) # assignment using multiline if/while/for
| (if|while|unless)\b(?!.*?then)|(for|switch|when|loop)\b