title: newline characters in CodeMirror
body: <p>I'm writing a context-free parser for CodeMirror that parses code one character at a time, and outputs a style based on the state transition taken. The code uses the line-break character \n to trigger a state-transition, but CodeMirror seems to strip these from the input text (console.log (char === '\n') always returns false)</p>
  
  <p>Is there anyway to configure CodeMirror to give me \n's as an input? The documentation didn't seem to mention the issue.</p>
  
  <p>My state object is formatted as below</p>
  
  <pre><code>{
      state1: {
         active: true,
         edges: {
             '\n': 'state2'
         }
      },
      state2: {
         active: false,
         edges: {
             '#': 'state1'
         }
      }
  }
  </code></pre>
  
  <p>If any additional information or clarification is needed let me know</p>