Fix issue parsing certain digraphs

Closes #1.