From 925804cc6c099f73f0d9fb28554b178d0fa2349b Mon Sep 17 00:00:00 2001 From: kutu Date: Sun, 3 Aug 2025 13:01:50 +0400 Subject: [PATCH] Fix indentation after `class` as a property of an object --- Indentation Rules.tmPreferences | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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