[...]
This is exactly what my regex-based indentation did and I assume what Colomban's experiment does too. The problem Colomban was trying to resolve was what to do when you have an end-block keyword "fi" which should unindent and then have an identifier "file" (notice the "fi" prefix) which shouldn't unindent. In this case there should be some "undo indent" when you add more letters after "fi".
And that is why I chose the option for auto indentation to only be executed on return or when the user said to, then you know the word is finished.
Cheers Lex