[TxMt] How do I vary the C indentation?

Berk Geveci berk.geveci at kitware.com
Thu Oct 23 01:21:50 UTC 2008


Hi folks,

I work on several open-source projects (VTK, ParaView, CMake...) that
follow a somewhat unusual indentation style. Instead of

if (foo)
{
  bar();
}
bar();

they require

if (foo)
  {
  bar;
  }
bar()

Getting the first curly indent right was trivial but I can't figure
out how to reduce the indentation _after_ the closing curly. When the
pattern matches decreaseIndentPattern, the current line's indentation
is reduced. What I need is for the following line to be unindented. Is
there any way to do this?

Thanks,
-berk



More information about the textmate mailing list