View bracket-matcher-look-at-previous-character-first-when-matching-closing-punctuation.patch
77c77,78 | |
< {position, currentPair, matchingPair} = @findCurrentPair(startPairMatches) | |
--- | |
> # Look for opening punctuation, checking the current character, then the previous character. | |
> {position, currentPair, matchingPair} = @findCurrentPair(startPairMatches, 0, -1) | |
81c82,83 | |
< {position, currentPair, matchingPair} = @findCurrentPair(endPairMatches) | |
--- | |
> # Look for closing punctuation, checking the previous character then the current character. | |
> {position, currentPair, matchingPair} = @findCurrentPair(endPairMatches, -1, 0) |