[SVN] Re: Is indentNextLinePattern broken?

Allan Odgaard mailinglist at textmate.org
Tue Jan 4 23:42:11 UTC 2011


On 5 Jan 2011, at 00:18, Mads Hartmann Jensen wrote:

> The indentNextLinePattern doesn't seem to be working anymore in any bundles. Can anyone test if they have the same issue? I'm using the newest version of textmate on snow leopard.

This pattern is only used when you indent the selection (or use tab at the front of a line), not when typing “live”.

The reason for that is that the pattern can be negated by the content on that next line. For example in C, if we type ‘if(…)↩{’ we would get:

    if(…)
        {‸

In the future we will however use the patterns “while typing” (though not as aggresively as e.g. emacs, as the patterns can’t be 100% correct, so user need a way to manually override the indent).



More information about the textmate-dev mailing list