marijnh/CodeMirror2 — pull request #324 by eustas (2012-01-11 10:33:38+00:00)
Title: HTML: reduce error distribution for incorrect / unfinished entities

Example:

<html>
<body>War & Peace</body>
</html>

In this example "& Peace</body>" is marked as error. As a consequence "</html>" is marked as error too.

After applying patch, error area becomes as small as possible - to the first inappropriate symbol. That way user will see: where is error.