datacontract-editor 0.1.10 → 0.1.12

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.
Files changed (94) hide show
  1. package/README.md +1 -3
  2. package/bin/datacontract-editor.js +73 -29
  3. package/dist/assets/editor.worker-4.7.0.js +30 -9034
  4. package/dist/assets/yaml.worker-4.7.0.js +432 -26435
  5. package/dist/datacontract-editor.css +2 -1
  6. package/dist/datacontract-editor.es.js +82727 -77765
  7. package/dist/monaco-4.7.0.js +114774 -125871
  8. package/dist/rolldown-runtime-DY7j01NX.js +30 -0
  9. package/package.json +20 -12
  10. package/dist/abap-Bs8kvjsq.js +0 -1398
  11. package/dist/apex-Dspwrl5m.js +0 -326
  12. package/dist/azcli-k1BiOau1.js +0 -68
  13. package/dist/bat-BIP72KWc.js +0 -100
  14. package/dist/bicep-VhQeYhS3.js +0 -102
  15. package/dist/cameligo-DnuAXtHg.js +0 -174
  16. package/dist/clojure-BAuDPsal.js +0 -761
  17. package/dist/coffee-BV06qSnj.js +0 -232
  18. package/dist/cpp-Cz8Jeyrf.js +0 -389
  19. package/dist/csharp-F6hhlXFb.js +0 -326
  20. package/dist/csp-KzlEHCyI.js +0 -53
  21. package/dist/css-e4FKntZ3.js +0 -187
  22. package/dist/cssMode-BNkTa2xp.js +0 -1618
  23. package/dist/cypher-CpvDGKRr.js +0 -263
  24. package/dist/dart-DdHeFWR0.js +0 -281
  25. package/dist/dockerfile-aoNXDcio.js +0 -130
  26. package/dist/ecl-C4Q0DYuA.js +0 -456
  27. package/dist/elixir-C9X42b0T.js +0 -569
  28. package/dist/flow9-Bff42pfB.js +0 -142
  29. package/dist/freemarker2-Dyfzmb5A.js +0 -989
  30. package/dist/fsharp-C6vPAsHG.js +0 -217
  31. package/dist/go-DEr8zx9f.js +0 -218
  32. package/dist/graphql-BiNBBRFh.js +0 -151
  33. package/dist/handlebars-BtDNI-uC.js +0 -419
  34. package/dist/hcl-2T9lKuFg.js +0 -183
  35. package/dist/html-Cn4TGw_o.js +0 -308
  36. package/dist/htmlMode-Bf84vbo2.js +0 -1628
  37. package/dist/ini-CZGtssYM.js +0 -71
  38. package/dist/java-B260NeH3.js +0 -232
  39. package/dist/javascript-B86Kac07.js +0 -70
  40. package/dist/jsonMode-Ckgg5lAE.js +0 -2051
  41. package/dist/julia-kuNLM9c5.js +0 -511
  42. package/dist/kotlin-Bz6kAefA.js +0 -253
  43. package/dist/less-AZUtS89I.js +0 -162
  44. package/dist/lexon-BcmgnyRb.js +0 -157
  45. package/dist/liquid-D0NPwuu_.js +0 -240
  46. package/dist/lua-Dz1RbATg.js +0 -162
  47. package/dist/m3-CIMooLFn.js +0 -210
  48. package/dist/markdown-C1BsCK9P.js +0 -229
  49. package/dist/mdx-QFRSBtVQ.js +0 -165
  50. package/dist/mips-BovsnfLQ.js +0 -198
  51. package/dist/msdax-CiRB2ZB-.js +0 -375
  52. package/dist/mysql-BwdpPE19.js +0 -878
  53. package/dist/objective-c-D4nfHfso.js +0 -183
  54. package/dist/pascal--j5-PYtz.js +0 -251
  55. package/dist/pascaligo-C7TcJxNL.js +0 -164
  56. package/dist/perl-BzEWqUb5.js +0 -626
  57. package/dist/pgsql-B_KZ0mGX.js +0 -851
  58. package/dist/php-A19QHzQV.js +0 -500
  59. package/dist/pla-COeKY1hA.js +0 -137
  60. package/dist/postiats-BfMp7zJL.js +0 -907
  61. package/dist/powerquery-B0TS_5Gb.js +0 -890
  62. package/dist/powershell-5jSbKdYB.js +0 -239
  63. package/dist/protobuf-YgnOutn3.js +0 -420
  64. package/dist/pug-DLej6kn5.js +0 -402
  65. package/dist/python-C8RW9B6A.js +0 -301
  66. package/dist/qsharp-AhjqtSHB.js +0 -301
  67. package/dist/r-D-F4P80w.js +0 -243
  68. package/dist/razor-CLZqdY_r.js +0 -550
  69. package/dist/redis-hwwIlMnV.js +0 -302
  70. package/dist/redshift-Bcm_kjEG.js +0 -809
  71. package/dist/restructuredtext-CrdzfPP-.js +0 -174
  72. package/dist/ruby-QC2UNm1s.js +0 -511
  73. package/dist/rust-5aqiQ3L5.js +0 -343
  74. package/dist/sb-B1g1ZfLJ.js +0 -115
  75. package/dist/scala-C2U4R5Gb.js +0 -370
  76. package/dist/scheme-DeFRbslr.js +0 -108
  77. package/dist/scss-RSTCiCmI.js +0 -262
  78. package/dist/shell-BpF-iNu8.js +0 -221
  79. package/dist/solidity-C00r2mbQ.js +0 -1367
  80. package/dist/sophia-DVW5ZKDB.js +0 -199
  81. package/dist/sparql-B0nmpxeX.js +0 -201
  82. package/dist/sql-CJwKPERn.js +0 -853
  83. package/dist/st-DPlKG5DT.js +0 -416
  84. package/dist/swift-YZBAbVHV.js +0 -309
  85. package/dist/systemverilog-CDQSaH63.js +0 -576
  86. package/dist/tcl-Dlu8sp6Q.js +0 -232
  87. package/dist/tsMode-yleMwhPq.js +0 -933
  88. package/dist/twig-C5TO7-kw.js +0 -392
  89. package/dist/typescript-CJBeebKU.js +0 -343
  90. package/dist/typespec-BsmjDEu7.js +0 -117
  91. package/dist/vb-ChHvIDrk.js +0 -372
  92. package/dist/wgsl-XEp1ju8c.js +0 -439
  93. package/dist/xml-vC-NMVX1.js +0 -95
  94. package/dist/yaml-Dlf2VF-T.js +0 -206
