Fix patterns containing newlines

:8ball: WIP :8ball:

In an effort to fix https://github.com/atom/language-python/issues/2 I found that patterns containing newlines were not being parse correctly.

**todo**
* [x] look into specs this change broke