Skip to content

Commit e8f3146

Browse files
committed
[shell mode] Ignore escaped open parens in parenthesized content
Closes codemirror#4635
1 parent d3e68b6 commit e8f3146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/shell/shell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ CodeMirror.defineMode('shell', function() {
9696
state.tokens.unshift(tokenDollar);
9797
break;
9898
}
99-
if (next === "(" && quote === "(") {
99+
if (!escaped && next === "(" && quote === "(") {
100100
state.tokens.unshift(tokenString(quote, style))
101101
return tokenize(stream, state)
102102
}

0 commit comments

Comments
 (0)