atom/language-html — pull request #31 by boborbt (2014-06-13 16:28:07+00:00)
Title: Command to close tag currently unclosed tag

I've added a command to auto-close tags and bound it to cmd-alt-. .

For instance:
```html

By selecting the command (or activating the cmd-alt-. key binding)
in this position, the command would close the "a" tag; pressing it
again, it would close the "p" tag; pressing it a third time nothing would happen (all
other tags are closed in the remaining of the document).

```

The command works by identifying the last opened tag that has not yet been closed (at the cursor position). Than checks if in the part of the html document following the cursor the found tag is closed. If a closing tag is not found, it then it insert the closing tag at the current cursor position.