marijnh/CodeMirror — pull request #2480 by qgustavor (2014-04-18 22:21:34+00:00)
Title: Fix LiveScript string and comment highlighting

Only change `state.next` if `r.next` is defined and check if `r.regex` is a string before converting it into a `RegExp` (in the optimization step). Closes #2474.