@pb33f/cowboy-components 0.0.14 → 0.1.1
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-DXvTa7XC.js +1404 -0
- package/dist/apex-DsQH3mjJ.js +332 -0
- package/dist/assets/css.worker-B_qZXUzt.js +84 -0
- package/dist/assets/editor.worker-HEmB0D7P.js +11 -0
- package/dist/assets/html.worker-D3WUrk8Q.js +458 -0
- package/dist/assets/json.worker-CAhUaBo4.js +42 -0
- package/dist/assets/rule-documentation.worker-BFIxMBU8.js +1 -0
- package/dist/assets/search-problems.worker-VJi4P9Gj.js +1 -0
- package/dist/azcli-Cir32SBk.js +74 -0
- package/dist/bat-BsNExolo.js +106 -0
- package/dist/bicep-2KcKzeQF.js +108 -0
- package/dist/cameligo-D0ezznwE.js +180 -0
- package/dist/clojure-DxYzAIlu.js +767 -0
- package/dist/coffee-DgiPTF3g.js +238 -0
- package/dist/components/editor/editor.d.ts +27 -0
- package/dist/components/editor/editor.js +192 -0
- package/dist/components/error-banner/error-banner.css.d.ts +2 -0
- package/dist/components/error-banner/error-banner.css.js +23 -0
- package/dist/components/error-banner/error-banner.d.ts +9 -0
- package/dist/components/error-banner/error-banner.js +40 -0
- package/dist/components/mailing-list/mailing-list.js +1 -1
- package/dist/components/paginator/paginator-events.d.ts +4 -0
- package/dist/components/paginator/paginator-events.js +4 -0
- package/dist/components/paginator/paginator-navigator.css.d.ts +2 -0
- package/dist/components/paginator/paginator-navigator.css.js +35 -0
- package/dist/components/paginator/paginator-navigator.d.ts +27 -0
- package/dist/components/paginator/paginator-navigator.js +168 -0
- package/dist/components/paginator/paginator.css.d.ts +2 -0
- package/dist/components/paginator/paginator.css.js +38 -0
- package/dist/components/paginator/paginator.d.ts +22 -0
- package/dist/components/paginator/paginator.js +122 -0
- package/dist/components/percent-bar/percent-bar.css.d.ts +2 -0
- package/dist/components/percent-bar/percent-bar.css.js +65 -0
- package/dist/components/percent-bar/percent-bar.d.ts +11 -0
- package/dist/components/percent-bar/percent-bar.js +85 -0
- package/dist/components/problem-list/details-drawer.css.d.ts +2 -0
- package/dist/components/problem-list/details-drawer.css.js +42 -0
- package/dist/components/problem-list/details-drawer.d.ts +22 -0
- package/dist/components/problem-list/details-drawer.js +66 -0
- package/dist/components/problem-list/filter.css.d.ts +2 -0
- package/dist/components/problem-list/filter.css.js +67 -0
- package/dist/components/problem-list/problem-item.css.d.ts +2 -0
- package/dist/components/problem-list/problem-item.css.js +170 -0
- package/dist/components/problem-list/problem-item.d.ts +27 -0
- package/dist/components/problem-list/problem-item.js +126 -0
- package/dist/components/problem-list/problem-label-view-filter.css.d.ts +2 -0
- package/dist/components/problem-list/problem-label-view-filter.css.js +6 -0
- package/dist/components/problem-list/problem-label-view-filter.d.ts +18 -0
- package/dist/components/problem-list/problem-label-view-filter.js +66 -0
- package/dist/components/problem-list/problem-list.css.d.ts +2 -0
- package/dist/components/problem-list/problem-list.css.js +59 -0
- package/dist/components/problem-list/problem-list.d.ts +37 -0
- package/dist/components/problem-list/problem-list.js +334 -0
- package/dist/components/problem-list/problem-mainview.css.d.ts +2 -0
- package/dist/components/problem-list/problem-mainview.css.js +100 -0
- package/dist/components/problem-list/problem-mainview.d.ts +20 -0
- package/dist/components/problem-list/problem-mainview.js +126 -0
- package/dist/components/problem-list/problem-rule-filter.d.ts +13 -0
- package/dist/components/problem-list/problem-rule-filter.js +67 -0
- package/dist/components/problem-list/problem-search-filter.d.ts +13 -0
- package/dist/components/problem-list/problem-search-filter.js +45 -0
- package/dist/components/problem-list/problem-sort-filter.d.ts +19 -0
- package/dist/components/problem-list/problem-sort-filter.js +67 -0
- package/dist/components/problem-list/problem-toolbar.css.d.ts +2 -0
- package/dist/components/problem-list/problem-toolbar.css.js +41 -0
- package/dist/components/problem-list/problem-toolbar.d.ts +14 -0
- package/dist/components/problem-list/problem-toolbar.js +63 -0
- package/dist/components/problem-list/shared.css.d.ts +2 -0
- package/dist/components/problem-list/shared.css.js +91 -0
- package/dist/components/problems-overview/diagnostic-evaluation.css.d.ts +2 -0
- package/dist/components/problems-overview/diagnostic-evaluation.css.js +178 -0
- package/dist/components/problems-overview/diagnostic-evaluation.d.ts +13 -0
- package/dist/components/problems-overview/diagnostic-evaluation.js +118 -0
- package/dist/components/problems-overview/document-statistic.css.d.ts +2 -0
- package/dist/components/problems-overview/document-statistic.css.js +16 -0
- package/dist/components/problems-overview/document-statistic.d.ts +10 -0
- package/dist/components/problems-overview/document-statistic.js +49 -0
- package/dist/components/problems-overview/problem-overview-group.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-overview-group.css.js +84 -0
- package/dist/components/problems-overview/problem-overview-group.d.ts +17 -0
- package/dist/components/problems-overview/problem-overview-group.js +121 -0
- package/dist/components/problems-overview/problem-statistic.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-statistic.css.js +40 -0
- package/dist/components/problems-overview/problem-statistic.d.ts +11 -0
- package/dist/components/problems-overview/problem-statistic.js +57 -0
- package/dist/components/problems-overview/problem-statistics.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-statistics.css.js +46 -0
- package/dist/components/problems-overview/problem-statistics.d.ts +14 -0
- package/dist/components/problems-overview/problem-statistics.js +132 -0
- package/dist/components/problems-overview/problems-overview.css.d.ts +2 -0
- package/dist/components/problems-overview/problems-overview.css.js +49 -0
- package/dist/components/problems-overview/problems-overview.d.ts +21 -0
- package/dist/components/problems-overview/problems-overview.js +108 -0
- package/dist/components/render-json-path/render-json-path.css.d.ts +2 -0
- package/dist/components/render-json-path/render-json-path.css.js +86 -0
- package/dist/components/render-json-path/render-json-path.d.ts +11 -0
- package/dist/components/render-json-path/render-json-path.js +105 -0
- package/dist/components/the-doctor/settings.d.ts +5 -0
- package/dist/components/the-doctor/settings.js +22 -0
- package/dist/components/the-doctor/status-bar.css.d.ts +2 -0
- package/dist/components/the-doctor/status-bar.css.js +47 -0
- package/dist/components/the-doctor/status-bar.d.ts +12 -0
- package/dist/components/the-doctor/status-bar.js +71 -0
- package/dist/components/the-doctor/the-doctor.css.d.ts +2 -0
- package/dist/components/the-doctor/the-doctor.css.js +156 -0
- package/dist/components/the-doctor/the-doctor.d.ts +57 -0
- package/dist/components/the-doctor/the-doctor.js +340 -0
- package/dist/cowboy-components-BOuaCruy.js +114388 -0
- package/dist/cowboy-components.d.ts +5 -2
- package/dist/cowboy-components.js +8 -2
- package/dist/cowboy-components.umd.cjs +3997 -103
- package/dist/cpp-Bq-GnYlH.js +407 -0
- package/dist/csharp-IDcibKAT.js +332 -0
- package/dist/csp-QdYr8JWa.js +59 -0
- package/dist/css/button.css.d.ts +2 -0
- package/dist/css/button.css.js +34 -0
- package/dist/css/chroma-synxtax.css.d.ts +2 -0
- package/dist/css/chroma-synxtax.css.js +130 -0
- package/dist/css/cowboy-components.css +3 -0
- package/dist/css/links.css.d.ts +2 -0
- package/dist/css/links.css.js +17 -0
- package/dist/css/lists.css.d.ts +2 -0
- package/dist/css/lists.css.js +43 -0
- package/dist/css/pb33f-theme.css +2 -2
- package/dist/css/syntax.css.js +1 -1
- package/dist/css-C-wMMefI.js +193 -0
- package/dist/cssMode-Cvbhe77l.js +1541 -0
- package/dist/cypher-BfBo9yir.js +269 -0
- package/dist/dart-Cv3rVfv_.js +287 -0
- package/dist/dockerfile-DyCXBGhV.js +136 -0
- package/dist/ecl-COP_iObm.js +462 -0
- package/dist/elixir-DoEhbk9F.js +575 -0
- package/dist/events/doctor.d.ts +51 -0
- package/dist/events/doctor.js +17 -0
- package/dist/flow9-DuHGSNW1.js +148 -0
- package/dist/freemarker2-DmhDQrVn.js +995 -0
- package/dist/fsharp-Dv9PDxVO.js +223 -0
- package/dist/go-CcdAeqiK.js +224 -0
- package/dist/graphql-CoRm4b1H.js +157 -0
- package/dist/handlebars-DWUSy2Nn.js +425 -0
- package/dist/hcl-BSgAhV5f.js +189 -0
- package/dist/html-BTxdvu8o.js +314 -0
- package/dist/htmlMode-DeG-6tqP.js +1551 -0
- package/dist/ini-ewx9HLIq.js +77 -0
- package/dist/java-B5lwcbTy.js +238 -0
- package/dist/javascript-CQTBmqTv.js +76 -0
- package/dist/jsonMode-DJhhXlcK.js +1958 -0
- package/dist/julia-NCcg_P_q.js +517 -0
- package/dist/kotlin-BYlnmGrb.js +259 -0
- package/dist/less-DG4tqgOo.js +168 -0
- package/dist/lexon-CTTPcJLv.js +163 -0
- package/dist/liquid-OuSl50Zm.js +246 -0
- package/dist/lua-CxQ1RWuo.js +168 -0
- package/dist/m3-mHFfpmgx.js +216 -0
- package/dist/markdown-Dh6sYULt.js +235 -0
- package/dist/mdx-Cs8POpae.js +171 -0
- package/dist/mips-CNUcjHD1.js +204 -0
- package/dist/model/document-statistics.d.ts +40 -0
- package/dist/model/document-statistics.js +4 -0
- package/dist/model/how_to_fix.d.ts +4 -0
- package/dist/model/how_to_fix.js +1 -0
- package/dist/model/problem.d.ts +19 -0
- package/dist/model/problem.js +106 -0
- package/dist/model/rule_documentation.d.ts +5 -0
- package/dist/model/rule_documentation.js +1 -0
- package/dist/model/session.d.ts +5 -0
- package/dist/model/session.js +1 -0
- package/dist/msdax-ZvxFeKvs.js +381 -0
- package/dist/mysql-COjg31sJ.js +884 -0
- package/dist/objective-c-BqrCFBhT.js +189 -0
- package/dist/pascal-CUpkilAS.js +257 -0
- package/dist/pascaligo-nJfvRJ7x.js +170 -0
- package/dist/perl-CWsX6Ysg.js +632 -0
- package/dist/pgsql-DwgpEXC8.js +857 -0
- package/dist/php-CrbKyd62.js +506 -0
- package/dist/pla-JxXT6Kb-.js +143 -0
- package/dist/postiats-BOdnTRGv.js +913 -0
- package/dist/powerquery-DTkwcXGH.js +896 -0
- package/dist/powershell-Cx53dGpt.js +245 -0
- package/dist/protobuf-Dp9vE-l-.js +426 -0
- package/dist/pug-BSjKVjwP.js +408 -0
- package/dist/python-BsXAz21q.js +282 -0
- package/dist/qsharp-C5P1RxY3.js +291 -0
- package/dist/r-sEMYnclc.js +249 -0
- package/dist/razor-CXJ9MZn4.js +556 -0
- package/dist/redis-DbzUc-fU.js +308 -0
- package/dist/redshift-nrLijj1O.js +815 -0
- package/dist/restructuredtext-CIbGUl6T.js +180 -0
- package/dist/ruby-JcYJisWg.js +517 -0
- package/dist/rust-BgbFBFXH.js +349 -0
- package/dist/sb-hRFFChi7.js +121 -0
- package/dist/scala-Cs0yVo3Q.js +376 -0
- package/dist/scheme-l_0jNtxy.js +114 -0
- package/dist/scss-C4l7ZIRR.js +268 -0
- package/dist/services/linting-service.d.ts +12 -0
- package/dist/services/linting-service.js +121 -0
- package/dist/shell-ikLk_l24.js +227 -0
- package/dist/solidity-4GxCaH9e.js +1373 -0
- package/dist/sophia-tX0WEZsZ.js +205 -0
- package/dist/sparql-D7ky-uMk.js +207 -0
- package/dist/sql-CqEfBVGS.js +859 -0
- package/dist/st-CNWQPqyI.js +422 -0
- package/dist/style.css +1 -1
- package/dist/swift-C_fDfC0d.js +318 -0
- package/dist/systemverilog-gAvsEtN_.js +582 -0
- package/dist/tcl-KbBChuA6.js +238 -0
- package/dist/tsMode-C-mwN8lz.js +886 -0
- package/dist/twig-Bb652BpM.js +398 -0
- package/dist/typescript-CamPbG-s.js +349 -0
- package/dist/vb-2e5hSeUh.js +378 -0
- package/dist/wgsl-CYSDq0zg.js +445 -0
- package/dist/workers/rule-documentation.worker.d.ts +1 -0
- package/dist/workers/rule-documentation.worker.js +85 -0
- package/dist/workers/search-problems.worker.d.ts +1 -0
- package/dist/workers/search-problems.worker.js +19 -0
- package/dist/xml-CrDvxVsf.js +101 -0
- package/dist/yaml-xGWjZwPI.js +212 -0
- package/package.json +6 -4
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { m as d } from "./cowboy-components-BOuaCruy.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
+
*-----------------------------------------------------------------------------*/
|
|
8
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, m = Object.prototype.hasOwnProperty, a = (t, e, r, n) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let i of u(e))
|
|
11
|
+
!m.call(t, i) && i !== r && s(t, i, { get: () => e[i], enumerable: !(n = c(e, i)) || n.enumerable });
|
|
12
|
+
return t;
|
|
13
|
+
}, p = (t, e, r) => (a(t, e, "default"), r && a(r, e, "default")), o = {};
|
|
14
|
+
p(o, d);
|
|
15
|
+
var l = [
|
|
16
|
+
"area",
|
|
17
|
+
"base",
|
|
18
|
+
"br",
|
|
19
|
+
"col",
|
|
20
|
+
"embed",
|
|
21
|
+
"hr",
|
|
22
|
+
"img",
|
|
23
|
+
"input",
|
|
24
|
+
"keygen",
|
|
25
|
+
"link",
|
|
26
|
+
"menuitem",
|
|
27
|
+
"meta",
|
|
28
|
+
"param",
|
|
29
|
+
"source",
|
|
30
|
+
"track",
|
|
31
|
+
"wbr"
|
|
32
|
+
], g = {
|
|
33
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
34
|
+
brackets: [
|
|
35
|
+
["<!--", "-->"],
|
|
36
|
+
["<", ">"],
|
|
37
|
+
["{{", "}}"],
|
|
38
|
+
["{%", "%}"],
|
|
39
|
+
["{", "}"],
|
|
40
|
+
["(", ")"]
|
|
41
|
+
],
|
|
42
|
+
autoClosingPairs: [
|
|
43
|
+
{ open: "{", close: "}" },
|
|
44
|
+
{ open: "%", close: "%" },
|
|
45
|
+
{ open: "[", close: "]" },
|
|
46
|
+
{ open: "(", close: ")" },
|
|
47
|
+
{ open: '"', close: '"' },
|
|
48
|
+
{ open: "'", close: "'" }
|
|
49
|
+
],
|
|
50
|
+
surroundingPairs: [
|
|
51
|
+
{ open: "<", close: ">" },
|
|
52
|
+
{ open: '"', close: '"' },
|
|
53
|
+
{ open: "'", close: "'" }
|
|
54
|
+
],
|
|
55
|
+
onEnterRules: [
|
|
56
|
+
{
|
|
57
|
+
beforeText: new RegExp(
|
|
58
|
+
`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
59
|
+
"i"
|
|
60
|
+
),
|
|
61
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
62
|
+
action: {
|
|
63
|
+
indentAction: o.languages.IndentAction.IndentOutdent
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
beforeText: new RegExp(
|
|
68
|
+
`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
69
|
+
"i"
|
|
70
|
+
),
|
|
71
|
+
action: { indentAction: o.languages.IndentAction.Indent }
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}, _ = {
|
|
75
|
+
defaultToken: "",
|
|
76
|
+
tokenPostfix: "",
|
|
77
|
+
builtinTags: [
|
|
78
|
+
"if",
|
|
79
|
+
"else",
|
|
80
|
+
"elseif",
|
|
81
|
+
"endif",
|
|
82
|
+
"render",
|
|
83
|
+
"assign",
|
|
84
|
+
"capture",
|
|
85
|
+
"endcapture",
|
|
86
|
+
"case",
|
|
87
|
+
"endcase",
|
|
88
|
+
"comment",
|
|
89
|
+
"endcomment",
|
|
90
|
+
"cycle",
|
|
91
|
+
"decrement",
|
|
92
|
+
"for",
|
|
93
|
+
"endfor",
|
|
94
|
+
"include",
|
|
95
|
+
"increment",
|
|
96
|
+
"layout",
|
|
97
|
+
"raw",
|
|
98
|
+
"endraw",
|
|
99
|
+
"render",
|
|
100
|
+
"tablerow",
|
|
101
|
+
"endtablerow",
|
|
102
|
+
"unless",
|
|
103
|
+
"endunless"
|
|
104
|
+
],
|
|
105
|
+
builtinFilters: [
|
|
106
|
+
"abs",
|
|
107
|
+
"append",
|
|
108
|
+
"at_least",
|
|
109
|
+
"at_most",
|
|
110
|
+
"capitalize",
|
|
111
|
+
"ceil",
|
|
112
|
+
"compact",
|
|
113
|
+
"date",
|
|
114
|
+
"default",
|
|
115
|
+
"divided_by",
|
|
116
|
+
"downcase",
|
|
117
|
+
"escape",
|
|
118
|
+
"escape_once",
|
|
119
|
+
"first",
|
|
120
|
+
"floor",
|
|
121
|
+
"join",
|
|
122
|
+
"json",
|
|
123
|
+
"last",
|
|
124
|
+
"lstrip",
|
|
125
|
+
"map",
|
|
126
|
+
"minus",
|
|
127
|
+
"modulo",
|
|
128
|
+
"newline_to_br",
|
|
129
|
+
"plus",
|
|
130
|
+
"prepend",
|
|
131
|
+
"remove",
|
|
132
|
+
"remove_first",
|
|
133
|
+
"replace",
|
|
134
|
+
"replace_first",
|
|
135
|
+
"reverse",
|
|
136
|
+
"round",
|
|
137
|
+
"rstrip",
|
|
138
|
+
"size",
|
|
139
|
+
"slice",
|
|
140
|
+
"sort",
|
|
141
|
+
"sort_natural",
|
|
142
|
+
"split",
|
|
143
|
+
"strip",
|
|
144
|
+
"strip_html",
|
|
145
|
+
"strip_newlines",
|
|
146
|
+
"times",
|
|
147
|
+
"truncate",
|
|
148
|
+
"truncatewords",
|
|
149
|
+
"uniq",
|
|
150
|
+
"upcase",
|
|
151
|
+
"url_decode",
|
|
152
|
+
"url_encode",
|
|
153
|
+
"where"
|
|
154
|
+
],
|
|
155
|
+
constants: ["true", "false"],
|
|
156
|
+
operators: ["==", "!=", ">", "<", ">=", "<="],
|
|
157
|
+
symbol: /[=><!]+/,
|
|
158
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
159
|
+
tokenizer: {
|
|
160
|
+
root: [
|
|
161
|
+
[/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
|
|
162
|
+
[/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
163
|
+
[/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
164
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
165
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
166
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
167
|
+
[/</, "delimiter.html"],
|
|
168
|
+
[/\{/, "delimiter.html"],
|
|
169
|
+
[/[^<{]+/]
|
|
170
|
+
// text
|
|
171
|
+
],
|
|
172
|
+
comment: [
|
|
173
|
+
[/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
|
|
174
|
+
[/./, "comment.content.liquid"]
|
|
175
|
+
],
|
|
176
|
+
otherTag: [
|
|
177
|
+
[
|
|
178
|
+
/\{\{/,
|
|
179
|
+
{
|
|
180
|
+
token: "@rematch",
|
|
181
|
+
switchTo: "@liquidState.otherTag"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
/\{\%/,
|
|
186
|
+
{
|
|
187
|
+
token: "@rematch",
|
|
188
|
+
switchTo: "@liquidState.otherTag"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
192
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
193
|
+
[/'([^']*)'/, "attribute.value"],
|
|
194
|
+
[/[\w\-]+/, "attribute.name"],
|
|
195
|
+
[/=/, "delimiter"],
|
|
196
|
+
[/[ \t\r\n]+/]
|
|
197
|
+
// whitespace
|
|
198
|
+
],
|
|
199
|
+
liquidState: [
|
|
200
|
+
[/\{\{/, "delimiter.output.liquid"],
|
|
201
|
+
[/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
|
|
202
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
203
|
+
[/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
|
|
204
|
+
[/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
|
|
205
|
+
{ include: "liquidRoot" }
|
|
206
|
+
],
|
|
207
|
+
liquidRaw: [
|
|
208
|
+
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
|
209
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
210
|
+
[/@identifier/],
|
|
211
|
+
[/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
|
|
212
|
+
],
|
|
213
|
+
liquidRoot: [
|
|
214
|
+
[/\d+(\.\d+)?/, "number.liquid"],
|
|
215
|
+
[/"[^"]*"/, "string.liquid"],
|
|
216
|
+
[/'[^']*'/, "string.liquid"],
|
|
217
|
+
[/\s+/],
|
|
218
|
+
[
|
|
219
|
+
/@symbol/,
|
|
220
|
+
{
|
|
221
|
+
cases: {
|
|
222
|
+
"@operators": "operator.liquid",
|
|
223
|
+
"@default": ""
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
[/\./],
|
|
228
|
+
[
|
|
229
|
+
/@identifier/,
|
|
230
|
+
{
|
|
231
|
+
cases: {
|
|
232
|
+
"@constants": "keyword.liquid",
|
|
233
|
+
"@builtinFilters": "predefined.liquid",
|
|
234
|
+
"@builtinTags": "predefined.liquid",
|
|
235
|
+
"@default": "variable.liquid"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
[/[^}|%]/, "variable.liquid"]
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
export {
|
|
244
|
+
g as conf,
|
|
245
|
+
_ as language
|
|
246
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
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: '"' },
|
|
22
|
+
{ open: "'", close: "'" }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
]
|
|
31
|
+
}, o = {
|
|
32
|
+
defaultToken: "",
|
|
33
|
+
tokenPostfix: ".lua",
|
|
34
|
+
keywords: [
|
|
35
|
+
"and",
|
|
36
|
+
"break",
|
|
37
|
+
"do",
|
|
38
|
+
"else",
|
|
39
|
+
"elseif",
|
|
40
|
+
"end",
|
|
41
|
+
"false",
|
|
42
|
+
"for",
|
|
43
|
+
"function",
|
|
44
|
+
"goto",
|
|
45
|
+
"if",
|
|
46
|
+
"in",
|
|
47
|
+
"local",
|
|
48
|
+
"nil",
|
|
49
|
+
"not",
|
|
50
|
+
"or",
|
|
51
|
+
"repeat",
|
|
52
|
+
"return",
|
|
53
|
+
"then",
|
|
54
|
+
"true",
|
|
55
|
+
"until",
|
|
56
|
+
"while"
|
|
57
|
+
],
|
|
58
|
+
brackets: [
|
|
59
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
60
|
+
{ token: "delimiter.array", open: "[", close: "]" },
|
|
61
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
62
|
+
],
|
|
63
|
+
operators: [
|
|
64
|
+
"+",
|
|
65
|
+
"-",
|
|
66
|
+
"*",
|
|
67
|
+
"/",
|
|
68
|
+
"%",
|
|
69
|
+
"^",
|
|
70
|
+
"#",
|
|
71
|
+
"==",
|
|
72
|
+
"~=",
|
|
73
|
+
"<=",
|
|
74
|
+
">=",
|
|
75
|
+
"<",
|
|
76
|
+
">",
|
|
77
|
+
"=",
|
|
78
|
+
";",
|
|
79
|
+
":",
|
|
80
|
+
",",
|
|
81
|
+
".",
|
|
82
|
+
"..",
|
|
83
|
+
"..."
|
|
84
|
+
],
|
|
85
|
+
// we include these common regular expressions
|
|
86
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
87
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
88
|
+
// The main tokenizer for our languages
|
|
89
|
+
tokenizer: {
|
|
90
|
+
root: [
|
|
91
|
+
// identifiers and keywords
|
|
92
|
+
[
|
|
93
|
+
/[a-zA-Z_]\w*/,
|
|
94
|
+
{
|
|
95
|
+
cases: {
|
|
96
|
+
"@keywords": { token: "keyword.$0" },
|
|
97
|
+
"@default": "identifier"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
// whitespace
|
|
102
|
+
{ include: "@whitespace" },
|
|
103
|
+
// keys
|
|
104
|
+
[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
|
|
105
|
+
[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
|
|
106
|
+
// delimiters and operators
|
|
107
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
108
|
+
[
|
|
109
|
+
/@symbols/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@operators": "delimiter",
|
|
113
|
+
"@default": ""
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// numbers
|
|
118
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
119
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
120
|
+
[/\d+?/, "number"],
|
|
121
|
+
// delimiter: after number because of .\d floats
|
|
122
|
+
[/[;,.]/, "delimiter"],
|
|
123
|
+
// strings: recover on non-terminated strings
|
|
124
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
125
|
+
// non-teminated string
|
|
126
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
127
|
+
// non-teminated string
|
|
128
|
+
[/"/, "string", '@string."'],
|
|
129
|
+
[/'/, "string", "@string.'"]
|
|
130
|
+
],
|
|
131
|
+
whitespace: [
|
|
132
|
+
[/[ \t\r\n]+/, ""],
|
|
133
|
+
[/--\[([=]*)\[/, "comment", "@comment.$1"],
|
|
134
|
+
[/--.*$/, "comment"]
|
|
135
|
+
],
|
|
136
|
+
comment: [
|
|
137
|
+
[/[^\]]+/, "comment"],
|
|
138
|
+
[
|
|
139
|
+
/\]([=]*)\]/,
|
|
140
|
+
{
|
|
141
|
+
cases: {
|
|
142
|
+
"$1==$S2": { token: "comment", next: "@pop" },
|
|
143
|
+
"@default": "comment"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
[/./, "comment"]
|
|
148
|
+
],
|
|
149
|
+
string: [
|
|
150
|
+
[/[^\\"']+/, "string"],
|
|
151
|
+
[/@escapes/, "string.escape"],
|
|
152
|
+
[/\\./, "string.escape.invalid"],
|
|
153
|
+
[
|
|
154
|
+
/["']/,
|
|
155
|
+
{
|
|
156
|
+
cases: {
|
|
157
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
158
|
+
"@default": "string"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
e as conf,
|
|
167
|
+
o as language
|
|
168
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
blockComment: ["(*", "*)"]
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "[", close: "]" },
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: "(*", close: "*)" },
|
|
21
|
+
{ open: "<*", close: "*>" },
|
|
22
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
23
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
24
|
+
]
|
|
25
|
+
}, o = {
|
|
26
|
+
defaultToken: "",
|
|
27
|
+
tokenPostfix: ".m3",
|
|
28
|
+
brackets: [
|
|
29
|
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
30
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
31
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
32
|
+
],
|
|
33
|
+
keywords: [
|
|
34
|
+
"AND",
|
|
35
|
+
"ANY",
|
|
36
|
+
"ARRAY",
|
|
37
|
+
"AS",
|
|
38
|
+
"BEGIN",
|
|
39
|
+
"BITS",
|
|
40
|
+
"BRANDED",
|
|
41
|
+
"BY",
|
|
42
|
+
"CASE",
|
|
43
|
+
"CONST",
|
|
44
|
+
"DIV",
|
|
45
|
+
"DO",
|
|
46
|
+
"ELSE",
|
|
47
|
+
"ELSIF",
|
|
48
|
+
"END",
|
|
49
|
+
"EVAL",
|
|
50
|
+
"EXCEPT",
|
|
51
|
+
"EXCEPTION",
|
|
52
|
+
"EXIT",
|
|
53
|
+
"EXPORTS",
|
|
54
|
+
"FINALLY",
|
|
55
|
+
"FOR",
|
|
56
|
+
"FROM",
|
|
57
|
+
"GENERIC",
|
|
58
|
+
"IF",
|
|
59
|
+
"IMPORT",
|
|
60
|
+
"IN",
|
|
61
|
+
"INTERFACE",
|
|
62
|
+
"LOCK",
|
|
63
|
+
"LOOP",
|
|
64
|
+
"METHODS",
|
|
65
|
+
"MOD",
|
|
66
|
+
"MODULE",
|
|
67
|
+
"NOT",
|
|
68
|
+
"OBJECT",
|
|
69
|
+
"OF",
|
|
70
|
+
"OR",
|
|
71
|
+
"OVERRIDES",
|
|
72
|
+
"PROCEDURE",
|
|
73
|
+
"RAISE",
|
|
74
|
+
"RAISES",
|
|
75
|
+
"READONLY",
|
|
76
|
+
"RECORD",
|
|
77
|
+
"REF",
|
|
78
|
+
"REPEAT",
|
|
79
|
+
"RETURN",
|
|
80
|
+
"REVEAL",
|
|
81
|
+
"SET",
|
|
82
|
+
"THEN",
|
|
83
|
+
"TO",
|
|
84
|
+
"TRY",
|
|
85
|
+
"TYPE",
|
|
86
|
+
"TYPECASE",
|
|
87
|
+
"UNSAFE",
|
|
88
|
+
"UNTIL",
|
|
89
|
+
"UNTRACED",
|
|
90
|
+
"VALUE",
|
|
91
|
+
"VAR",
|
|
92
|
+
"WHILE",
|
|
93
|
+
"WITH"
|
|
94
|
+
],
|
|
95
|
+
reservedConstNames: [
|
|
96
|
+
"ABS",
|
|
97
|
+
"ADR",
|
|
98
|
+
"ADRSIZE",
|
|
99
|
+
"BITSIZE",
|
|
100
|
+
"BYTESIZE",
|
|
101
|
+
"CEILING",
|
|
102
|
+
"DEC",
|
|
103
|
+
"DISPOSE",
|
|
104
|
+
"FALSE",
|
|
105
|
+
"FIRST",
|
|
106
|
+
"FLOAT",
|
|
107
|
+
"FLOOR",
|
|
108
|
+
"INC",
|
|
109
|
+
"ISTYPE",
|
|
110
|
+
"LAST",
|
|
111
|
+
"LOOPHOLE",
|
|
112
|
+
"MAX",
|
|
113
|
+
"MIN",
|
|
114
|
+
"NARROW",
|
|
115
|
+
"NEW",
|
|
116
|
+
"NIL",
|
|
117
|
+
"NUMBER",
|
|
118
|
+
"ORD",
|
|
119
|
+
"ROUND",
|
|
120
|
+
"SUBARRAY",
|
|
121
|
+
"TRUE",
|
|
122
|
+
"TRUNC",
|
|
123
|
+
"TYPECODE",
|
|
124
|
+
"VAL"
|
|
125
|
+
],
|
|
126
|
+
reservedTypeNames: [
|
|
127
|
+
"ADDRESS",
|
|
128
|
+
"ANY",
|
|
129
|
+
"BOOLEAN",
|
|
130
|
+
"CARDINAL",
|
|
131
|
+
"CHAR",
|
|
132
|
+
"EXTENDED",
|
|
133
|
+
"INTEGER",
|
|
134
|
+
"LONGCARD",
|
|
135
|
+
"LONGINT",
|
|
136
|
+
"LONGREAL",
|
|
137
|
+
"MUTEX",
|
|
138
|
+
"NULL",
|
|
139
|
+
"REAL",
|
|
140
|
+
"REFANY",
|
|
141
|
+
"ROOT",
|
|
142
|
+
"TEXT"
|
|
143
|
+
],
|
|
144
|
+
operators: ["+", "-", "*", "/", "&", "^", "."],
|
|
145
|
+
relations: ["=", "#", "<", "<=", ">", ">=", "<:", ":"],
|
|
146
|
+
delimiters: ["|", "..", "=>", ",", ";", ":="],
|
|
147
|
+
symbols: /[>=<#.,:;+\-*/&^]+/,
|
|
148
|
+
escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
|
|
149
|
+
tokenizer: {
|
|
150
|
+
root: [
|
|
151
|
+
// Identifiers and keywords
|
|
152
|
+
[/_\w*/, "invalid"],
|
|
153
|
+
[
|
|
154
|
+
/[a-zA-Z][a-zA-Z0-9_]*/,
|
|
155
|
+
{
|
|
156
|
+
cases: {
|
|
157
|
+
"@keywords": { token: "keyword.$0" },
|
|
158
|
+
"@reservedConstNames": { token: "constant.reserved.$0" },
|
|
159
|
+
"@reservedTypeNames": { token: "type.reserved.$0" },
|
|
160
|
+
"@default": "identifier"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
// Whitespace
|
|
165
|
+
{ include: "@whitespace" },
|
|
166
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
167
|
+
// Integer- and real literals
|
|
168
|
+
[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, "number.float"],
|
|
169
|
+
[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, "number"],
|
|
170
|
+
// Operators, relations, and delimiters
|
|
171
|
+
[
|
|
172
|
+
/@symbols/,
|
|
173
|
+
{
|
|
174
|
+
cases: {
|
|
175
|
+
"@operators": "operators",
|
|
176
|
+
"@relations": "operators",
|
|
177
|
+
"@delimiters": "delimiter",
|
|
178
|
+
"@default": "invalid"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
// Character literals
|
|
183
|
+
[/'[^\\']'/, "string.char"],
|
|
184
|
+
[/(')(@escapes)(')/, ["string.char", "string.escape", "string.char"]],
|
|
185
|
+
[/'/, "invalid"],
|
|
186
|
+
// Text literals
|
|
187
|
+
[/"([^"\\]|\\.)*$/, "invalid"],
|
|
188
|
+
[/"/, "string.text", "@text"]
|
|
189
|
+
],
|
|
190
|
+
text: [
|
|
191
|
+
[/[^\\"]+/, "string.text"],
|
|
192
|
+
[/@escapes/, "string.escape"],
|
|
193
|
+
[/\\./, "invalid"],
|
|
194
|
+
[/"/, "string.text", "@pop"]
|
|
195
|
+
],
|
|
196
|
+
comment: [
|
|
197
|
+
[/\(\*/, "comment", "@push"],
|
|
198
|
+
[/\*\)/, "comment", "@pop"],
|
|
199
|
+
[/./, "comment"]
|
|
200
|
+
],
|
|
201
|
+
pragma: [
|
|
202
|
+
[/<\*/, "keyword.pragma", "@push"],
|
|
203
|
+
[/\*>/, "keyword.pragma", "@pop"],
|
|
204
|
+
[/./, "keyword.pragma"]
|
|
205
|
+
],
|
|
206
|
+
whitespace: [
|
|
207
|
+
[/[ \t\r\n]+/, "white"],
|
|
208
|
+
[/\(\*/, "comment", "@comment"],
|
|
209
|
+
[/<\*/, "keyword.pragma", "@pragma"]
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
export {
|
|
214
|
+
e as conf,
|
|
215
|
+
o as language
|
|
216
|
+
};
|