I've attached a patch (81b81d8) that allows you to do something like

```
  electricInput: /\bend(if|for|...)$/
```

And it'll reindent when someone finishes typing one of those words. (I don't know enough about the syntax of the language to give the whole regexp you'd need, but I guess that's not hard to figure out.)