efront 4.25.2 → 4.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,3 @@
1
- - zh-CN: "不能有特殊符号\"$1\""
2
- en: "Cannot have special symbol '$1'"
3
-
4
1
  - zh-CN: 不启用
5
2
  en: Disable
6
3
 
@@ -43,6 +40,15 @@
43
40
  - zh-CN: 英语
44
41
  en: English
45
42
 
43
+ - zh-CN: 大写锁定已打开
44
+ en: Capitalization lock turned on
45
+
46
+ - zh-CN: 数字键盘已关闭
47
+ en: The numeric keypad is turned off
48
+
49
+ - zh-CN: "不能有特殊符号\"$1\""
50
+ en: "Cannot have special symbol '$1'"
51
+
46
52
  - zh-CN: 商店
47
53
  en: Store
48
54
 
@@ -15,7 +15,9 @@ var supports = [
15
15
  { land: i18n`芬兰语`, name: `suomi`, id: "fin", lang: "fi" },
16
16
  { land: i18n`希腊语`, name: `Ελληνικά`, id: "el", lang: "el" },
17
17
  { land: i18n`西班牙语`, name: `Español`, id: "spa", lang: "es" },
18
- { land: i18n`葡萄牙语`, name: `Português`, id: "pt", lang: /pt\-(BR|PT)/ },
18
+ { land: i18n`葡萄牙语`, name: `Português`, id: "pt", lang: "pt" },
19
+ // { land: i18n`葡萄牙语(巴西)`, name: `Português`, id: "pt", lang: "pt-BR" },
20
+ // { land: i18n`葡萄牙语(葡萄牙)`, name: `Português`, id: "pt", lang: "pt-PT" },
19
21
  { land: i18n`匈牙利语`, name: `Húngaro`, id: "hu", lang: 'hu' },
20
22
  { land: i18n`瑞典语`, name: `Svenska`, id: "swe", lang: 'sv' },
21
23
  { land: i18n`丹麦语`, name: `Dansk`, id: "dan", lang: 'da' },
@@ -47,6 +47,7 @@ class Javascript extends Program {
47
47
  strapexp_reg = /^(new|void|typeof|delete|class|function|await)/;
48
48
  forceend_reg = /^(return|yield|break|continue|debugger|async)$/;
49
49
  defaultType = EXPRESS;
50
+ lbtype = true;
50
51
  }
51
52
  var propresolve_reg = /^(static|get|set|async|readonly|private|pub)$/;
52
53
 
@@ -54,6 +54,7 @@ testDetour('0o1ll.a', '0o1ll["a"]')
54
54
  var ts = new Javascript;
55
55
  ts.straps.push('interface', 'implements', "declare", "module", "readonly", "enum", 'type');
56
56
  ts.tags[0].push("{")
57
+ ts.lbtype = false;
57
58
  var testTypescript = function (text) {
58
59
  var s = scanner2(text, ts);
59
60
  return assert(s.toString(), text);
@@ -149,6 +149,7 @@ class Program {
149
149
  control_reg = /^(if|else|switch|case|do|while|for|loop|break|continue|default|import|from|as|export|try|catch|finally|throw|await|yield|return)$/;
150
150
  type_reg = /^(var|let|const|function|fn|func|class|interface|type|struct|enum|impl|local)$/;
151
151
  nocase = false
152
+ lbtype = false;
152
153
  keepspace = false;
153
154
  lastIndex = 0
154
155
  detectLabel(o) {
@@ -171,7 +172,6 @@ class Program {
171
172
  o.isprop = true;
172
173
  break;
173
174
  }
174
- if (last.type & (STAMP | STRAP) || last.istype) break;
175
175
  inExpress = true;
176
176
  if (!queue.question) queue.question = 1;
177
177
  else queue.question++;
@@ -206,9 +206,15 @@ class Program {
206
206
  queue.question--;
207
207
  if (last.type === STAMP && last.text === '?') {
208
208
  inExpress = false;
209
- o.istype = true;
210
- last.istype = true;
211
- last.type = EXPRESS;
209
+ var lp = last.prev;
210
+ if (lp) {
211
+ var lpp = lp.prev;
212
+ if (lpp?.type === EXPRESS) {
213
+ lpp.type = LABEL;
214
+ }
215
+ lp.needle = true;
216
+ last.needle = true;
217
+ }
212
218
  }
213
219
  else {
214
220
  inExpress = true;
@@ -239,8 +245,7 @@ class Program {
239
245
  if (!queue.isargl && last.type & (EXPRESS | STRAP | VALUE | QUOTED)) {
240
246
  // label
241
247
  var lp = last.prev;
242
- if (lp && lp.type === STAMP && lp.text === ',') {
243
- o.istype = true;
248
+ if (lp && !this.lbtype && lp.type === STAMP && lp.text === ',') {
244
249
  break;
245
250
  }
246
251
  if (!lp || lp.type !== STRAP || !lp.transive || lp.isend) {