diff --git a/settings/language-c.cson b/settings/language-c.cson index 17d33e4..69f1c57 100644 --- a/settings/language-c.cson +++ b/settings/language-c.cson @@ -3,11 +3,17 @@ 'commentStart': '// ' 'increaseIndentPattern': '(?x) ^ .* \\{ [^}"\']* $ + |\\([^)]*$ + |\\[[^\\]]*$ |^ .* \\( [^\\)"\']* $ |^ \\s* (public|private|protected): \\s* $ |^ \\s* @(public|private|protected) \\s* $ |^ \\s* \\{ \\} $ ' + 'decreaseNextIndentPattern': '(?x) + ^\\s[^(]*(\\([^(]*\\))*[^(]*\\); + |^\\s*[^\\[ ]+\\]; + ' 'decreaseIndentPattern': '(?x) ^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\} |^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\)