languages: Fix indentation for if/else statements in C/C++ without braces (#41670)
Closes #41179 Release Notes: - Fixed indentation for if/else statements in C/C++ without braces
This commit is contained in:
@@ -4,7 +4,7 @@ path_suffixes = ["c"]
|
||||
line_comments = ["// "]
|
||||
decrease_indent_patterns = [
|
||||
{ pattern = "^\\s*\\{.*\\}?\\s*$", valid_after = ["if", "for", "while", "do", "switch", "else"] },
|
||||
{ pattern = "^\\s*else\\s*$", valid_after = ["if"] }
|
||||
{ pattern = "^\\s*else\\b", valid_after = ["if"] }
|
||||
]
|
||||
autoclose_before = ";:.,=}])>"
|
||||
brackets = [
|
||||
|
||||
Reference in New Issue
Block a user