提交 7d1e664d authored 作者: Anthony Minessale's avatar Anthony Minessale

let switch_end_paren work with delims of the same char

上级 d2c34232
......@@ -372,7 +372,7 @@ SWITCH_DECLARE(char *) switch_find_end_paren(const char *s, char open, char clos
if (s && *s == open) {
depth++;
for (e = s + 1; e && *e; e++) {
if (*e == open) {
if (*e == open && open != close) {
depth++;
} else if (*e == close) {
depth--;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论