marijnh/CodeMirror — pull request #1868 by brandonwamboldt (2013-10-07 01:12:45+00:00)
Title: [smartymixed] Smarty tags in HTML attributes break

Closes #1768

A smarty tag in an HTML attribute would break syntax highlighting as the parser would switch to smarty mode and never switch back.

Simple test scenario to reproduce:

```
test
```

This doesn't break it:

```
{$var}
```

To test my fix, I took a diff of the CodeMirror generated source for a few different examples and diffed them before and after my patch, there were no changes. However, the patch fixed all of my examples that used variables in HTML attributes.