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

Lex Trotman elextr at xxxxx
Tue Sep 21 01:10:26 UTC 2010


>
> Hi Jiri,
>
> Got it working, I'd put the regexes in the filetypes in the wrong
> prefix, my mistake :-D
>
> But it doesn't seem to be working as expected.
>
> Using only the first two of your regexes the following gets:
>
> class foo {
>    struct bar {
>        int i;
>    };
>    }
>
> fair enough, the } regex doesn't expect anything after it so I added
> .* after the } but now I get
>
> class foo {
>    struct bar {
>        int i;
> };
> }
>
> The }; line undents two levels??
>
> Cheers
> Lex
>
>

Another problem I found, if a comment line ends in { then the next
line indents when it shouldn't

Cheers
Lex

>
>>>
>>> Best regards.
>>> _______________________________________________
>>> Geany-devel mailing list
>>> Geany-devel at uvena.de
>>> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>>>
>> _______________________________________________
>> Geany-devel mailing list
>> Geany-devel at uvena.de
>> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>>
>



More information about the Devel mailing list