[TxMt] indentNextLinePattern in C bundle not working?
Wesley Griffin
wgriffin at fraktured.net
Wed Nov 22 19:51:36 UTC 2006
Hi,
I'm trying to figure out why, when I type something like this:
void foo(int bar,
int baz)
it does not get indented like the manual says it should according to
indentNextLinePattern?
I've also found that this:
if (foo)
printf("blah");
also doesn't get automatically indented.
I'm using Version 1.5.4 (1349) and have done an 'Update All Bundles'
from the 'GetBundle' bundle.
The Indentation Rules preference directly from the C bundle look like
this:
{ decreaseIndentPattern = '(?x)
^ (.*\*/)? \s* \} ( [^}{"'']* \{ | \s* while \s* \( .* )? [;\s]*
(//.*|/\*.*\*/\s*)? $
| ^ \s* (public|private|protected): \s* $
';
increaseIndentPattern = '^.*\{[^}"'']*$|^\s*(public|private|
protected):\s*$';
indentNextLinePattern = '^(?!.*[};:]\s*(//|/\*.*\*/\s*$)).*[^\s;:{}]
\s*$';
unIndentedLinePattern = '^\s*((/\*|\*/|//|#|template\b.*?>(?!\(.*\))|
@protocol|@interface|@implementation|@end).*)?$';
}
More information about the textmate
mailing list