parse last route without trailing newline

Previously, the last route would be silently omitted if not followed by
a newline.