marijnh/CodeMirror — pull request #1982 by ForbesLindesay (2013-11-22 23:34:50+00:00)
Title: [pegjs] quotes can appear in character classes

when they do so, they don't indicate the start of a string.

[closes #1977]

This fix is a lot simpler than #1981 in my opinion. Rather than relying on precedence it simply processes the entire character class in one loop. This actually reduces the number of lines of code.