We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 558c4ac commit d5d34aeCopy full SHA for d5d34ae
1 file changed
addon/edit/matchbrackets.js
@@ -69,7 +69,7 @@
69
var ch = line.charAt(pos);
70
if (re.test(ch) && (style === undefined || cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)) {
71
var match = matching[ch];
72
- if ((match.charAt(1) == ">") == (dir > 0)) stack.push(ch);
+ if (match && (match.charAt(1) == ">") == (dir > 0)) stack.push(ch);
73
else if (!stack.length) return {pos: Pos(lineNo, pos), ch: ch};
74
else stack.pop();
75
}
0 commit comments