diff --git a/settings/language-c.cson b/settings/language-c.cson index 17d33e4..5bf364a 100644 --- a/settings/language-c.cson +++ b/settings/language-c.cson @@ -2,18 +2,20 @@ 'editor': 'commentStart': '// ' 'increaseIndentPattern': '(?x) - ^ .* \\{ [^}"\']* $ - |^ .* \\( [^\\)"\']* $ + [\\{\\(] |^ \\s* (public|private|protected): \\s* $ |^ \\s* @(public|private|protected) \\s* $ |^ \\s* \\{ \\} $ ' - 'decreaseIndentPattern': '(?x) + 'decreaseThisIndentPattern': '(?x) ^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\} |^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\) |^ \\s* (public|private|protected): \\s* $ |^ \\s* @(public|private|protected) \\s* $ ' + 'decreaseIndentPattern': '(?x) + [\\}\\)] + ' '.source.c, .source.cpp': 'editor': 'foldEndPattern': '(?