context analysis: simplify '--' and '---' logic

Now that the punctuation type identification has moved to parse
text, the logic for detecting '--' and '---' can be simplified.