Home Download Buy Blog Forum Support

if/else does not indent properly w/reindent

if/else does not indent properly w/reindent

Postby jeremy_c on Thu Dec 15, 2011 8:44 pm

I posted this originally on http://sublimetext.userecho.com/topic/8 ... -properly/ but then realized under the support link on this website, it says use userecho.com for feature requests and this forum for support. Then looking at the userecho.com bug forum, I see that many are weeks old with no comment even. So, I am reposting here as the "Support" page says.

The code block (in the midst of more advanced code or not) does not indent properly using the reindent feature:

Code: Select all
if { 1 } {
    puts "Hello"
} else {
    puts "Goodbye"
}


The reindent option ignores the outdent on the } else { line. It indents to:

Code: Select all
if { 1 } {
    puts "Hello"
    } else {
        puts "Goodbye"
    }
jeremy_c
 
Posts: 3
Joined: Tue Nov 29, 2011 3:17 pm

Re: if/else does not indent properly w/reindent

Postby jeremy_c on Fri Dec 16, 2011 6:56 pm

I am looking at the language definition in attempts at figuring out a patch to submit. Are there docs somewhere that talk about how indentation is computed?

Thanks!
jeremy_c
 
Posts: 3
Joined: Tue Nov 29, 2011 3:17 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests