Fail when delimiters aren't fully matched

Fixes #239