@pb33f/cowboy-components 0.0.13 → 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-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/changelog/release.css.js +3 -3
- 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/kv-view/kv-view.css.js +4 -0
- 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 +119 -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-FcPnnXMU.js +114388 -0
- package/dist/cowboy-components.d.ts +5 -2
- package/dist/cowboy-components.js +8 -2
- package/dist/cowboy-components.umd.cjs +4004 -106
- 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-DcUlnXpV.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-sY6FVddl.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-BqznQEC5.js +425 -0
- package/dist/hcl-BSgAhV5f.js +189 -0
- package/dist/html-DBpY_ZT1.js +314 -0
- package/dist/htmlMode-Cf0lYQWN.js +1551 -0
- package/dist/ini-ewx9HLIq.js +77 -0
- package/dist/java-B5lwcbTy.js +238 -0
- package/dist/javascript-DRgEI2Yf.js +76 -0
- package/dist/jsonMode-CmuECwTh.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-DWVJYCIL.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-Bjcj5AvL.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-CiN6iAi3.js +282 -0
- package/dist/qsharp-C5P1RxY3.js +291 -0
- package/dist/r-sEMYnclc.js +249 -0
- package/dist/razor-B4jDf_4z.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-29i0IHrU.js +886 -0
- package/dist/twig-Bb652BpM.js +398 -0
- package/dist/typescript-FDohSLaF.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-BdgdiRK4.js +101 -0
- package/dist/yaml-CJDq-Ud3.js +212 -0
- package/package.json +6 -4
|
@@ -0,0 +1,223 @@
|
|
|
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
|
+
],
|
|
23
|
+
surroundingPairs: [
|
|
24
|
+
{ open: "{", close: "}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"', close: '"' },
|
|
28
|
+
{ open: "'", close: "'" }
|
|
29
|
+
],
|
|
30
|
+
folding: {
|
|
31
|
+
markers: {
|
|
32
|
+
start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
|
|
33
|
+
end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, n = {
|
|
37
|
+
defaultToken: "",
|
|
38
|
+
tokenPostfix: ".fs",
|
|
39
|
+
keywords: [
|
|
40
|
+
"abstract",
|
|
41
|
+
"and",
|
|
42
|
+
"atomic",
|
|
43
|
+
"as",
|
|
44
|
+
"assert",
|
|
45
|
+
"asr",
|
|
46
|
+
"base",
|
|
47
|
+
"begin",
|
|
48
|
+
"break",
|
|
49
|
+
"checked",
|
|
50
|
+
"component",
|
|
51
|
+
"const",
|
|
52
|
+
"constraint",
|
|
53
|
+
"constructor",
|
|
54
|
+
"continue",
|
|
55
|
+
"class",
|
|
56
|
+
"default",
|
|
57
|
+
"delegate",
|
|
58
|
+
"do",
|
|
59
|
+
"done",
|
|
60
|
+
"downcast",
|
|
61
|
+
"downto",
|
|
62
|
+
"elif",
|
|
63
|
+
"else",
|
|
64
|
+
"end",
|
|
65
|
+
"exception",
|
|
66
|
+
"eager",
|
|
67
|
+
"event",
|
|
68
|
+
"external",
|
|
69
|
+
"extern",
|
|
70
|
+
"false",
|
|
71
|
+
"finally",
|
|
72
|
+
"for",
|
|
73
|
+
"fun",
|
|
74
|
+
"function",
|
|
75
|
+
"fixed",
|
|
76
|
+
"functor",
|
|
77
|
+
"global",
|
|
78
|
+
"if",
|
|
79
|
+
"in",
|
|
80
|
+
"include",
|
|
81
|
+
"inherit",
|
|
82
|
+
"inline",
|
|
83
|
+
"interface",
|
|
84
|
+
"internal",
|
|
85
|
+
"land",
|
|
86
|
+
"lor",
|
|
87
|
+
"lsl",
|
|
88
|
+
"lsr",
|
|
89
|
+
"lxor",
|
|
90
|
+
"lazy",
|
|
91
|
+
"let",
|
|
92
|
+
"match",
|
|
93
|
+
"member",
|
|
94
|
+
"mod",
|
|
95
|
+
"module",
|
|
96
|
+
"mutable",
|
|
97
|
+
"namespace",
|
|
98
|
+
"method",
|
|
99
|
+
"mixin",
|
|
100
|
+
"new",
|
|
101
|
+
"not",
|
|
102
|
+
"null",
|
|
103
|
+
"of",
|
|
104
|
+
"open",
|
|
105
|
+
"or",
|
|
106
|
+
"object",
|
|
107
|
+
"override",
|
|
108
|
+
"private",
|
|
109
|
+
"parallel",
|
|
110
|
+
"process",
|
|
111
|
+
"protected",
|
|
112
|
+
"pure",
|
|
113
|
+
"public",
|
|
114
|
+
"rec",
|
|
115
|
+
"return",
|
|
116
|
+
"static",
|
|
117
|
+
"sealed",
|
|
118
|
+
"struct",
|
|
119
|
+
"sig",
|
|
120
|
+
"then",
|
|
121
|
+
"to",
|
|
122
|
+
"true",
|
|
123
|
+
"tailcall",
|
|
124
|
+
"trait",
|
|
125
|
+
"try",
|
|
126
|
+
"type",
|
|
127
|
+
"upcast",
|
|
128
|
+
"use",
|
|
129
|
+
"val",
|
|
130
|
+
"void",
|
|
131
|
+
"virtual",
|
|
132
|
+
"volatile",
|
|
133
|
+
"when",
|
|
134
|
+
"while",
|
|
135
|
+
"with",
|
|
136
|
+
"yield"
|
|
137
|
+
],
|
|
138
|
+
// we include these common regular expressions
|
|
139
|
+
symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
|
|
140
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
141
|
+
integersuffix: /[uU]?[yslnLI]?/,
|
|
142
|
+
floatsuffix: /[fFmM]?/,
|
|
143
|
+
// The main tokenizer for our languages
|
|
144
|
+
tokenizer: {
|
|
145
|
+
root: [
|
|
146
|
+
// identifiers and keywords
|
|
147
|
+
[
|
|
148
|
+
/[a-zA-Z_]\w*/,
|
|
149
|
+
{
|
|
150
|
+
cases: {
|
|
151
|
+
"@keywords": { token: "keyword.$0" },
|
|
152
|
+
"@default": "identifier"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
// whitespace
|
|
157
|
+
{ include: "@whitespace" },
|
|
158
|
+
// [< attributes >].
|
|
159
|
+
[/\[<.*>\]/, "annotation"],
|
|
160
|
+
// Preprocessor directive
|
|
161
|
+
[/^#(if|else|endif)/, "keyword"],
|
|
162
|
+
// delimiters and operators
|
|
163
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
164
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
165
|
+
[/@symbols/, "delimiter"],
|
|
166
|
+
// numbers
|
|
167
|
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
168
|
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
169
|
+
[/0x[0-9a-fA-F]+LF/, "number.float"],
|
|
170
|
+
[/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
|
|
171
|
+
[/0b[0-1]+(@integersuffix)/, "number.bin"],
|
|
172
|
+
[/\d+(@integersuffix)/, "number"],
|
|
173
|
+
// delimiter: after number because of .\d floats
|
|
174
|
+
[/[;,.]/, "delimiter"],
|
|
175
|
+
// strings
|
|
176
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
177
|
+
// non-teminated string
|
|
178
|
+
[/"""/, "string", '@string."""'],
|
|
179
|
+
[/"/, "string", '@string."'],
|
|
180
|
+
// literal string
|
|
181
|
+
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
|
182
|
+
// characters
|
|
183
|
+
[/'[^\\']'B?/, "string"],
|
|
184
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
185
|
+
[/'/, "string.invalid"]
|
|
186
|
+
],
|
|
187
|
+
whitespace: [
|
|
188
|
+
[/[ \t\r\n]+/, ""],
|
|
189
|
+
[/\(\*(?!\))/, "comment", "@comment"],
|
|
190
|
+
[/\/\/.*$/, "comment"]
|
|
191
|
+
],
|
|
192
|
+
comment: [
|
|
193
|
+
[/[^*(]+/, "comment"],
|
|
194
|
+
[/\*\)/, "comment", "@pop"],
|
|
195
|
+
[/\*/, "comment"],
|
|
196
|
+
[/\(\*\)/, "comment"],
|
|
197
|
+
[/\(/, "comment"]
|
|
198
|
+
],
|
|
199
|
+
string: [
|
|
200
|
+
[/[^\\"]+/, "string"],
|
|
201
|
+
[/@escapes/, "string.escape"],
|
|
202
|
+
[/\\./, "string.escape.invalid"],
|
|
203
|
+
[
|
|
204
|
+
/("""|"B?)/,
|
|
205
|
+
{
|
|
206
|
+
cases: {
|
|
207
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
208
|
+
"@default": "string"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
],
|
|
213
|
+
litstring: [
|
|
214
|
+
[/[^"]+/, "string"],
|
|
215
|
+
[/""/, "string.escape"],
|
|
216
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
export {
|
|
221
|
+
e as conf,
|
|
222
|
+
n as language
|
|
223
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
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: "`", notIn: ["string"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: "`", close: "`" },
|
|
30
|
+
{ open: '"', close: '"' },
|
|
31
|
+
{ open: "'", close: "'" }
|
|
32
|
+
]
|
|
33
|
+
}, n = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".go",
|
|
36
|
+
keywords: [
|
|
37
|
+
"break",
|
|
38
|
+
"case",
|
|
39
|
+
"chan",
|
|
40
|
+
"const",
|
|
41
|
+
"continue",
|
|
42
|
+
"default",
|
|
43
|
+
"defer",
|
|
44
|
+
"else",
|
|
45
|
+
"fallthrough",
|
|
46
|
+
"for",
|
|
47
|
+
"func",
|
|
48
|
+
"go",
|
|
49
|
+
"goto",
|
|
50
|
+
"if",
|
|
51
|
+
"import",
|
|
52
|
+
"interface",
|
|
53
|
+
"map",
|
|
54
|
+
"package",
|
|
55
|
+
"range",
|
|
56
|
+
"return",
|
|
57
|
+
"select",
|
|
58
|
+
"struct",
|
|
59
|
+
"switch",
|
|
60
|
+
"type",
|
|
61
|
+
"var",
|
|
62
|
+
"bool",
|
|
63
|
+
"true",
|
|
64
|
+
"false",
|
|
65
|
+
"uint8",
|
|
66
|
+
"uint16",
|
|
67
|
+
"uint32",
|
|
68
|
+
"uint64",
|
|
69
|
+
"int8",
|
|
70
|
+
"int16",
|
|
71
|
+
"int32",
|
|
72
|
+
"int64",
|
|
73
|
+
"float32",
|
|
74
|
+
"float64",
|
|
75
|
+
"complex64",
|
|
76
|
+
"complex128",
|
|
77
|
+
"byte",
|
|
78
|
+
"rune",
|
|
79
|
+
"uint",
|
|
80
|
+
"int",
|
|
81
|
+
"uintptr",
|
|
82
|
+
"string",
|
|
83
|
+
"nil"
|
|
84
|
+
],
|
|
85
|
+
operators: [
|
|
86
|
+
"+",
|
|
87
|
+
"-",
|
|
88
|
+
"*",
|
|
89
|
+
"/",
|
|
90
|
+
"%",
|
|
91
|
+
"&",
|
|
92
|
+
"|",
|
|
93
|
+
"^",
|
|
94
|
+
"<<",
|
|
95
|
+
">>",
|
|
96
|
+
"&^",
|
|
97
|
+
"+=",
|
|
98
|
+
"-=",
|
|
99
|
+
"*=",
|
|
100
|
+
"/=",
|
|
101
|
+
"%=",
|
|
102
|
+
"&=",
|
|
103
|
+
"|=",
|
|
104
|
+
"^=",
|
|
105
|
+
"<<=",
|
|
106
|
+
">>=",
|
|
107
|
+
"&^=",
|
|
108
|
+
"&&",
|
|
109
|
+
"||",
|
|
110
|
+
"<-",
|
|
111
|
+
"++",
|
|
112
|
+
"--",
|
|
113
|
+
"==",
|
|
114
|
+
"<",
|
|
115
|
+
">",
|
|
116
|
+
"=",
|
|
117
|
+
"!",
|
|
118
|
+
"!=",
|
|
119
|
+
"<=",
|
|
120
|
+
">=",
|
|
121
|
+
":=",
|
|
122
|
+
"...",
|
|
123
|
+
"(",
|
|
124
|
+
")",
|
|
125
|
+
"",
|
|
126
|
+
"]",
|
|
127
|
+
"{",
|
|
128
|
+
"}",
|
|
129
|
+
",",
|
|
130
|
+
";",
|
|
131
|
+
".",
|
|
132
|
+
":"
|
|
133
|
+
],
|
|
134
|
+
// we include these common regular expressions
|
|
135
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
136
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
137
|
+
// The main tokenizer for our languages
|
|
138
|
+
tokenizer: {
|
|
139
|
+
root: [
|
|
140
|
+
// identifiers and keywords
|
|
141
|
+
[
|
|
142
|
+
/[a-zA-Z_]\w*/,
|
|
143
|
+
{
|
|
144
|
+
cases: {
|
|
145
|
+
"@keywords": { token: "keyword.$0" },
|
|
146
|
+
"@default": "identifier"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
// whitespace
|
|
151
|
+
{ include: "@whitespace" },
|
|
152
|
+
// [[ attributes ]].
|
|
153
|
+
[/\[\[.*\]\]/, "annotation"],
|
|
154
|
+
// Preprocessor directive
|
|
155
|
+
[/^\s*#\w+/, "keyword"],
|
|
156
|
+
// delimiters and operators
|
|
157
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
158
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
159
|
+
[
|
|
160
|
+
/@symbols/,
|
|
161
|
+
{
|
|
162
|
+
cases: {
|
|
163
|
+
"@operators": "delimiter",
|
|
164
|
+
"@default": ""
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
// numbers
|
|
169
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
170
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
171
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"],
|
|
172
|
+
[/0[0-7']*[0-7]/, "number.octal"],
|
|
173
|
+
[/0[bB][0-1']*[0-1]/, "number.binary"],
|
|
174
|
+
[/\d[\d']*/, "number"],
|
|
175
|
+
[/\d/, "number"],
|
|
176
|
+
// delimiter: after number because of .\d floats
|
|
177
|
+
[/[;,.]/, "delimiter"],
|
|
178
|
+
// strings
|
|
179
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
180
|
+
// non-teminated string
|
|
181
|
+
[/"/, "string", "@string"],
|
|
182
|
+
[/`/, "string", "@rawstring"],
|
|
183
|
+
// characters
|
|
184
|
+
[/'[^\\']'/, "string"],
|
|
185
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
186
|
+
[/'/, "string.invalid"]
|
|
187
|
+
],
|
|
188
|
+
whitespace: [
|
|
189
|
+
[/[ \t\r\n]+/, ""],
|
|
190
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
|
191
|
+
[/\/\*/, "comment", "@comment"],
|
|
192
|
+
[/\/\/.*$/, "comment"]
|
|
193
|
+
],
|
|
194
|
+
comment: [
|
|
195
|
+
[/[^\/*]+/, "comment"],
|
|
196
|
+
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
197
|
+
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
|
198
|
+
[/\*\//, "comment", "@pop"],
|
|
199
|
+
[/[\/*]/, "comment"]
|
|
200
|
+
],
|
|
201
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
202
|
+
doccomment: [
|
|
203
|
+
[/[^\/*]+/, "comment.doc"],
|
|
204
|
+
// [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
|
|
205
|
+
[/\/\*/, "comment.doc.invalid"],
|
|
206
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
207
|
+
[/[\/*]/, "comment.doc"]
|
|
208
|
+
],
|
|
209
|
+
string: [
|
|
210
|
+
[/[^\\"]+/, "string"],
|
|
211
|
+
[/@escapes/, "string.escape"],
|
|
212
|
+
[/\\./, "string.escape.invalid"],
|
|
213
|
+
[/"/, "string", "@pop"]
|
|
214
|
+
],
|
|
215
|
+
rawstring: [
|
|
216
|
+
[/[^\`]/, "string"],
|
|
217
|
+
[/`/, "string", "@pop"]
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
export {
|
|
222
|
+
e as conf,
|
|
223
|
+
n as language
|
|
224
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: '"""', close: '"""', notIn: ["string", "comment"] },
|
|
21
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
22
|
+
],
|
|
23
|
+
surroundingPairs: [
|
|
24
|
+
{ open: "{", close: "}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"""', close: '"""' },
|
|
28
|
+
{ open: '"', close: '"' }
|
|
29
|
+
],
|
|
30
|
+
folding: {
|
|
31
|
+
offSide: !0
|
|
32
|
+
}
|
|
33
|
+
}, n = {
|
|
34
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
35
|
+
defaultToken: "invalid",
|
|
36
|
+
tokenPostfix: ".gql",
|
|
37
|
+
keywords: [
|
|
38
|
+
"null",
|
|
39
|
+
"true",
|
|
40
|
+
"false",
|
|
41
|
+
"query",
|
|
42
|
+
"mutation",
|
|
43
|
+
"subscription",
|
|
44
|
+
"extend",
|
|
45
|
+
"schema",
|
|
46
|
+
"directive",
|
|
47
|
+
"scalar",
|
|
48
|
+
"type",
|
|
49
|
+
"interface",
|
|
50
|
+
"union",
|
|
51
|
+
"enum",
|
|
52
|
+
"input",
|
|
53
|
+
"implements",
|
|
54
|
+
"fragment",
|
|
55
|
+
"on"
|
|
56
|
+
],
|
|
57
|
+
typeKeywords: ["Int", "Float", "String", "Boolean", "ID"],
|
|
58
|
+
directiveLocations: [
|
|
59
|
+
"SCHEMA",
|
|
60
|
+
"SCALAR",
|
|
61
|
+
"OBJECT",
|
|
62
|
+
"FIELD_DEFINITION",
|
|
63
|
+
"ARGUMENT_DEFINITION",
|
|
64
|
+
"INTERFACE",
|
|
65
|
+
"UNION",
|
|
66
|
+
"ENUM",
|
|
67
|
+
"ENUM_VALUE",
|
|
68
|
+
"INPUT_OBJECT",
|
|
69
|
+
"INPUT_FIELD_DEFINITION",
|
|
70
|
+
"QUERY",
|
|
71
|
+
"MUTATION",
|
|
72
|
+
"SUBSCRIPTION",
|
|
73
|
+
"FIELD",
|
|
74
|
+
"FRAGMENT_DEFINITION",
|
|
75
|
+
"FRAGMENT_SPREAD",
|
|
76
|
+
"INLINE_FRAGMENT",
|
|
77
|
+
"VARIABLE_DEFINITION"
|
|
78
|
+
],
|
|
79
|
+
operators: ["=", "!", "?", ":", "&", "|"],
|
|
80
|
+
// we include these common regular expressions
|
|
81
|
+
symbols: /[=!?:&|]+/,
|
|
82
|
+
// https://facebook.github.io/graphql/draft/#sec-String-Value
|
|
83
|
+
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
|
84
|
+
// The main tokenizer for our languages
|
|
85
|
+
tokenizer: {
|
|
86
|
+
root: [
|
|
87
|
+
// fields and argument names
|
|
88
|
+
[
|
|
89
|
+
/[a-z_][\w$]*/,
|
|
90
|
+
{
|
|
91
|
+
cases: {
|
|
92
|
+
"@keywords": "keyword",
|
|
93
|
+
"@default": "key.identifier"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
// identify typed input variables
|
|
98
|
+
[
|
|
99
|
+
/[$][\w$]*/,
|
|
100
|
+
{
|
|
101
|
+
cases: {
|
|
102
|
+
"@keywords": "keyword",
|
|
103
|
+
"@default": "argument.identifier"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
// to show class names nicely
|
|
108
|
+
[
|
|
109
|
+
/[A-Z][\w\$]*/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@typeKeywords": "keyword",
|
|
113
|
+
"@default": "type.identifier"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// whitespace
|
|
118
|
+
{ include: "@whitespace" },
|
|
119
|
+
// delimiters and operators
|
|
120
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
121
|
+
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
|
122
|
+
// @ annotations.
|
|
123
|
+
// As an example, we emit a debugging log message on these tokens.
|
|
124
|
+
// Note: message are supressed during the first load -- change some lines to see them.
|
|
125
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }],
|
|
126
|
+
// numbers
|
|
127
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
128
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
129
|
+
[/\d+/, "number"],
|
|
130
|
+
// delimiter: after number because of .\d floats
|
|
131
|
+
[/[;,.]/, "delimiter"],
|
|
132
|
+
[/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }],
|
|
133
|
+
// strings
|
|
134
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
135
|
+
// non-teminated string
|
|
136
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
|
137
|
+
],
|
|
138
|
+
mlstring: [
|
|
139
|
+
[/[^"]+/, "string"],
|
|
140
|
+
['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }]
|
|
141
|
+
],
|
|
142
|
+
string: [
|
|
143
|
+
[/[^\\"]+/, "string"],
|
|
144
|
+
[/@escapes/, "string.escape"],
|
|
145
|
+
[/\\./, "string.escape.invalid"],
|
|
146
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
147
|
+
],
|
|
148
|
+
whitespace: [
|
|
149
|
+
[/[ \t\r\n]+/, ""],
|
|
150
|
+
[/#.*$/, "comment"]
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
e as conf,
|
|
156
|
+
n as language
|
|
157
|
+
};
|