@@ -33273,11 +33273,11 @@
33273
33273
var out = [];
33274
33274
var i = 0;
33275
33275
while (i < txt.length) {
33276
- if (txt[i] == "「") {
33277
- off ++;
33276
+ if (txt[i] == "「" || txt[i] == "『" ) {
33277
+ off++;
33278
33278
out.push("quot");
33279
- } else if (txt[i] == "」") {
33280
- off --;
33279
+ } else if (txt[i] == "」" || txt[i] == "』" ) {
33280
+ off--;
33281
33281
out.push("quot");
33282
33282
} else {
33283
33283
if (off) {
@@ -33601,33 +33601,38 @@
33601
33601
tok += txt[i];
33602
33602
}
33603
33603
} else if ((txt[i] == "「" && txt[i + 1] == "「") || txt[i] == "『") {
33604
- var is_sin = ( txt[i] == "「")
33604
+ var is_sin = txt[i] == "「";
33605
33605
if (litlvl == 0) {
33606
33606
enddata();
33607
33607
endnum();
33608
33608
idt = true;
33609
33609
tok = "";
33610
- }else{
33611
- tok += txt[i]
33612
- if (is_sin){
33613
- tok += txt[i+1]
33610
+ } else {
33611
+ tok += txt[i];
33612
+ if (is_sin) {
33613
+ tok += txt[i + 1];
33614
33614
}
33615
33615
}
33616
33616
litlvl++;
33617
33617
if (is_sin) {
33618
33618
i++;
33619
33619
}
33620
- } else if ((txt[i] == "」" && txt[i + 1] == "」") || txt[i] == "』") {
33621
- var is_sin = (txt[i] == "」");
33620
+ } else if (
33621
+ (txt[i] == "」" &&
33622
+ txt[i + 1] == "」" &&
33623
+ (txt[i + 2] != "」" || txt[i + 3] == "」")) ||
33624
+ txt[i] == "』"
33625
+ ) {
33626
+ var is_sin = txt[i] == "」";
33622
33627
litlvl--;
33623
33628
if (litlvl == 0) {
33624
33629
tokens.push(["lit", `"${tok}"`, i + 1]);
33625
33630
idt = false;
33626
33631
tok = "";
33627
- }else{
33628
- tok += txt[i]
33629
- if (is_sin){
33630
- tok += txt[i+1]
33632
+ } else {
33633
+ tok += txt[i];
33634
+ if (is_sin) {
33635
+ tok += txt[i + 1];
33631
33636
}
33632
33637
}
33633
33638
if (is_sin) {
33977
33982
gettok(i + 2, 0) == "ctnr" &&
33978
33983
gettok(i + 2, 1) == "subs"
33979
33984
) {
33980
- typeassert(i + 1, ["iden", "lit"]);
33985
+ typeassert(i + 1, ["iden", "lit", "ans" ]);
33981
33986
var x = {
33982
33987
op: "subscript",
33983
33988
container: tokens[i + 1],
33992
33997
gettok(i + 2, 0) == "ctnr" &&
33993
33998
gettok(i + 2, 1) == "len"
33994
33999
) {
33995
- typeassert(i + 1, ["iden", "lit"]);
34000
+ typeassert(i + 1, ["iden", "lit", "subs" ]);
33996
34001
var x = { op: "length", container: tokens[i + 1], pos };
33997
34002
asc.push(x);
33998
34003
i += 3;
34239
34244
imports = Array.from(new Set(imports));
34240
34245
for (var i = 0; i < imports.length; i++) {
34241
34246
var isrc;
34242
- if (imports[i] in lib) {
34247
+ if (imports[i] in lib[lang]){
34248
+ isrc = lib[lang][imports[i]];
34249
+ }else if (imports[i] in lib) {
34243
34250
isrc = lib[imports[i]];
34244
34251
} else {
34245
34252
isrc = reader(imports[i]);
0 commit comments