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. etc) because of incorrect submatch index.