Skip to content

Commit f57d370

Browse files
LingDong-Lingdong Huang
authored andcommitted
fix quad 」
1 parent 15e6121 commit f57d370

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

site/ide.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33472,7 +33472,10 @@
3347233472
if (is_sin) {
3347333473
i++;
3347433474
}
33475-
} else if ((txt[i] == "」" && txt[i + 1] == "」" && txt[i+2] != "」") || txt[i] == "』") {
33475+
} else if (
33476+
(txt[i] == "」" && txt[i + 1] == "」" && (txt[i + 2] != "」" || txt[i+3] == "」")) ||
33477+
txt[i] == "』"
33478+
) {
3347633479
var is_sin = txt[i] == "」";
3347733480
litlvl--;
3347833481
if (litlvl == 0) {

src/parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ function wy2tokens(txt) {
6262
i++;
6363
}
6464
} else if (
65-
(txt[i] == "」" && txt[i + 1] == "」" && txt[i + 2] != "」") ||
65+
(txt[i] == "」" &&
66+
txt[i + 1] == "」" &&
67+
(txt[i + 2] != "」" || txt[i + 3] == "」")) ||
6668
txt[i] == "』"
6769
) {
6870
var is_sin = txt[i] == "」";

0 commit comments

Comments
 (0)