Skip to content

Commit f7b7827

Browse files
LingDong-Lingdong Huang
authored andcommitted
fix hl
1 parent f57d370 commit f7b7827

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

site/ide.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33128,10 +33128,10 @@
3312833128
var out = [];
3312933129
var i = 0;
3313033130
while (i < txt.length) {
33131-
if (txt[i] == "「") {
33131+
if (txt[i] == "「" || txt[i] == "『") {
3313233132
off++;
3313333133
out.push("quot");
33134-
} else if (txt[i] == "」") {
33134+
} else if (txt[i] == "」" || txt[i] == "』") {
3313533135
off--;
3313633136
out.push("quot");
3313733137
} else {
@@ -33473,7 +33473,9 @@
3347333473
i++;
3347433474
}
3347533475
} else if (
33476-
(txt[i] == "」" && txt[i + 1] == "」" && (txt[i + 2] != "」" || txt[i+3] == "」")) ||
33476+
(txt[i] == "」" &&
33477+
txt[i + 1] == "」" &&
33478+
(txt[i + 2] != "」" || txt[i + 3] == "」")) ||
3347733479
txt[i] == "』"
3347833480
) {
3347933481
var is_sin = txt[i] == "」";

src/highlight.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ var semantic = function(txt) {
3939
var out = [];
4040
var i = 0;
4141
while (i < txt.length) {
42-
if (txt[i] == "「") {
42+
if (txt[i] == "「" || txt[i] == "『") {
4343
off++;
4444
out.push("quot");
45-
} else if (txt[i] == "」") {
45+
} else if (txt[i] == "」" || txt[i] == "』") {
4646
off--;
4747
out.push("quot");
4848
} else {

0 commit comments

Comments
 (0)