@openspecui/web 1.0.0 → 1.0.2
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/dist/assets/{BufferResource-CVUoegR6.js → BufferResource-DMjllemV.js} +1 -1
- package/{dist-ssg/client/assets/CanvasRenderer-BEIcB8i1.js → dist/assets/CanvasRenderer-kKbOzIca.js} +1 -1
- package/{dist-ssg/client/assets/Filter-Bu_qhr6H.js → dist/assets/Filter-C5l7SDia.js} +1 -1
- package/{dist-ssg/client/assets/RenderTargetSystem-DWouFDxU.js → dist/assets/RenderTargetSystem-BaFVF7ku.js} +1 -1
- package/dist/assets/{WebGLRenderer-6FH_N1FV.js → WebGLRenderer-Ch58nD6Y.js} +1 -1
- package/{dist-ssg/client/assets/WebGPURenderer-B8sJk3Sv.js → dist/assets/WebGPURenderer-Bpf-ane5.js} +1 -1
- package/{dist-ssg/client/assets/browserAll-CLKeV1yb.js → dist/assets/browserAll-CiXGzqJc.js} +1 -1
- package/{dist-ssg/client/assets/index-Bv7pWR8R.js → dist/assets/index-BQ6UeNz3.js} +1 -1
- package/dist/assets/{index-BtNuxyw4.js → index-BTMNsWWi.js} +1 -1
- package/dist/assets/{index-CEKSUzvw.js → index-BXWVYqbO.js} +1 -1
- package/dist/assets/{index-BRp8MJ9v.js → index-BXqdCpuU.js} +1 -1
- package/dist/assets/{index-BE5-y0_g.js → index-Bdb0Fpwv.js} +1 -1
- package/{dist-ssg/client/assets/index-BPCTI2mG.js → dist/assets/index-BgHJ8w_f.js} +1 -1
- package/{dist-ssg/client/assets/index-D4AU46yO.js → dist/assets/index-BwIIOUjO.js} +1 -1
- package/dist/assets/{index-mWXhCp9j.js → index-CFkiyi1j.js} +1 -1
- package/dist/assets/{index-eQZwF8qE.js → index-CLxF_OQQ.js} +1 -1
- package/{dist-ssg/client/assets/index-DXRZmZm8.js → dist/assets/index-CckLtqno.js} +1 -1
- package/dist/assets/{index-CEHMo0EU.js → index-CsXgfYOH.js} +252 -260
- package/{dist-ssg/client/assets/index-CX13iBBs.js → dist/assets/index-D2Uig6TZ.js} +1 -1
- package/dist/assets/{index-BlZ-sasH.js → index-DEWTHv2o.js} +1 -1
- package/{dist-ssg/client/assets/index-Bp_dnlLF.js → dist/assets/index-DJZG7SGL.js} +1 -1
- package/{dist-ssg/client/assets/index-CoOT7eZ9.js → dist/assets/index-L7IKyBGp.js} +1 -1
- package/{dist-ssg/client/assets/index-Byr3HkRi.js → dist/assets/index-e2r1Tz_y.js} +1 -1
- package/dist/assets/{webworkerAll-DjWoTx9g.js → webworkerAll-D0vlbEoH.js} +1 -1
- package/dist/index.html +1 -1
- package/dist-ssg/client/.vite/ssr-manifest.json +191 -203
- package/dist-ssg/client/assets/{BufferResource-CVUoegR6.js → BufferResource-DMjllemV.js} +1 -1
- package/{dist/assets/CanvasRenderer-BEIcB8i1.js → dist-ssg/client/assets/CanvasRenderer-kKbOzIca.js} +1 -1
- package/{dist/assets/Filter-Bu_qhr6H.js → dist-ssg/client/assets/Filter-C5l7SDia.js} +1 -1
- package/{dist/assets/RenderTargetSystem-DWouFDxU.js → dist-ssg/client/assets/RenderTargetSystem-BaFVF7ku.js} +1 -1
- package/dist-ssg/client/assets/{WebGLRenderer-6FH_N1FV.js → WebGLRenderer-Ch58nD6Y.js} +1 -1
- package/{dist/assets/WebGPURenderer-B8sJk3Sv.js → dist-ssg/client/assets/WebGPURenderer-Bpf-ane5.js} +1 -1
- package/{dist/assets/browserAll-CLKeV1yb.js → dist-ssg/client/assets/browserAll-CiXGzqJc.js} +1 -1
- package/{dist/assets/index-Bv7pWR8R.js → dist-ssg/client/assets/index-BQ6UeNz3.js} +1 -1
- package/dist-ssg/client/assets/{index-BtNuxyw4.js → index-BTMNsWWi.js} +1 -1
- package/dist-ssg/client/assets/{index-CEKSUzvw.js → index-BXWVYqbO.js} +1 -1
- package/dist-ssg/client/assets/{index-BRp8MJ9v.js → index-BXqdCpuU.js} +1 -1
- package/dist-ssg/client/assets/{index-BE5-y0_g.js → index-Bdb0Fpwv.js} +1 -1
- package/{dist/assets/index-BPCTI2mG.js → dist-ssg/client/assets/index-BgHJ8w_f.js} +1 -1
- package/{dist/assets/index-D4AU46yO.js → dist-ssg/client/assets/index-BwIIOUjO.js} +1 -1
- package/dist-ssg/client/assets/{index-mWXhCp9j.js → index-CFkiyi1j.js} +1 -1
- package/dist-ssg/client/assets/{index-eQZwF8qE.js → index-CLxF_OQQ.js} +1 -1
- package/{dist/assets/index-DXRZmZm8.js → dist-ssg/client/assets/index-CckLtqno.js} +1 -1
- package/dist-ssg/client/assets/{index-CEHMo0EU.js → index-CsXgfYOH.js} +252 -260
- package/{dist/assets/index-CX13iBBs.js → dist-ssg/client/assets/index-D2Uig6TZ.js} +1 -1
- package/dist-ssg/client/assets/{index-BlZ-sasH.js → index-DEWTHv2o.js} +1 -1
- package/{dist/assets/index-Bp_dnlLF.js → dist-ssg/client/assets/index-DJZG7SGL.js} +1 -1
- package/{dist/assets/index-CoOT7eZ9.js → dist-ssg/client/assets/index-L7IKyBGp.js} +1 -1
- package/{dist/assets/index-Byr3HkRi.js → dist-ssg/client/assets/index-e2r1Tz_y.js} +1 -1
- package/dist-ssg/client/assets/{webworkerAll-DjWoTx9g.js → webworkerAll-D0vlbEoH.js} +1 -1
- package/dist-ssg/client/index.html +1 -1
- package/dist-ssg/server/entry-server.js +74139 -74010
- package/package.json +2 -2
- package/dist-ssg/server/assets/{CanvasRenderer-D9aMd7WV.js → CanvasRenderer-pNmMTrI2.js} +2 -2
- package/dist-ssg/server/assets/{WebGLRenderer-B0I5TP5d.js → WebGLRenderer-Dga41Fk-.js} +2 -2
- package/dist-ssg/server/assets/{WebGPURenderer-DCgUFny7.js → WebGPURenderer-B0JmWN_-.js} +2 -2
- package/dist-ssg/server/assets/{browserAll-BixK1BYs.js → browserAll-DnX6zchK.js} +2 -2
- package/dist-ssg/server/assets/{index-3uSTc-o9.js → index-AY5dwCzB.js} +2 -2
- package/dist-ssg/server/assets/{index-BvURgefh.js → index-BDNpfeKp.js} +2 -2
- package/dist-ssg/server/assets/{index-C3RtR5EA.js → index-BDhUxlhZ.js} +2 -2
- package/dist-ssg/server/assets/{index-8uE7RyRi.js → index-BNzczBXx.js} +2 -2
- package/dist-ssg/server/assets/{index-DfcLdBOi.js → index-BrBfJs8G.js} +2 -2
- package/dist-ssg/server/assets/{index-DL23PkQi.js → index-BypCwnYp.js} +2 -2
- package/dist-ssg/server/assets/{index-BkJYfA64.js → index-CEcjSZWj.js} +2 -2
- package/dist-ssg/server/assets/{index-C2CuXbSQ.js → index-CM_EYDdh.js} +2 -2
- package/dist-ssg/server/assets/{index-D0DRToHj.js → index-CgoHTGw5.js} +2 -2
- package/dist-ssg/server/assets/{index-O2XMojWG.js → index-CoQZ31Df.js} +2 -2
- package/dist-ssg/server/assets/{index-D5MdLWau.js → index-CrjnEc68.js} +2 -2
- package/dist-ssg/server/assets/{index-CZtnphnE.js → index-Cvec0FAd.js} +2 -2
- package/dist-ssg/server/assets/{index-BvGNqnLD.js → index-DEin2khy.js} +2 -2
- package/dist-ssg/server/assets/{index-DBYODvy4.js → index-DcUFserL.js} +2 -2
- package/dist-ssg/server/assets/{index-BDzDVVaf.js → index-uF1vLXwX.js} +2 -2
- package/dist-ssg/server/assets/{webworkerAll-DNiMFaVV.js → webworkerAll-BcWv2bEB.js} +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openspecui/web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"openspecui-ssg": "./dist-ssg/ssg-cli.mjs"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vitest": "^4.0.18",
|
|
62
62
|
"yaml": "^2.8.0",
|
|
63
63
|
"yargs": "^18.0.0",
|
|
64
|
-
"@openspecui/server": "1.0.
|
|
64
|
+
"@openspecui/server": "1.0.2",
|
|
65
65
|
"xterm-input-panel": "1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
@@ -4,11 +4,11 @@ import "util";
|
|
|
4
4
|
import "crypto";
|
|
5
5
|
import "async_hooks";
|
|
6
6
|
import "stream";
|
|
7
|
-
import "process";
|
|
8
|
-
import "buffer";
|
|
9
7
|
import "node:process";
|
|
10
8
|
import "node:path";
|
|
11
9
|
import "node:url";
|
|
10
|
+
import "process";
|
|
11
|
+
import "buffer";
|
|
12
12
|
import "./Filter-ClU0-pLL.js";
|
|
13
13
|
let canUseNewCanvasBlendModesValue;
|
|
14
14
|
function createColoredCanvas(color) {
|
|
@@ -5,11 +5,11 @@ import "util";
|
|
|
5
5
|
import "crypto";
|
|
6
6
|
import "async_hooks";
|
|
7
7
|
import "stream";
|
|
8
|
-
import "process";
|
|
9
|
-
import "buffer";
|
|
10
8
|
import "node:process";
|
|
11
9
|
import "node:path";
|
|
12
10
|
import "node:url";
|
|
11
|
+
import "process";
|
|
12
|
+
import "buffer";
|
|
13
13
|
import "./Filter-ClU0-pLL.js";
|
|
14
14
|
function isSafari() {
|
|
15
15
|
const { userAgent } = DOMAdapter.get().getNavigator();
|
|
@@ -5,11 +5,11 @@ import "util";
|
|
|
5
5
|
import "crypto";
|
|
6
6
|
import "async_hooks";
|
|
7
7
|
import "stream";
|
|
8
|
-
import "process";
|
|
9
|
-
import "buffer";
|
|
10
8
|
import "node:process";
|
|
11
9
|
import "node:path";
|
|
12
10
|
import "node:url";
|
|
11
|
+
import "process";
|
|
12
|
+
import "buffer";
|
|
13
13
|
import "./Filter-ClU0-pLL.js";
|
|
14
14
|
const tempState = State.for2d();
|
|
15
15
|
class GpuBatchAdaptor {
|
|
@@ -4,11 +4,11 @@ import "util";
|
|
|
4
4
|
import "crypto";
|
|
5
5
|
import "async_hooks";
|
|
6
6
|
import "stream";
|
|
7
|
-
import "process";
|
|
8
|
-
import "buffer";
|
|
9
7
|
import "node:process";
|
|
10
8
|
import "node:path";
|
|
11
9
|
import "node:url";
|
|
10
|
+
import "process";
|
|
11
|
+
import "buffer";
|
|
12
12
|
import "./Filter-ClU0-pLL.js";
|
|
13
13
|
class CanvasObserver {
|
|
14
14
|
constructor(options) {
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36;
|
|
12
12
|
const text = /* @__PURE__ */ new ExternalTokenizer((input) => {
|
|
13
13
|
let start = input.pos;
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5;
|
|
12
12
|
const _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
|
|
13
13
|
function isNum(ch) {
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const indent = 168, dedent = 169, descendantOp = 170, InterpolationEnd = 1, InterpolationContinue = 2, Unit = 3, callee = 171, identifier = 172, VariableName = 4, queryIdentifier = 173, InterpolationStart = 5, newline = 174, blankLineStart = 175, eof = 176, whitespace = 177, LineComment = 6, Comment = 7, IndentedMixin = 8, IndentedInclude = 9, Dialect_indented = 0;
|
|
12
12
|
const space = [
|
|
13
13
|
9,
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const javaHighlighting = styleTags({
|
|
12
12
|
null: tags.null,
|
|
13
13
|
instanceof: tags.operatorKeyword,
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const descendantOp = 110, Unit = 1, openArgList = 2;
|
|
12
12
|
const space = [
|
|
13
13
|
9,
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const spec_Keyword = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 };
|
|
12
12
|
const parser = /* @__PURE__ */ LRParser.deserialize({
|
|
13
13
|
version: 14,
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155;
|
|
12
12
|
const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85;
|
|
13
13
|
const bracketed = /* @__PURE__ */ new Set([
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
|
|
12
12
|
function wordChar(code) {
|
|
13
13
|
return code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const parser = /* @__PURE__ */ LRParser.deserialize({
|
|
12
12
|
version: 14,
|
|
13
13
|
states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
|
|
12
12
|
function nameChar(ch) {
|
|
13
13
|
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148;
|
|
12
12
|
const newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125;
|
|
13
13
|
const semicolon = new ExternalTokenizer((input, stack) => {
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const castOpen = 1, HeredocString = 2, interpolatedStringContent = 275, EscapeSequence = 3, afterInterpolation = 276, automaticSemicolon = 277, eof = 278, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, readonly = 52, _require = 53, require_once = 54, _return = 55, _switch = 56, _throw = 57, trait = 58, _try = 59, unset = 60, use = 61, _var = 62, Visibility = 63, _while = 64, xor = 65, _yield = 66;
|
|
12
12
|
const keywordMap = {
|
|
13
13
|
abstract,
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 179, endrawTagStart = 4, rawText = 180, endcommentTagStart = 5, commentText = 181, InlineComment = 6;
|
|
12
12
|
function wordChar(code) {
|
|
13
13
|
return code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const RawString = 1, templateArgsEndFallback = 2, MacroName = 3;
|
|
12
12
|
const R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62;
|
|
13
13
|
const rawString = new ExternalTokenizer((input) => {
|
|
@@ -3,11 +3,11 @@ import "util";
|
|
|
3
3
|
import "crypto";
|
|
4
4
|
import "async_hooks";
|
|
5
5
|
import "stream";
|
|
6
|
-
import "process";
|
|
7
|
-
import "buffer";
|
|
8
6
|
import "node:process";
|
|
9
7
|
import "node:path";
|
|
10
8
|
import "node:url";
|
|
9
|
+
import "process";
|
|
10
|
+
import "buffer";
|
|
11
11
|
const whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
|
|
12
12
|
function isAlpha(ch) {
|
|
13
13
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57;
|