(source, setState, f)
| 1 | CodeMirror.defineMode("haskell", function() { |
| 2 | |
| 3 | function switchState(source, setState, f) { |
| 4 | setState(f); |
| 5 | return f(source, setState); |
| 6 | } |
| 7 | |
| 8 | // These should all be Unicode extended, as per the Haskell 2010 report |
| 9 | var smallRE = /[a-z_]/; |