[Geany-devel] Indentation using regex (was [PATCH 14/19] Rewrite tab switching queue)

Lex Trotman elextr at xxxxx
Tue Dec 6 09:29:53 UTC 2011


[...]

>
> This style of auto-indentation requires Option 1 or 2 (calculate for
> each change), because it unindents the 'end', 'elsif' and 'else'
> keywords as soon as their last characters are pressed.
> I did find this behavior very useful, even though I admit that it
> would sometimes destroy my manual indentation.
>

Actually the plugin is option 3,   It is return plus user activated,
just some activations are normal keys.  Maybe it works for Ruby, but
it doesn't for C, and after looking at the code I don't see how it can
possibly generate GNU style indentation.

if (blah)
{
    bletch();
}

It certainly doesn't as configured, it generates

if (blah)
        {
         bletch();
        }

and doesn't seem to ever lose that indent?

[...]

Cheers
Lex



More information about the Devel mailing list