Only assign position when unpaired count is 0

Previously the position would be assigned anytime a pair
was found which could cause the wrong bracket to be highlighted
when they were unpaired.

Closes #19
Reuse regexes