marijnh/CodeMirror — pull request #820 by nciagra (2012-09-11 18:21:46+00:00)
Title: Fix to make util/closetag work with overlay modes.

In defined HTML overlay modes (like `htmlmixed+liquid`), the current closetag implementation will just bail out during the very specific mode check. If you change just the mode check to let it pass, it still won't be able to get to the nested modes.

This patch is my, admittedly, naive attempt to fix both of these issues. I am fully aware that there is probably a better way to go about this, and welcome any such feedback :)