@parcel/codeframe 2.0.0-nightly.1175 → 2.0.0-nightly.1177
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.
- package/lib/codeframe.js +81 -53
- package/lib/codeframe.js.map +1 -1
- package/package.json +2 -2
package/lib/codeframe.js
CHANGED
|
@@ -664,7 +664,7 @@ Description: Ada is a general-purpose programming language that has great suppor
|
|
|
664
664
|
illegal: BAD_CHARS
|
|
665
665
|
},
|
|
666
666
|
// see comment above the definition
|
|
667
|
-
VAR_DECLS
|
|
667
|
+
VAR_DECLS
|
|
668
668
|
]
|
|
669
669
|
};
|
|
670
670
|
}
|
|
@@ -1423,7 +1423,7 @@ Website: https://www.arduino.cc
|
|
|
1423
1423
|
literal: "DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"
|
|
1424
1424
|
};
|
|
1425
1425
|
const ARDUINO = $5a92f159cc08d656$var$cPlusPlus(hljs);
|
|
1426
|
-
const kws = ARDUINO.keywords;
|
|
1426
|
+
const kws = /** @type {Record<string,any>} */ ARDUINO.keywords;
|
|
1427
1427
|
kws.keyword += " " + ARDUINO_KW.keyword;
|
|
1428
1428
|
kws.literal += " " + ARDUINO_KW.literal;
|
|
1429
1429
|
kws.built_in += " " + ARDUINO_KW.built_in;
|
|
@@ -2812,7 +2812,7 @@ Category: common
|
|
|
2812
2812
|
"ksh",
|
|
2813
2813
|
"tcsh",
|
|
2814
2814
|
"dash",
|
|
2815
|
-
"scsh"
|
|
2815
|
+
"scsh"
|
|
2816
2816
|
];
|
|
2817
2817
|
const KNOWN_SHEBANG = hljs.SHEBANG({
|
|
2818
2818
|
binary: `(${SH_LIKE_SHELLS.join("|")})`,
|
|
@@ -3929,7 +3929,7 @@ Category: lisp
|
|
|
3929
3929
|
excludeEnd: true,
|
|
3930
3930
|
// we can only have a single title
|
|
3931
3931
|
endsParent: true
|
|
3932
|
-
}
|
|
3932
|
+
}
|
|
3933
3933
|
].concat(DEFAULT_CONTAINS)
|
|
3934
3934
|
};
|
|
3935
3935
|
LIST.contains = [
|
|
@@ -5025,7 +5025,7 @@ Website: https://crystal-lang.org
|
|
|
5025
5025
|
{
|
|
5026
5026
|
begin: /<<-\w+$/,
|
|
5027
5027
|
end: /^\s*\w+$/
|
|
5028
|
-
}
|
|
5028
|
+
}
|
|
5029
5029
|
],
|
|
5030
5030
|
relevance: 0
|
|
5031
5031
|
};
|
|
@@ -5059,7 +5059,7 @@ Website: https://crystal-lang.org
|
|
|
5059
5059
|
{
|
|
5060
5060
|
begin: /<<-'\w+'$/,
|
|
5061
5061
|
end: /^\s*\w+$/
|
|
5062
|
-
}
|
|
5062
|
+
}
|
|
5063
5063
|
],
|
|
5064
5064
|
relevance: 0
|
|
5065
5065
|
};
|
|
@@ -5081,7 +5081,7 @@ Website: https://crystal-lang.org
|
|
|
5081
5081
|
{
|
|
5082
5082
|
begin: "/(?!\\/)",
|
|
5083
5083
|
end: "/[a-z]*"
|
|
5084
|
-
}
|
|
5084
|
+
}
|
|
5085
5085
|
]
|
|
5086
5086
|
}
|
|
5087
5087
|
],
|
|
@@ -5117,7 +5117,7 @@ Website: https://crystal-lang.org
|
|
|
5117
5117
|
{
|
|
5118
5118
|
begin: "%r\\|",
|
|
5119
5119
|
end: "\\|"
|
|
5120
|
-
}
|
|
5120
|
+
}
|
|
5121
5121
|
],
|
|
5122
5122
|
relevance: 0
|
|
5123
5123
|
};
|
|
@@ -5163,7 +5163,7 @@ Website: https://crystal-lang.org
|
|
|
5163
5163
|
hljs.HASH_COMMENT_MODE,
|
|
5164
5164
|
hljs.inherit(hljs.TITLE_MODE, {
|
|
5165
5165
|
begin: CRYSTAL_PATH_RE
|
|
5166
|
-
})
|
|
5166
|
+
})
|
|
5167
5167
|
],
|
|
5168
5168
|
relevance: 10
|
|
5169
5169
|
},
|
|
@@ -5175,7 +5175,7 @@ Website: https://crystal-lang.org
|
|
|
5175
5175
|
hljs.HASH_COMMENT_MODE,
|
|
5176
5176
|
hljs.inherit(hljs.TITLE_MODE, {
|
|
5177
5177
|
begin: CRYSTAL_PATH_RE
|
|
5178
|
-
})
|
|
5178
|
+
})
|
|
5179
5179
|
],
|
|
5180
5180
|
relevance: 10
|
|
5181
5181
|
},
|
|
@@ -5744,7 +5744,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/CSS
|
|
|
5744
5744
|
contains: [
|
|
5745
5745
|
hljs.APOS_STRING_MODE,
|
|
5746
5746
|
hljs.QUOTE_STRING_MODE,
|
|
5747
|
-
hljs.CSS_NUMBER_MODE
|
|
5747
|
+
hljs.CSS_NUMBER_MODE
|
|
5748
5748
|
]
|
|
5749
5749
|
}
|
|
5750
5750
|
]
|
|
@@ -5808,7 +5808,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/CSS
|
|
|
5808
5808
|
illegal: "$",
|
|
5809
5809
|
contains: [
|
|
5810
5810
|
hljs.APOS_STRING_MODE,
|
|
5811
|
-
hljs.QUOTE_STRING_MODE
|
|
5811
|
+
hljs.QUOTE_STRING_MODE
|
|
5812
5812
|
]
|
|
5813
5813
|
},
|
|
5814
5814
|
{
|
|
@@ -5868,7 +5868,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/CSS
|
|
|
5868
5868
|
{
|
|
5869
5869
|
begin: /;/
|
|
5870
5870
|
},
|
|
5871
|
-
RULE
|
|
5871
|
+
RULE
|
|
5872
5872
|
]
|
|
5873
5873
|
}
|
|
5874
5874
|
]
|
|
@@ -7775,7 +7775,7 @@ Category: common
|
|
|
7775
7775
|
// 0-prefixed implicit octal integer, optionally rational and/or imaginary
|
|
7776
7776
|
{
|
|
7777
7777
|
begin: "\\b0(_?[0-7])+r?i?\\b"
|
|
7778
|
-
}
|
|
7778
|
+
}
|
|
7779
7779
|
]
|
|
7780
7780
|
};
|
|
7781
7781
|
var PARAMS = {
|
|
@@ -7933,7 +7933,7 @@ Category: common
|
|
|
7933
7933
|
contains: [
|
|
7934
7934
|
hljs.SHEBANG({
|
|
7935
7935
|
binary: "ruby"
|
|
7936
|
-
})
|
|
7936
|
+
})
|
|
7937
7937
|
].concat(IRB_DEFAULT).concat(COMMENT_MODES).concat(RUBY_DEFAULT_CONTAINS)
|
|
7938
7938
|
};
|
|
7939
7939
|
}
|
|
@@ -9341,7 +9341,7 @@ function $1898782c81cbfbc8$var$groovy(hljs) {
|
|
|
9341
9341
|
};
|
|
9342
9342
|
const NUMBER = $1898782c81cbfbc8$var$variants([
|
|
9343
9343
|
hljs.BINARY_NUMBER_MODE,
|
|
9344
|
-
hljs.C_NUMBER_MODE
|
|
9344
|
+
hljs.C_NUMBER_MODE
|
|
9345
9345
|
]);
|
|
9346
9346
|
const STRING = $1898782c81cbfbc8$var$variants([
|
|
9347
9347
|
{
|
|
@@ -9358,7 +9358,7 @@ function $1898782c81cbfbc8$var$groovy(hljs) {
|
|
|
9358
9358
|
relevance: 10
|
|
9359
9359
|
},
|
|
9360
9360
|
hljs.APOS_STRING_MODE,
|
|
9361
|
-
hljs.QUOTE_STRING_MODE
|
|
9361
|
+
hljs.QUOTE_STRING_MODE
|
|
9362
9362
|
], {
|
|
9363
9363
|
className: "string"
|
|
9364
9364
|
});
|
|
@@ -11473,7 +11473,7 @@ var $7c37ce7534b2e9cd$var$NUMERIC = {
|
|
|
11473
11473
|
// BinaryIntegerLiteral
|
|
11474
11474
|
{
|
|
11475
11475
|
begin: "\\b0[bB][01](_*[01])*[lL]?\\b"
|
|
11476
|
-
}
|
|
11476
|
+
}
|
|
11477
11477
|
],
|
|
11478
11478
|
relevance: 0
|
|
11479
11479
|
};
|
|
@@ -11496,7 +11496,7 @@ Website: https://www.java.com/
|
|
|
11496
11496
|
contains: [
|
|
11497
11497
|
"self"
|
|
11498
11498
|
] // allow nested () inside our annotation
|
|
11499
|
-
}
|
|
11499
|
+
}
|
|
11500
11500
|
]
|
|
11501
11501
|
};
|
|
11502
11502
|
const NUMBER = $7c37ce7534b2e9cd$var$NUMERIC;
|
|
@@ -11867,7 +11867,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
|
|
11867
11867
|
// https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
|
|
11868
11868
|
{
|
|
11869
11869
|
begin: "\\b0[0-7]+n?\\b"
|
|
11870
|
-
}
|
|
11870
|
+
}
|
|
11871
11871
|
],
|
|
11872
11872
|
relevance: 0
|
|
11873
11873
|
};
|
|
@@ -12149,13 +12149,14 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
|
|
12149
12149
|
// we have to count the parens to make sure we actually have the correct
|
|
12150
12150
|
// bounding ( ). There could be any number of sub-expressions inside
|
|
12151
12151
|
// also surrounded by parens.
|
|
12152
|
-
begin: hljs.UNDERSCORE_IDENT_RE + "\\(" +
|
|
12152
|
+
begin: hljs.UNDERSCORE_IDENT_RE + "\\(" + // first parens
|
|
12153
|
+
"[^()]*(\\(" + "[^()]*(\\(" + "[^()]*" + "\\)[^()]*)*" + "\\)[^()]*)*" + "\\)\\s*\\{",
|
|
12153
12154
|
returnBegin: true,
|
|
12154
12155
|
contains: [
|
|
12155
12156
|
PARAMS,
|
|
12156
12157
|
hljs.inherit(hljs.TITLE_MODE, {
|
|
12157
12158
|
begin: IDENT_RE$1
|
|
12158
|
-
})
|
|
12159
|
+
})
|
|
12159
12160
|
]
|
|
12160
12161
|
},
|
|
12161
12162
|
// hack: prevents detection of keywords in some circumstances
|
|
@@ -12410,7 +12411,7 @@ Website: https://julialang.org
|
|
|
12410
12411
|
"try",
|
|
12411
12412
|
"using",
|
|
12412
12413
|
"where",
|
|
12413
|
-
"while"
|
|
12414
|
+
"while"
|
|
12414
12415
|
];
|
|
12415
12416
|
// # literal generator (Julia 1.5.2)
|
|
12416
12417
|
// import REPL.REPLCompletions
|
|
@@ -12466,7 +12467,7 @@ Website: https://julialang.org
|
|
|
12466
12467
|
"true",
|
|
12467
12468
|
"undef",
|
|
12468
12469
|
"π",
|
|
12469
|
-
"ℯ"
|
|
12470
|
+
"ℯ"
|
|
12470
12471
|
];
|
|
12471
12472
|
// # built_in generator (Julia 1.5.2)
|
|
12472
12473
|
// import REPL.REPLCompletions
|
|
@@ -12669,7 +12670,7 @@ Website: https://julialang.org
|
|
|
12669
12670
|
"Vector",
|
|
12670
12671
|
"VersionNumber",
|
|
12671
12672
|
"WeakKeyDict",
|
|
12672
|
-
"WeakRef"
|
|
12673
|
+
"WeakRef"
|
|
12673
12674
|
];
|
|
12674
12675
|
var KEYWORDS = {
|
|
12675
12676
|
$pattern: VARIABLE_NAME_RE,
|
|
@@ -12876,7 +12877,7 @@ var $2f63b99661ce5bbd$var$NUMERIC = {
|
|
|
12876
12877
|
// BinaryIntegerLiteral
|
|
12877
12878
|
{
|
|
12878
12879
|
begin: "\\b0[bB][01](_*[01])*[lL]?\\b"
|
|
12879
|
-
}
|
|
12880
|
+
}
|
|
12880
12881
|
],
|
|
12881
12882
|
relevance: 0
|
|
12882
12883
|
};
|
|
@@ -13613,7 +13614,7 @@ Category: markup
|
|
|
13613
13614
|
"L"
|
|
13614
13615
|
].map((prefix)=>BEGIN_ENV(prefix + "Verbatim" + suffix, ARGUMENT_AND_THEN(ARGUMENT_O, VERBATIM_DELIMITED_ENV(prefix + "Verbatim" + suffix))))
|
|
13615
13616
|
])),
|
|
13616
|
-
BEGIN_ENV("minted", ARGUMENT_AND_THEN(ARGUMENT_O, ARGUMENT_AND_THEN(ARGUMENT_M, VERBATIM_DELIMITED_ENV("minted"))))
|
|
13617
|
+
BEGIN_ENV("minted", ARGUMENT_AND_THEN(ARGUMENT_O, ARGUMENT_AND_THEN(ARGUMENT_M, VERBATIM_DELIMITED_ENV("minted"))))
|
|
13617
13618
|
];
|
|
13618
13619
|
return {
|
|
13619
13620
|
name: "LaTeX",
|
|
@@ -14618,7 +14619,7 @@ Audit: 2020
|
|
|
14618
14619
|
},
|
|
14619
14620
|
{
|
|
14620
14621
|
begin: /#\d+/
|
|
14621
|
-
}
|
|
14622
|
+
}
|
|
14622
14623
|
]
|
|
14623
14624
|
};
|
|
14624
14625
|
const FUNCTION = {
|
|
@@ -14664,7 +14665,7 @@ Audit: 2020
|
|
|
14664
14665
|
{
|
|
14665
14666
|
begin: /"/,
|
|
14666
14667
|
end: /[^\\]"/
|
|
14667
|
-
}
|
|
14668
|
+
}
|
|
14668
14669
|
]
|
|
14669
14670
|
},
|
|
14670
14671
|
FUNCTION,
|
|
@@ -25023,7 +25024,7 @@ Category: common
|
|
|
25023
25024
|
"try",
|
|
25024
25025
|
"while",
|
|
25025
25026
|
"with",
|
|
25026
|
-
"yield"
|
|
25027
|
+
"yield"
|
|
25027
25028
|
];
|
|
25028
25029
|
const BUILT_INS = [
|
|
25029
25030
|
"__import__",
|
|
@@ -25094,7 +25095,7 @@ Category: common
|
|
|
25094
25095
|
"tuple",
|
|
25095
25096
|
"type",
|
|
25096
25097
|
"vars",
|
|
25097
|
-
"zip"
|
|
25098
|
+
"zip"
|
|
25098
25099
|
];
|
|
25099
25100
|
const LITERALS = [
|
|
25100
25101
|
"__debug__",
|
|
@@ -25102,7 +25103,7 @@ Category: common
|
|
|
25102
25103
|
"False",
|
|
25103
25104
|
"None",
|
|
25104
25105
|
"NotImplemented",
|
|
25105
|
-
"True"
|
|
25106
|
+
"True"
|
|
25106
25107
|
];
|
|
25107
25108
|
const KEYWORDS = {
|
|
25108
25109
|
keyword: RESERVED_WORDS.join(" "),
|
|
@@ -25253,7 +25254,7 @@ Category: common
|
|
|
25253
25254
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
25254
25255
|
{
|
|
25255
25256
|
begin: `\\b(${digitpart})[jJ]\\b`
|
|
25256
|
-
}
|
|
25257
|
+
}
|
|
25257
25258
|
]
|
|
25258
25259
|
};
|
|
25259
25260
|
const PARAMS = {
|
|
@@ -25278,7 +25279,7 @@ Category: common
|
|
|
25278
25279
|
STRING,
|
|
25279
25280
|
hljs.HASH_COMMENT_MODE
|
|
25280
25281
|
]
|
|
25281
|
-
}
|
|
25282
|
+
}
|
|
25282
25283
|
]
|
|
25283
25284
|
};
|
|
25284
25285
|
SUBST.contains = [
|
|
@@ -28836,7 +28837,7 @@ Category: common, system
|
|
|
28836
28837
|
{
|
|
28837
28838
|
begin: /"/,
|
|
28838
28839
|
end: /"/
|
|
28839
|
-
}
|
|
28840
|
+
}
|
|
28840
28841
|
]
|
|
28841
28842
|
};
|
|
28842
28843
|
// https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_numeric-literal
|
|
@@ -28862,7 +28863,7 @@ Category: common, system
|
|
|
28862
28863
|
// binary-literal
|
|
28863
28864
|
{
|
|
28864
28865
|
begin: /\b0b([01]_*)+\b/
|
|
28865
|
-
}
|
|
28866
|
+
}
|
|
28866
28867
|
]
|
|
28867
28868
|
};
|
|
28868
28869
|
SUBST.contains = [
|
|
@@ -29786,7 +29787,7 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
|
|
29786
29787
|
// https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
|
|
29787
29788
|
{
|
|
29788
29789
|
begin: "\\b0[0-7]+n?\\b"
|
|
29789
|
-
}
|
|
29790
|
+
}
|
|
29790
29791
|
],
|
|
29791
29792
|
relevance: 0
|
|
29792
29793
|
};
|
|
@@ -30068,13 +30069,14 @@ Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
|
|
30068
30069
|
// we have to count the parens to make sure we actually have the correct
|
|
30069
30070
|
// bounding ( ). There could be any number of sub-expressions inside
|
|
30070
30071
|
// also surrounded by parens.
|
|
30071
|
-
begin: hljs.UNDERSCORE_IDENT_RE + "\\(" +
|
|
30072
|
+
begin: hljs.UNDERSCORE_IDENT_RE + "\\(" + // first parens
|
|
30073
|
+
"[^()]*(\\(" + "[^()]*(\\(" + "[^()]*" + "\\)[^()]*)*" + "\\)[^()]*)*" + "\\)\\s*\\{",
|
|
30072
30074
|
returnBegin: true,
|
|
30073
30075
|
contains: [
|
|
30074
30076
|
PARAMS,
|
|
30075
30077
|
hljs.inherit(hljs.TITLE_MODE, {
|
|
30076
30078
|
begin: IDENT_RE$1
|
|
30077
|
-
})
|
|
30079
|
+
})
|
|
30078
30080
|
]
|
|
30079
30081
|
},
|
|
30080
30082
|
// hack: prevents detection of keywords in some circumstances
|
|
@@ -30207,7 +30209,7 @@ Category: common, scripting
|
|
|
30207
30209
|
tsLanguage.contains = tsLanguage.contains.concat([
|
|
30208
30210
|
DECORATOR,
|
|
30209
30211
|
NAMESPACE,
|
|
30210
|
-
INTERFACE
|
|
30212
|
+
INTERFACE
|
|
30211
30213
|
]);
|
|
30212
30214
|
// TS gets a simpler shebang rule than JS
|
|
30213
30215
|
swapMode(tsLanguage, "shebang", hljs.SHEBANG());
|
|
@@ -33195,7 +33197,7 @@ class $03b62e45aee69014$var$Response {
|
|
|
33195
33197
|
objects.forEach(function(obj) {
|
|
33196
33198
|
for(const key in obj)result[key] = obj[key];
|
|
33197
33199
|
});
|
|
33198
|
-
return result;
|
|
33200
|
+
return /** @type {T} */ result;
|
|
33199
33201
|
}
|
|
33200
33202
|
/* Stream merging */ /**
|
|
33201
33203
|
* @typedef Event
|
|
@@ -34022,7 +34024,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
|
|
|
34022
34024
|
* @param {CompiledMode | null} [parent]
|
|
34023
34025
|
* @returns {CompiledMode | never}
|
|
34024
34026
|
*/ function compileMode(mode, parent) {
|
|
34025
|
-
const cmode = mode;
|
|
34027
|
+
const cmode = /** @type CompiledMode */ mode;
|
|
34026
34028
|
if (mode.compiled) return cmode;
|
|
34027
34029
|
mode.compiled = true;
|
|
34028
34030
|
// __beforeBegin is considered private API, internal use only
|
|
@@ -34065,7 +34067,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
|
|
|
34065
34067
|
return $03b62e45aee69014$var$expandOrCloneMode(c === "self" ? mode : c);
|
|
34066
34068
|
}));
|
|
34067
34069
|
mode.contains.forEach(function(c) {
|
|
34068
|
-
compileMode(c, cmode);
|
|
34070
|
+
compileMode(/** @type Mode */ c, cmode);
|
|
34069
34071
|
});
|
|
34070
34072
|
if (mode.starts) compileMode(mode.starts, parent);
|
|
34071
34073
|
cmode.matcher = buildModeRegex(cmode);
|
|
@@ -34075,7 +34077,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
|
|
|
34075
34077
|
if (language.contains && language.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
34076
34078
|
// we need a null object, which inherit will guarantee
|
|
34077
34079
|
language.classNameAliases = $03b62e45aee69014$var$inherit(language.classNameAliases || {});
|
|
34078
|
-
return compileMode(language);
|
|
34080
|
+
return compileMode(/** @type Mode */ language);
|
|
34079
34081
|
}
|
|
34080
34082
|
/**
|
|
34081
34083
|
* Determines if a mode has a dependency on it's parent or not
|
|
@@ -34144,9 +34146,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
|
|
|
34144
34146
|
* @param {string} className
|
|
34145
34147
|
* @param {string} keywordList
|
|
34146
34148
|
*/ function splitAndCompile(className, keywordList) {
|
|
34147
|
-
if (caseInsensitive)
|
|
34148
|
-
keywordList = keywordList.toLowerCase();
|
|
34149
|
-
}
|
|
34149
|
+
if (caseInsensitive) keywordList = keywordList.toLowerCase();
|
|
34150
34150
|
keywordList.split(" ").forEach(function(keyword) {
|
|
34151
34151
|
const pair = keyword.split("|");
|
|
34152
34152
|
compiledKeywords[pair[0]] = [
|
|
@@ -34393,7 +34393,7 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
|
|
|
34393
34393
|
return;
|
|
34394
34394
|
}
|
|
34395
34395
|
result = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]);
|
|
34396
|
-
continuations[top.subLanguage] = result.top;
|
|
34396
|
+
continuations[top.subLanguage] = /** @type {CompiledMode} */ result.top;
|
|
34397
34397
|
} else result = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null);
|
|
34398
34398
|
// Counting embedded language score towards the host language may be disabled
|
|
34399
34399
|
// with zeroing the containing mode relevance. Use case in point is Markdown that
|
|
@@ -35062,9 +35062,7 @@ function $4aa8a9bf31969fd6$var$create(EConstructor) {
|
|
|
35062
35062
|
FormattedError.displayName = EConstructor.displayName || EConstructor.name;
|
|
35063
35063
|
return FormattedError;
|
|
35064
35064
|
function FormattedError(format) {
|
|
35065
|
-
if (format)
|
|
35066
|
-
format = $359a0e9dac52e4a7$exports.apply(null, arguments);
|
|
35067
|
-
}
|
|
35065
|
+
if (format) format = $359a0e9dac52e4a7$exports.apply(null, arguments);
|
|
35068
35066
|
return new EConstructor(format);
|
|
35069
35067
|
}
|
|
35070
35068
|
}
|
|
@@ -35748,7 +35746,22 @@ const $e19c725c5553b196$var$isFullwidthCodePoint = (codePoint)=>{
|
|
|
35748
35746
|
if (Number.isNaN(codePoint)) return false;
|
|
35749
35747
|
// Code points are derived from:
|
|
35750
35748
|
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
|
35751
|
-
if (codePoint >= 0x1100 && (codePoint <= 0x115F ||
|
|
35749
|
+
if (codePoint >= 0x1100 && (codePoint <= 0x115F || // Hangul Jamo
|
|
35750
|
+
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
|
35751
|
+
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
|
35752
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
35753
|
+
0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
35754
|
+
0x3250 <= codePoint && codePoint <= 0x4DBF || // CJK Unified Ideographs .. Yi Radicals
|
|
35755
|
+
0x4E00 <= codePoint && codePoint <= 0xA4C6 || // Hangul Jamo Extended-A
|
|
35756
|
+
0xA960 <= codePoint && codePoint <= 0xA97C || // Hangul Syllables
|
|
35757
|
+
0xAC00 <= codePoint && codePoint <= 0xD7A3 || // CJK Compatibility Ideographs
|
|
35758
|
+
0xF900 <= codePoint && codePoint <= 0xFAFF || // Vertical Forms
|
|
35759
|
+
0xFE10 <= codePoint && codePoint <= 0xFE19 || // CJK Compatibility Forms .. Small Form Variants
|
|
35760
|
+
0xFE30 <= codePoint && codePoint <= 0xFE6B || // Halfwidth and Fullwidth Forms
|
|
35761
|
+
0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6 || // Kana Supplement
|
|
35762
|
+
0x1B000 <= codePoint && codePoint <= 0x1B001 || // Enclosed Ideographic Supplement
|
|
35763
|
+
0x1F200 <= codePoint && codePoint <= 0x1F251 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
35764
|
+
0x20000 <= codePoint && codePoint <= 0x3FFFD)) return true;
|
|
35752
35765
|
return false;
|
|
35753
35766
|
};
|
|
35754
35767
|
$e19c725c5553b196$exports = $e19c725c5553b196$var$isFullwidthCodePoint;
|
|
@@ -35793,7 +35806,22 @@ const $0926ce0154f25409$var$isFullwidthCodePoint = (codePoint)=>{
|
|
|
35793
35806
|
if (Number.isNaN(codePoint)) return false;
|
|
35794
35807
|
// Code points are derived from:
|
|
35795
35808
|
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
|
35796
|
-
if (codePoint >= 0x1100 && (codePoint <= 0x115F ||
|
|
35809
|
+
if (codePoint >= 0x1100 && (codePoint <= 0x115F || // Hangul Jamo
|
|
35810
|
+
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
|
35811
|
+
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
|
35812
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
35813
|
+
0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
35814
|
+
0x3250 <= codePoint && codePoint <= 0x4DBF || // CJK Unified Ideographs .. Yi Radicals
|
|
35815
|
+
0x4E00 <= codePoint && codePoint <= 0xA4C6 || // Hangul Jamo Extended-A
|
|
35816
|
+
0xA960 <= codePoint && codePoint <= 0xA97C || // Hangul Syllables
|
|
35817
|
+
0xAC00 <= codePoint && codePoint <= 0xD7A3 || // CJK Compatibility Ideographs
|
|
35818
|
+
0xF900 <= codePoint && codePoint <= 0xFAFF || // Vertical Forms
|
|
35819
|
+
0xFE10 <= codePoint && codePoint <= 0xFE19 || // CJK Compatibility Forms .. Small Form Variants
|
|
35820
|
+
0xFE30 <= codePoint && codePoint <= 0xFE6B || // Halfwidth and Fullwidth Forms
|
|
35821
|
+
0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6 || // Kana Supplement
|
|
35822
|
+
0x1B000 <= codePoint && codePoint <= 0x1B001 || // Enclosed Ideographic Supplement
|
|
35823
|
+
0x1F200 <= codePoint && codePoint <= 0x1F251 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
35824
|
+
0x20000 <= codePoint && codePoint <= 0x3FFFD)) return true;
|
|
35797
35825
|
return false;
|
|
35798
35826
|
};
|
|
35799
35827
|
$0926ce0154f25409$exports = $0926ce0154f25409$var$isFullwidthCodePoint;
|