Fix ending single quote scope

Looks like single quoted strings had the same problem as double quoted
strings - ending quote was not being scoped correctly (as
punctuation.definition. ...) because of incorrect submatch index.