@muonroi/ui-engine-rule-components 0.1.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.
- package/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/components/cep/mu-cep-event-stream.d.ts +10 -0
- package/dist/components/cep/mu-cep-event-stream.d.ts.map +1 -0
- package/dist/components/cep/mu-cep-window-config.d.ts +11 -0
- package/dist/components/cep/mu-cep-window-config.d.ts.map +1 -0
- package/dist/components/decision-table/mu-decision-table-list.d.ts +12 -0
- package/dist/components/decision-table/mu-decision-table-list.d.ts.map +1 -0
- package/dist/components/decision-table/mu-decision-table.d.ts +56 -0
- package/dist/components/decision-table/mu-decision-table.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-cell.d.ts +29 -0
- package/dist/components/decision-table/mu-dt-cell.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-column-config.d.ts +9 -0
- package/dist/components/decision-table/mu-dt-column-config.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-data-row.d.ts +17 -0
- package/dist/components/decision-table/mu-dt-data-row.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-header-row.d.ts +13 -0
- package/dist/components/decision-table/mu-dt-header-row.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-hit-policy-selector.d.ts +9 -0
- package/dist/components/decision-table/mu-dt-hit-policy-selector.d.ts.map +1 -0
- package/dist/components/decision-table/mu-dt-version-diff.d.ts +14 -0
- package/dist/components/decision-table/mu-dt-version-diff.d.ts.map +1 -0
- package/dist/components/feel/mu-feel-autocomplete.d.ts +7 -0
- package/dist/components/feel/mu-feel-autocomplete.d.ts.map +1 -0
- package/dist/components/feel/mu-feel-playground.d.ts +21 -0
- package/dist/components/feel/mu-feel-playground.d.ts.map +1 -0
- package/dist/components/nrules/mu-nrules-action.d.ts +8 -0
- package/dist/components/nrules/mu-nrules-action.d.ts.map +1 -0
- package/dist/components/nrules/mu-nrules-condition.d.ts +8 -0
- package/dist/components/nrules/mu-nrules-condition.d.ts.map +1 -0
- package/dist/components/nrules/mu-nrules-editor.d.ts +13 -0
- package/dist/components/nrules/mu-nrules-editor.d.ts.map +1 -0
- package/dist/components/rule-flow/mu-rule-flow-designer.d.ts +7 -0
- package/dist/components/rule-flow/mu-rule-flow-designer.d.ts.map +1 -0
- package/dist/components/rule-test/mu-rule-test-runner.d.ts +10 -0
- package/dist/components/rule-test/mu-rule-test-runner.d.ts.map +1 -0
- package/dist/components/shared/mu-quota-indicator.d.ts +8 -0
- package/dist/components/shared/mu-quota-indicator.d.ts.map +1 -0
- package/dist/components/shared/mu-schema-watcher.d.ts +10 -0
- package/dist/components/shared/mu-schema-watcher.d.ts.map +1 -0
- package/dist/components/shared/mu-ui-engine-app.d.ts +40 -0
- package/dist/components/shared/mu-ui-engine-app.d.ts.map +1 -0
- package/dist/components/shared/mu-upgrade-prompt.d.ts +8 -0
- package/dist/components/shared/mu-upgrade-prompt.d.ts.map +1 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-W_ydkREH.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editor.main-CDcWSJXN.js +112187 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-BhiVUuWw.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-RIKHpKwW.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-in9YD3jO.js +314 -0
- package/dist/htmlMode-Dc5YLdXf.js +1587 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-BhJy2sa7.js +76 -0
- package/dist/jsonMode-B1hL8ppN.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/license/m-commercial-guard.d.ts +4 -0
- package/dist/license/m-commercial-guard.d.ts.map +1 -0
- package/dist/liquid-C8KUoHEo.js +246 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-BqsypiUk.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/models.d.ts +54 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/muonroi-rule-components.css +1 -0
- package/dist/muonroi-rule-components.esm.js +5013 -0
- package/dist/muonroi-rule-components.iife.js +2477 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-oCDOltxl.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-CC08bTrm.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/registry.d.ts +23 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/services/feel-service.d.ts +34 -0
- package/dist/services/feel-service.d.ts.map +1 -0
- package/dist/services/rule-engine-api.d.ts +45 -0
- package/dist/services/rule-engine-api.d.ts.map +1 -0
- package/dist/services/schema-notifier.d.ts +13 -0
- package/dist/services/schema-notifier.d.ts.map +1 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/store/decision-table-store.d.ts +35 -0
- package/dist/store/decision-table-store.d.ts.map +1 -0
- package/dist/store/rule-engine-store.d.ts +12 -0
- package/dist/store/rule-engine-store.d.ts.map +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-UsdzgY6r.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/typescript-s0HhFsB1.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-8lpYs1ww.js +101 -0
- package/dist/yaml-A_ifCJpo.js +212 -0
- package/package.json +40 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LitElement, type TemplateResult } from "lit";
|
|
2
|
+
export declare class MuUiEngineApp extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
title: string;
|
|
5
|
+
contractEndpoint: string;
|
|
6
|
+
schemaHashEndpoint: string;
|
|
7
|
+
manifestEndpoint: string;
|
|
8
|
+
decisionTableApiBase: string;
|
|
9
|
+
decisionTableEditorRoute: string;
|
|
10
|
+
decisionTableValidateEndpoint: string;
|
|
11
|
+
decisionTableExportEndpoint: string;
|
|
12
|
+
decisionTableHistoryEndpoint: string;
|
|
13
|
+
decisionTableHistoryVersionEndpoint: string;
|
|
14
|
+
decisionTableReorderEndpoint: string;
|
|
15
|
+
feelAutocompleteEndpoint: string;
|
|
16
|
+
feelEvaluateEndpoint: string;
|
|
17
|
+
feelExamplesEndpoint: string;
|
|
18
|
+
nrulesApiBase: string;
|
|
19
|
+
ruleTestEndpoint: string;
|
|
20
|
+
cepApiBase: string;
|
|
21
|
+
private mLoading;
|
|
22
|
+
private mError;
|
|
23
|
+
private mContract;
|
|
24
|
+
private mSchemaHash;
|
|
25
|
+
private mManifest;
|
|
26
|
+
private mSelectedScreenKey;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
private MLoadAsync;
|
|
29
|
+
private MFetchJson;
|
|
30
|
+
private MVisibleScreens;
|
|
31
|
+
private MCurrentScreen;
|
|
32
|
+
private MActionsForScreen;
|
|
33
|
+
private MSelectScreen;
|
|
34
|
+
private MSelectScreenByRoute;
|
|
35
|
+
private MOnNavigationClick;
|
|
36
|
+
private MRenderNavigationNodes;
|
|
37
|
+
private MRenderComponent;
|
|
38
|
+
render(): TemplateResult;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=mu-ui-engine-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mu-ui-engine-app.d.ts","sourceRoot":"","sources":["../../../src/components/shared/mu-ui-engine-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAsBvE,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAA+B;IAG5C,KAAK,SAAuB;IAG5B,gBAAgB,SAAqC;IAGrD,kBAAkB,SAAmC;IAGrD,gBAAgB,SAA+B;IAG/C,oBAAoB,SAA6B;IAGjD,wBAAwB,SAA6B;IAGrD,6BAA6B,SAA2C;IAGxE,2BAA2B,SAAkD;IAG7E,4BAA4B,SAA2C;IAGvE,mCAAmC,SAA+C;IAGlF,4BAA4B,SAA+C;IAG3E,wBAAwB,SAA+B;IAGvD,oBAAoB,SAA2B;IAG/C,oBAAoB,SAA2B;IAG/C,aAAa,SAAgC;IAG7C,gBAAgB,SAA8B;IAG9C,UAAU,SAA6B;IAGvC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,MAAM,CAAM;IAGpB,OAAO,CAAC,SAAS,CAAsC;IAGvD,OAAO,CAAC,WAAW,CAAqC;IAGxD,OAAO,CAAC,SAAS,CAAkC;IAGnD,OAAO,CAAC,kBAAkB,CAAM;IAEhC,iBAAiB,IAAI,IAAI;YAKX,UAAU;YA6BV,UAAU;IAexB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,gBAAgB;IA6CxB,MAAM;CAyHP"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class MuUpgradePrompt extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
requiredTier: string;
|
|
5
|
+
capabilityKey: string;
|
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=mu-upgrade-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mu-upgrade-prompt.d.ts","sourceRoot":"","sources":["../../../src/components/shared/mu-upgrade-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAIlD,qBACa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,4BAA+B;IAG5C,YAAY,SAAkB;IAG9B,aAAa,SAAM;IAEnB,MAAM;CAYP"}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
],
|
|
31
|
+
folding: {
|
|
32
|
+
markers: {
|
|
33
|
+
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
|
34
|
+
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, n = {
|
|
38
|
+
defaultToken: "",
|
|
39
|
+
tokenPostfix: ".cpp",
|
|
40
|
+
brackets: [
|
|
41
|
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
42
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
43
|
+
{ token: "delimiter.square", open: "[", close: "]" },
|
|
44
|
+
{ token: "delimiter.angle", open: "<", close: ">" }
|
|
45
|
+
],
|
|
46
|
+
keywords: [
|
|
47
|
+
"abstract",
|
|
48
|
+
"amp",
|
|
49
|
+
"array",
|
|
50
|
+
"auto",
|
|
51
|
+
"bool",
|
|
52
|
+
"break",
|
|
53
|
+
"case",
|
|
54
|
+
"catch",
|
|
55
|
+
"char",
|
|
56
|
+
"class",
|
|
57
|
+
"const",
|
|
58
|
+
"constexpr",
|
|
59
|
+
"const_cast",
|
|
60
|
+
"continue",
|
|
61
|
+
"cpu",
|
|
62
|
+
"decltype",
|
|
63
|
+
"default",
|
|
64
|
+
"delegate",
|
|
65
|
+
"delete",
|
|
66
|
+
"do",
|
|
67
|
+
"double",
|
|
68
|
+
"dynamic_cast",
|
|
69
|
+
"each",
|
|
70
|
+
"else",
|
|
71
|
+
"enum",
|
|
72
|
+
"event",
|
|
73
|
+
"explicit",
|
|
74
|
+
"export",
|
|
75
|
+
"extern",
|
|
76
|
+
"false",
|
|
77
|
+
"final",
|
|
78
|
+
"finally",
|
|
79
|
+
"float",
|
|
80
|
+
"for",
|
|
81
|
+
"friend",
|
|
82
|
+
"gcnew",
|
|
83
|
+
"generic",
|
|
84
|
+
"goto",
|
|
85
|
+
"if",
|
|
86
|
+
"in",
|
|
87
|
+
"initonly",
|
|
88
|
+
"inline",
|
|
89
|
+
"int",
|
|
90
|
+
"interface",
|
|
91
|
+
"interior_ptr",
|
|
92
|
+
"internal",
|
|
93
|
+
"literal",
|
|
94
|
+
"long",
|
|
95
|
+
"mutable",
|
|
96
|
+
"namespace",
|
|
97
|
+
"new",
|
|
98
|
+
"noexcept",
|
|
99
|
+
"nullptr",
|
|
100
|
+
"__nullptr",
|
|
101
|
+
"operator",
|
|
102
|
+
"override",
|
|
103
|
+
"partial",
|
|
104
|
+
"pascal",
|
|
105
|
+
"pin_ptr",
|
|
106
|
+
"private",
|
|
107
|
+
"property",
|
|
108
|
+
"protected",
|
|
109
|
+
"public",
|
|
110
|
+
"ref",
|
|
111
|
+
"register",
|
|
112
|
+
"reinterpret_cast",
|
|
113
|
+
"restrict",
|
|
114
|
+
"return",
|
|
115
|
+
"safe_cast",
|
|
116
|
+
"sealed",
|
|
117
|
+
"short",
|
|
118
|
+
"signed",
|
|
119
|
+
"sizeof",
|
|
120
|
+
"static",
|
|
121
|
+
"static_assert",
|
|
122
|
+
"static_cast",
|
|
123
|
+
"struct",
|
|
124
|
+
"switch",
|
|
125
|
+
"template",
|
|
126
|
+
"this",
|
|
127
|
+
"thread_local",
|
|
128
|
+
"throw",
|
|
129
|
+
"tile_static",
|
|
130
|
+
"true",
|
|
131
|
+
"try",
|
|
132
|
+
"typedef",
|
|
133
|
+
"typeid",
|
|
134
|
+
"typename",
|
|
135
|
+
"union",
|
|
136
|
+
"unsigned",
|
|
137
|
+
"using",
|
|
138
|
+
"virtual",
|
|
139
|
+
"void",
|
|
140
|
+
"volatile",
|
|
141
|
+
"wchar_t",
|
|
142
|
+
"where",
|
|
143
|
+
"while",
|
|
144
|
+
"_asm",
|
|
145
|
+
// reserved word with one underscores
|
|
146
|
+
"_based",
|
|
147
|
+
"_cdecl",
|
|
148
|
+
"_declspec",
|
|
149
|
+
"_fastcall",
|
|
150
|
+
"_if_exists",
|
|
151
|
+
"_if_not_exists",
|
|
152
|
+
"_inline",
|
|
153
|
+
"_multiple_inheritance",
|
|
154
|
+
"_pascal",
|
|
155
|
+
"_single_inheritance",
|
|
156
|
+
"_stdcall",
|
|
157
|
+
"_virtual_inheritance",
|
|
158
|
+
"_w64",
|
|
159
|
+
"__abstract",
|
|
160
|
+
// reserved word with two underscores
|
|
161
|
+
"__alignof",
|
|
162
|
+
"__asm",
|
|
163
|
+
"__assume",
|
|
164
|
+
"__based",
|
|
165
|
+
"__box",
|
|
166
|
+
"__builtin_alignof",
|
|
167
|
+
"__cdecl",
|
|
168
|
+
"__clrcall",
|
|
169
|
+
"__declspec",
|
|
170
|
+
"__delegate",
|
|
171
|
+
"__event",
|
|
172
|
+
"__except",
|
|
173
|
+
"__fastcall",
|
|
174
|
+
"__finally",
|
|
175
|
+
"__forceinline",
|
|
176
|
+
"__gc",
|
|
177
|
+
"__hook",
|
|
178
|
+
"__identifier",
|
|
179
|
+
"__if_exists",
|
|
180
|
+
"__if_not_exists",
|
|
181
|
+
"__inline",
|
|
182
|
+
"__int128",
|
|
183
|
+
"__int16",
|
|
184
|
+
"__int32",
|
|
185
|
+
"__int64",
|
|
186
|
+
"__int8",
|
|
187
|
+
"__interface",
|
|
188
|
+
"__leave",
|
|
189
|
+
"__m128",
|
|
190
|
+
"__m128d",
|
|
191
|
+
"__m128i",
|
|
192
|
+
"__m256",
|
|
193
|
+
"__m256d",
|
|
194
|
+
"__m256i",
|
|
195
|
+
"__m512",
|
|
196
|
+
"__m512d",
|
|
197
|
+
"__m512i",
|
|
198
|
+
"__m64",
|
|
199
|
+
"__multiple_inheritance",
|
|
200
|
+
"__newslot",
|
|
201
|
+
"__nogc",
|
|
202
|
+
"__noop",
|
|
203
|
+
"__nounwind",
|
|
204
|
+
"__novtordisp",
|
|
205
|
+
"__pascal",
|
|
206
|
+
"__pin",
|
|
207
|
+
"__pragma",
|
|
208
|
+
"__property",
|
|
209
|
+
"__ptr32",
|
|
210
|
+
"__ptr64",
|
|
211
|
+
"__raise",
|
|
212
|
+
"__restrict",
|
|
213
|
+
"__resume",
|
|
214
|
+
"__sealed",
|
|
215
|
+
"__single_inheritance",
|
|
216
|
+
"__stdcall",
|
|
217
|
+
"__super",
|
|
218
|
+
"__thiscall",
|
|
219
|
+
"__try",
|
|
220
|
+
"__try_cast",
|
|
221
|
+
"__typeof",
|
|
222
|
+
"__unaligned",
|
|
223
|
+
"__unhook",
|
|
224
|
+
"__uuidof",
|
|
225
|
+
"__value",
|
|
226
|
+
"__virtual_inheritance",
|
|
227
|
+
"__w64",
|
|
228
|
+
"__wchar_t"
|
|
229
|
+
],
|
|
230
|
+
operators: [
|
|
231
|
+
"=",
|
|
232
|
+
">",
|
|
233
|
+
"<",
|
|
234
|
+
"!",
|
|
235
|
+
"~",
|
|
236
|
+
"?",
|
|
237
|
+
":",
|
|
238
|
+
"==",
|
|
239
|
+
"<=",
|
|
240
|
+
">=",
|
|
241
|
+
"!=",
|
|
242
|
+
"&&",
|
|
243
|
+
"||",
|
|
244
|
+
"++",
|
|
245
|
+
"--",
|
|
246
|
+
"+",
|
|
247
|
+
"-",
|
|
248
|
+
"*",
|
|
249
|
+
"/",
|
|
250
|
+
"&",
|
|
251
|
+
"|",
|
|
252
|
+
"^",
|
|
253
|
+
"%",
|
|
254
|
+
"<<",
|
|
255
|
+
">>",
|
|
256
|
+
"+=",
|
|
257
|
+
"-=",
|
|
258
|
+
"*=",
|
|
259
|
+
"/=",
|
|
260
|
+
"&=",
|
|
261
|
+
"|=",
|
|
262
|
+
"^=",
|
|
263
|
+
"%=",
|
|
264
|
+
"<<=",
|
|
265
|
+
">>="
|
|
266
|
+
],
|
|
267
|
+
// we include these common regular expressions
|
|
268
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
269
|
+
escapes: /\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
270
|
+
integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,
|
|
271
|
+
floatsuffix: /[fFlL]?/,
|
|
272
|
+
encoding: /u|u8|U|L/,
|
|
273
|
+
// The main tokenizer for our languages
|
|
274
|
+
tokenizer: {
|
|
275
|
+
root: [
|
|
276
|
+
// C++ 11 Raw String
|
|
277
|
+
[/@encoding?R\"(?:([^ ()\\\t]*))\(/, { token: "string.raw.begin", next: "@raw.$1" }],
|
|
278
|
+
// identifiers and keywords
|
|
279
|
+
[
|
|
280
|
+
/[a-zA-Z_]\w*/,
|
|
281
|
+
{
|
|
282
|
+
cases: {
|
|
283
|
+
"@keywords": { token: "keyword.$0" },
|
|
284
|
+
"@default": "identifier"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
// The preprocessor checks must be before whitespace as they check /^\s*#/ which
|
|
289
|
+
// otherwise fails to match later after other whitespace has been removed.
|
|
290
|
+
// Inclusion
|
|
291
|
+
[/^\s*#\s*include/, { token: "keyword.directive.include", next: "@include" }],
|
|
292
|
+
// Preprocessor directive
|
|
293
|
+
[/^\s*#\s*\w+/, "keyword.directive"],
|
|
294
|
+
// whitespace
|
|
295
|
+
{ include: "@whitespace" },
|
|
296
|
+
// [[ attributes ]].
|
|
297
|
+
[/\[\s*\[/, { token: "annotation", next: "@annotation" }],
|
|
298
|
+
// delimiters and operators
|
|
299
|
+
[/[{}()<>\[\]]/, "@brackets"],
|
|
300
|
+
[
|
|
301
|
+
/@symbols/,
|
|
302
|
+
{
|
|
303
|
+
cases: {
|
|
304
|
+
"@operators": "delimiter",
|
|
305
|
+
"@default": ""
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
// numbers
|
|
310
|
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
311
|
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
312
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
|
313
|
+
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
|
314
|
+
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
|
315
|
+
[/\d[\d']*\d(@integersuffix)/, "number"],
|
|
316
|
+
[/\d(@integersuffix)/, "number"],
|
|
317
|
+
// delimiter: after number because of .\d floats
|
|
318
|
+
[/[;,.]/, "delimiter"],
|
|
319
|
+
// strings
|
|
320
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
321
|
+
// non-teminated string
|
|
322
|
+
[/"/, "string", "@string"],
|
|
323
|
+
// characters
|
|
324
|
+
[/'[^\\']'/, "string"],
|
|
325
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
326
|
+
[/'/, "string.invalid"]
|
|
327
|
+
],
|
|
328
|
+
whitespace: [
|
|
329
|
+
[/[ \t\r\n]+/, ""],
|
|
330
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
|
331
|
+
[/\/\*/, "comment", "@comment"],
|
|
332
|
+
[/\/\/.*\\$/, "comment", "@linecomment"],
|
|
333
|
+
[/\/\/.*$/, "comment"]
|
|
334
|
+
],
|
|
335
|
+
comment: [
|
|
336
|
+
[/[^\/*]+/, "comment"],
|
|
337
|
+
[/\*\//, "comment", "@pop"],
|
|
338
|
+
[/[\/*]/, "comment"]
|
|
339
|
+
],
|
|
340
|
+
//For use with continuous line comments
|
|
341
|
+
linecomment: [
|
|
342
|
+
[/.*[^\\]$/, "comment", "@pop"],
|
|
343
|
+
[/[^]+/, "comment"]
|
|
344
|
+
],
|
|
345
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
346
|
+
doccomment: [
|
|
347
|
+
[/[^\/*]+/, "comment.doc"],
|
|
348
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
349
|
+
[/[\/*]/, "comment.doc"]
|
|
350
|
+
],
|
|
351
|
+
string: [
|
|
352
|
+
[/[^\\"]+/, "string"],
|
|
353
|
+
[/@escapes/, "string.escape"],
|
|
354
|
+
[/\\./, "string.escape.invalid"],
|
|
355
|
+
[/"/, "string", "@pop"]
|
|
356
|
+
],
|
|
357
|
+
raw: [
|
|
358
|
+
[/[^)]+/, "string.raw"],
|
|
359
|
+
[/\)$S2\"/, { token: "string.raw.end", next: "@pop" }],
|
|
360
|
+
[/\)/, "string.raw"]
|
|
361
|
+
],
|
|
362
|
+
annotation: [
|
|
363
|
+
{ include: "@whitespace" },
|
|
364
|
+
[/using|alignas/, "keyword"],
|
|
365
|
+
[/[a-zA-Z0-9_]+/, "annotation"],
|
|
366
|
+
[/[,:]/, "delimiter"],
|
|
367
|
+
[/[()]/, "@brackets"],
|
|
368
|
+
[/\]\s*\]/, { token: "annotation", next: "@pop" }]
|
|
369
|
+
],
|
|
370
|
+
include: [
|
|
371
|
+
[
|
|
372
|
+
/(\s*)(<)([^<>]*)(>)/,
|
|
373
|
+
[
|
|
374
|
+
"",
|
|
375
|
+
"keyword.directive.include.begin",
|
|
376
|
+
"string.include.identifier",
|
|
377
|
+
{ token: "keyword.directive.include.end", next: "@pop" }
|
|
378
|
+
]
|
|
379
|
+
],
|
|
380
|
+
[
|
|
381
|
+
/(\s*)(")([^"]*)(")/,
|
|
382
|
+
[
|
|
383
|
+
"",
|
|
384
|
+
"keyword.directive.include.begin",
|
|
385
|
+
"string.include.identifier",
|
|
386
|
+
{ token: "keyword.directive.include.end", next: "@pop" }
|
|
387
|
+
]
|
|
388
|
+
]
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
export {
|
|
393
|
+
e as conf,
|
|
394
|
+
n as language
|
|
395
|
+
};
|