codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.84k stars 4.97k forks source link

Haskell mode with autoCloseBrackets appends extra quotes #4277

Closed DrXyzzy closed 8 years ago

DrXyzzy commented 8 years ago

As reported in sagemathinc/smc#972, entering a string into editor while in haskell mode with autoCloseBrackets enabled will cause an extra quotation mark at end of line. Verified that problem exists in CodeMirror version 5.19.0 in Chrome and Firefox.

haskell-quote
adrianheine commented 8 years ago

I can reproduce that on the haskell demo with addon/edit/closebrackets.js loaded and option autoCloseBrackets: true.