[Geany-Users] Ruby indent not working

Lex Trotman elextr at gmail.com
Thu Jan 17 21:47:40 UTC 2013


On 18 January 2013 08:46, Sayth Renshaw <flebber.crue at gmail.com> wrote:
>
>
> On Friday, January 18, 2013, Colomban Wendling wrote:
>>
>> Le 17/01/2013 21:28, Lex Trotman a écrit :
>> > On 17 January 2013 23:02, Sayth Renshaw <flebber.crue at gmail.com> wrote:
>> >> Hi
>> >>
>> >> [...]
>> >>
>> >> Not sure if I have missed something Ruby specific
>> >
>> > Hi,
>> >
>> > Well, sort of, or rather Geany has missed something, Ruby specific
>> > support for indenting :)
>> >
>> > Geany autoindent is almost language independent, it knows how to:
>> >
>> > 1. go to the same indent as last line
>> > 2. indent and unindent on { and }
>> > 3. as a special case only, indent on : in Python
>> >
>> > None of these will work for Ruby IIUC.
>> >
>> > What it needs is for someone to specify the algorithm, and to provide
>> > a plugin that implements it (such language specific stuff shouldn't be
>> > in core)
>>
>> No, I think that what's needed is a configurable indentation thing, like
>> what Jiří and I somewhat started at different times, but didn't finish
>> for some reasons.  I (or somebody else ;)) should get back on that
>> subject and try to get something working for real, Geany's
>> auto-indenting is useless in most non-brace language (but Python as you
>> noted), which is sad.
>>
>> Cheers,
>> Colomban
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-
>
>
> Can I ask a question about this. Geany is based in scintilla I believe so is
> scite. When geany didn't work I tried the latest scite and it indented
> perfectly.
>
> Why the difference ?

The indenting is in Scite, not Scintilla.  Maybe the algorithm from
Scite is a place to start.

Cheers
Lex


>
> Sayth
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list