yamad/igor-mode — Issue #1: Does not correctly handle else statements when nesting
Author: yamad
Created: 2011-10-13 19:17:15+00:00
State: open

A bug causes an else statement occurring after a nested if statement to be indented incorrectly if the nested if does not have an else statement

For instance, the code below is properly indented
```
if (0 < 5)

if (5 < 10)
print "Foo"
endif

else // this "else" belongs to the first if
print "Bar"
endif
```

but igor-mode will do this instead:
```
if (0 < 5)

if (5 < 10)
print "Foo"
endif
else // incorrectly indented with the second if
print "Bar"
endif
```

This does not occur if the nested if has an else statement. The same problem occurs with try-catch and if-elseif