codemirror / CodeMirror-v1

An editable-iframe based code editor in JavaScript. See https://github.com/marijnh/CodeMirror for the currently maintained version
http://codemirror.net/
Other
362 stars 63 forks source link

parsepython.js #50

Closed briantemple closed 13 years ago

briantemple commented 13 years ago

When using a project that switched between parsers, I noticed a javascript error any time I switched back to the python parser. It was due to the fact that the doubleDelimiter variable is changed from an array to a RegExp object the first time wordRegexp is run, so all subsequent times wordRegexp is unable to join the array elements.

marijnh commented 13 years ago

Thank you! Pushed.