@@ -1,301 +0,0 @@
1
- var e = {
2
- comments: {
3
- lineComment: "//"
4
- },
5
- brackets: [
6
- ["{", "}"],
7
- ["[", "]"],
8
- ["(", ")"]
9
- ],
10
- autoClosingPairs: [
11
- { open: "{", close: "}" },
12
- { open: "[", close: "]" },
13
- { open: "(", close: ")" },
14
- { open: '"', close: '"', notIn: ["string", "comment"] }
15
- ],
16
- surroundingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" },
20
- { open: '"', close: '"' }
21
- ]
22
- }, t = {
23
- // Set defaultToken to invalid to see what you do not tokenize yet
24
- keywords: [
25
- "namespace",
26
- "open",
27
- "import",
28
- "export",
29
- "as",
30
- "operation",
31
- "function",
32
- "body",
33
- "adjoint",
34
- "newtype",
35
- "struct",
36
- "controlled",
37
- "if",
38
- "elif",
39
- "else",
40
- "repeat",
41
- "until",
42
- "fixup",
43
- "for",
44
- "in",
45
- "while",
46
- "return",
47
- "fail",
48
- "within",
49
- "apply",
50
- "Adjoint",
51
- "Controlled",
52
- "Adj",
53
- "Ctl",
54
- "is",
55
- "self",
56
- "auto",
57
- "distribute",
58
- "invert",
59
- "intrinsic",
60
- "let",
61
- "set",
62
- "w/",
63
- "new",
64
- "not",
65
- "and",
66
- "or",
67
- "use",
68
- "borrow",
69
- "using",
70
- "borrowing",
71
- "mutable",
72
- "internal"
73
- ],
74
- typeKeywords: [
75
- "Unit",
76
- "Int",
77
- "BigInt",
78
- "Double",
79
- "Bool",
80
- "String",
81
- "Qubit",
82
- "Result",
83
- "Pauli",
84
- "Range"
85
- ],
86
- invalidKeywords: [
87
- "abstract",
88
- "base",
89
- "bool",
90
- "break",
91
- "byte",
92
- "case",
93
- "catch",
94
- "char",
95
- "checked",
96
- "class",
97
- "const",
98
- "continue",
99
- "decimal",
100
- "default",
101
- "delegate",
102
- "do",
103
- "double",
104
- "enum",
105
- "event",
106
- "explicit",
107
- "extern",
108
- "finally",
109
- "fixed",
110
- "float",
111
- "foreach",
112
- "goto",
113
- "implicit",
114
- "int",
115
- "interface",
116
- "lock",
117
- "long",
118
- "null",
119
- "object",
120
- "operator",
121
- "out",
122
- "override",
123
- "params",
124
- "private",
125
- "protected",
126
- "public",
127
- "readonly",
128
- "ref",
129
- "sbyte",
130
- "sealed",
131
- "short",
132
- "sizeof",
133
- "stackalloc",
134
- "static",
135
- "string",
136
- "switch",
137
- "this",
138
- "throw",
139
- "try",
140
- "typeof",
141
- "unit",
142
- "ulong",
143
- "unchecked",
144
- "unsafe",
145
- "ushort",
146
- "virtual",
147
- "void",
148
- "volatile"
149
- ],
150
- constants: ["true", "false", "PauliI", "PauliX", "PauliY", "PauliZ", "One", "Zero"],
151
- builtin: [
152
- "X",
153
- "Y",
154
- "Z",
155
- "H",
156
- "HY",
157
- "S",
158
- "T",
159
- "SWAP",
160
- "CNOT",
161
- "CCNOT",
162
- "MultiX",
163
- "R",
164
- "RFrac",
165
- "Rx",
166
- "Ry",
167
- "Rz",
168
- "R1",
169
- "R1Frac",
170
- "Exp",
171
- "ExpFrac",
172
- "Measure",
173
- "M",
174
- "MultiM",
175
- "Message",
176
- "Length",
177
- "Assert",
178
- "AssertProb",
179
- "AssertEqual"
180
- ],
181
- operators: [
182
- "and=",
183
- "<-",
184
- "->",
185
- "*",
186
- "*=",
187
- "@",
188
- "!",
189
- "^",
190
- "^=",
191
- ":",
192
- "::",
193
- ".",
194
- "..",
195
- "==",
196
- "...",
197
- "=",
198
- "=>",
199
- ">",
200
- ">=",
201
- "<",
202
- "<=",
203
- "-",
204
- "-=",
205
- "!=",
206
- "or=",
207
- "%",
208
- "%=",
209
- "|",
210
- "+",
211
- "+=",
212
- "?",
213
- "/",
214
- "/=",
215
- "&&&",
216
- "&&&=",
217
- "^^^",
218
- "^^^=",
219
- ">>>",
220
- ">>>=",
221
- "<<<",
222
- "<<<=",
223
- "|||",
224
- "|||=",
225
- "~~~",
226
- "_",
227
- "w/",
228
- "w/="
229
- ],
230
- namespaceFollows: ["namespace", "open"],
231
- importsFollows: ["import"],
232
- symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
233
- escapes: /\\[\s\S]/,
234
- // The main tokenizer for our languages
235
- tokenizer: {
236
- root: [
237
- // identifiers and keywords
238
- [
239
- /[a-zA-Z_$][\w$]*/,
240
- {
241
- cases: {
242
- "@namespaceFollows": {
243
- token: "keyword.$0",
244
- next: "@namespace"
245
- },
246
- "@importsFollows": {
247
- token: "keyword.$0",
248
- next: "@imports"
249
- },
250
- "@typeKeywords": "type",
251
- "@keywords": "keyword",
252
- "@constants": "constant",
253
- "@builtin": "keyword",
254
- "@invalidKeywords": "invalid",
255
- "@default": "identifier"
256
- }
257
- }
258
- ],
259
- // whitespace
260
- { include: "@whitespace" },
261
- // delimiters and operators
262
- [/[{}()\[\]]/, "@brackets"],
263
- [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
264
- // numbers
265
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
266
- [/\d+/, "number"],
267
- // delimiter: after number because of .\d floats
268
- [/[;,.]/, "delimiter"],
269
- // strings
270
- //[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-terminated string
271
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
272
- ],
273
- string: [
274
- [/[^\\"]+/, "string"],
275
- [/@escapes/, "string.escape"],
276
- [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
277
- ],
278
- namespace: [
279
- { include: "@whitespace" },
280
- [/[A-Za-z]\w*/, "namespace"],
281
- [/[\.]/, "delimiter"],
282
- ["", "", "@pop"]
283
- ],
284
- imports: [
285
- { include: "@whitespace" },
286
- [/[A-Za-z]\w*(?=\.)/, "namespace"],
287
- [/[A-Za-z]\w*/, "identifier"],
288
- [/\*/, "wildcard"],
289
- [/[\.,]/, "delimiter"],
290
- ["", "", "@pop"]
291
- ],
292
- whitespace: [
293
- [/[ \t\r\n]+/, "white"],
294
- [/(\/\/).*/, "comment"]
295
- ]
296
- }
297
- };
298
- export {
299
- e as conf,
300
- t as language
301
- };
@@ -1,243 +0,0 @@
1
- var e = {
2
- comments: {
3
- lineComment: "#"
4
- },
5
- brackets: [
6
- ["{", "}"],
7
- ["[", "]"],
8
- ["(", ")"]
9
- ],
10
- autoClosingPairs: [
11
- { open: "{", close: "}" },
12
- { open: "[", close: "]" },
13
- { open: "(", close: ")" },
14
- { open: '"', close: '"' }
15
- ],
16
- surroundingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" },
20
- { open: '"', close: '"' }
21
- ]
22
- }, o = {
23
- defaultToken: "",
24
- tokenPostfix: ".r",
25
- roxygen: [
26
- "@alias",
27
- "@aliases",
28
- "@assignee",
29
- "@author",
30
- "@backref",
31
- "@callGraph",
32
- "@callGraphDepth",
33
- "@callGraphPrimitives",
34
- "@concept",
35
- "@describeIn",
36
- "@description",
37
- "@details",
38
- "@docType",
39
- "@encoding",
40
- "@evalNamespace",
41
- "@evalRd",
42
- "@example",
43
- "@examples",
44
- "@export",
45
- "@exportClass",
46
- "@exportMethod",
47
- "@exportPattern",
48
- "@family",
49
- "@field",
50
- "@formals",
51
- "@format",
52
- "@import",
53
- "@importClassesFrom",
54
- "@importFrom",
55
- "@importMethodsFrom",
56
- "@include",
57
- "@inherit",
58
- "@inheritDotParams",
59
- "@inheritParams",
60
- "@inheritSection",
61
- "@keywords",
62
- "@md",
63
- "@method",
64
- "@name",
65
- "@noMd",
66
- "@noRd",
67
- "@note",
68
- "@param",
69
- "@rawNamespace",
70
- "@rawRd",
71
- "@rdname",
72
- "@references",
73
- "@return",
74
- "@S3method",
75
- "@section",
76
- "@seealso",
77
- "@setClass",
78
- "@slot",
79
- "@source",
80
- "@template",
81
- "@templateVar",
82
- "@title",
83
- "@TODO",
84
- "@usage",
85
- "@useDynLib"
86
- ],
87
- constants: [
88
- "NULL",
89
- "FALSE",
90
- "TRUE",
91
- "NA",
92
- "Inf",
93
- "NaN",
94
- "NA_integer_",
95
- "NA_real_",
96
- "NA_complex_",
97
- "NA_character_",
98
- "T",
99
- "F",
100
- "LETTERS",
101
- "letters",
102
- "month.abb",
103
- "month.name",
104
- "pi",
105
- "R.version.string"
106
- ],
107
- keywords: [
108
- "break",
109
- "next",
110
- "return",
111
- "if",
112
- "else",
113
- "for",
114
- "in",
115
- "repeat",
116
- "while",
117
- "array",
118
- "category",
119
- "character",
120
- "complex",
121
- "double",
122
- "function",
123
- "integer",
124
- "list",
125
- "logical",
126
- "matrix",
127
- "numeric",
128
- "vector",
129
- "data.frame",
130
- "factor",
131
- "library",
132
- "require",
133
- "attach",
134
- "detach",
135
- "source"
136
- ],
137
- special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"],
138
- brackets: [
139
- { open: "{", close: "}", token: "delimiter.curly" },
140
- { open: "[", close: "]", token: "delimiter.bracket" },
141
- { open: "(", close: ")", token: "delimiter.parenthesis" }
142
- ],
143
- tokenizer: {
144
- root: [
145
- { include: "@numbers" },
146
- { include: "@strings" },
147
- [/[{}\[\]()]/, "@brackets"],
148
- { include: "@operators" },
149
- [/#'$/, "comment.doc"],
150
- [/#'/, "comment.doc", "@roxygen"],
151
- [/(^#.*$)/, "comment"],
152
- [/\s+/, "white"],
153
- [/[,:;]/, "delimiter"],
154
- [/@[a-zA-Z]\w*/, "tag"],
155
- [
156
- /[a-zA-Z]\w*/,
157
- {
158
- cases: {
159
- "@keywords": "keyword",
160
- "@constants": "constant",
161
- "@default": "identifier"
162
- }
163
- }
164
- ]
165
- ],
166
- // Recognize Roxygen comments
167
- roxygen: [
168
- [
169
- /@\w+/,
170
- {
171
- cases: {
172
- "@roxygen": "tag",
173
- "@eos": { token: "comment.doc", next: "@pop" },
174
- "@default": "comment.doc"
175
- }
176
- }
177
- ],
178
- [
179
- /\s+/,
180
- {
181
- cases: {
182
- "@eos": { token: "comment.doc", next: "@pop" },
183
- "@default": "comment.doc"
184
- }
185
- }
186
- ],
187
- [/.*/, { token: "comment.doc", next: "@pop" }]
188
- ],
189
- // Recognize positives, negatives, decimals, imaginaries, and scientific notation
190
- numbers: [
191
- [/0[xX][0-9a-fA-F]+/, "number.hex"],
192
- [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
193
- ],
194
- // Recognize operators
195
- operators: [
196
- [/<{1,2}-/, "operator"],
197
- [/->{1,2}/, "operator"],
198
- [/%[^%\s]+%/, "operator"],
199
- [/\*\*/, "operator"],
200
- [/%%/, "operator"],
201
- [/&&/, "operator"],
202
- [/\|\|/, "operator"],
203
- [/<</, "operator"],
204
- [/>>/, "operator"],
205
- [/[-+=&|!<>^~*/:$]/, "operator"]
206
- ],
207
- // Recognize strings, including those broken across lines
208
- strings: [
209
- [/'/, "string.escape", "@stringBody"],
210
- [/"/, "string.escape", "@dblStringBody"]
211
- ],
212
- stringBody: [
213
- [
214
- /\\./,
215
- {
216
- cases: {
217
- "@special": "string",
218
- "@default": "error-token"
219
- }
220
- }
221
- ],
222
- [/'/, "string.escape", "@popall"],
223
- [/./, "string"]
224
- ],
225
- dblStringBody: [
226
- [
227
- /\\./,
228
- {
229
- cases: {
230
- "@special": "string",
231
- "@default": "error-token"
232
- }
233
- }
234
- ],
235
- [/"/, "string.escape", "@popall"],
236
- [/./, "string"]
237
- ]
238
- }
239
- };
240
- export {
241
- e as conf,
242
- o as language
243
- };