@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,318 @@
|
|
|
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
|
+
{ open: "`", close: "`" }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: '"', close: '"' },
|
|
30
|
+
{ open: "'", close: "'" },
|
|
31
|
+
{ open: "`", close: "`" }
|
|
32
|
+
]
|
|
33
|
+
}, o = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".swift",
|
|
36
|
+
// TODO(owensd): Support the full range of unicode valid identifiers.
|
|
37
|
+
identifier: /[a-zA-Z_][\w$]*/,
|
|
38
|
+
attributes: [
|
|
39
|
+
"@GKInspectable",
|
|
40
|
+
"@IBAction",
|
|
41
|
+
"@IBDesignable",
|
|
42
|
+
"@IBInspectable",
|
|
43
|
+
"@IBOutlet",
|
|
44
|
+
"@IBSegueAction",
|
|
45
|
+
"@NSApplicationMain",
|
|
46
|
+
"@NSCopying",
|
|
47
|
+
"@NSManaged",
|
|
48
|
+
"@Sendable",
|
|
49
|
+
"@UIApplicationMain",
|
|
50
|
+
"@autoclosure",
|
|
51
|
+
"@actorIndependent",
|
|
52
|
+
"@asyncHandler",
|
|
53
|
+
"@available",
|
|
54
|
+
"@convention",
|
|
55
|
+
"@derivative",
|
|
56
|
+
"@differentiable",
|
|
57
|
+
"@discardableResult",
|
|
58
|
+
"@dynamicCallable",
|
|
59
|
+
"@dynamicMemberLookup",
|
|
60
|
+
"@escaping",
|
|
61
|
+
"@frozen",
|
|
62
|
+
"@globalActor",
|
|
63
|
+
"@inlinable",
|
|
64
|
+
"@inline",
|
|
65
|
+
"@main",
|
|
66
|
+
"@noDerivative",
|
|
67
|
+
"@nonobjc",
|
|
68
|
+
"@noreturn",
|
|
69
|
+
"@objc",
|
|
70
|
+
"@objcMembers",
|
|
71
|
+
"@preconcurrency",
|
|
72
|
+
"@propertyWrapper",
|
|
73
|
+
"@requires_stored_property_inits",
|
|
74
|
+
"@resultBuilder",
|
|
75
|
+
"@testable",
|
|
76
|
+
"@unchecked",
|
|
77
|
+
"@unknown",
|
|
78
|
+
"@usableFromInline",
|
|
79
|
+
"@warn_unqualified_access"
|
|
80
|
+
],
|
|
81
|
+
accessmodifiers: ["open", "public", "internal", "fileprivate", "private"],
|
|
82
|
+
keywords: [
|
|
83
|
+
"#available",
|
|
84
|
+
"#colorLiteral",
|
|
85
|
+
"#column",
|
|
86
|
+
"#dsohandle",
|
|
87
|
+
"#else",
|
|
88
|
+
"#elseif",
|
|
89
|
+
"#endif",
|
|
90
|
+
"#error",
|
|
91
|
+
"#file",
|
|
92
|
+
"#fileID",
|
|
93
|
+
"#fileLiteral",
|
|
94
|
+
"#filePath",
|
|
95
|
+
"#function",
|
|
96
|
+
"#if",
|
|
97
|
+
"#imageLiteral",
|
|
98
|
+
"#keyPath",
|
|
99
|
+
"#line",
|
|
100
|
+
"#selector",
|
|
101
|
+
"#sourceLocation",
|
|
102
|
+
"#warning",
|
|
103
|
+
"Any",
|
|
104
|
+
"Protocol",
|
|
105
|
+
"Self",
|
|
106
|
+
"Type",
|
|
107
|
+
"actor",
|
|
108
|
+
"as",
|
|
109
|
+
"assignment",
|
|
110
|
+
"associatedtype",
|
|
111
|
+
"associativity",
|
|
112
|
+
"async",
|
|
113
|
+
"await",
|
|
114
|
+
"break",
|
|
115
|
+
"case",
|
|
116
|
+
"catch",
|
|
117
|
+
"class",
|
|
118
|
+
"continue",
|
|
119
|
+
"convenience",
|
|
120
|
+
"default",
|
|
121
|
+
"defer",
|
|
122
|
+
"deinit",
|
|
123
|
+
"didSet",
|
|
124
|
+
"do",
|
|
125
|
+
"dynamic",
|
|
126
|
+
"dynamicType",
|
|
127
|
+
"else",
|
|
128
|
+
"enum",
|
|
129
|
+
"extension",
|
|
130
|
+
"fallthrough",
|
|
131
|
+
"false",
|
|
132
|
+
"fileprivate",
|
|
133
|
+
"final",
|
|
134
|
+
"for",
|
|
135
|
+
"func",
|
|
136
|
+
"get",
|
|
137
|
+
"guard",
|
|
138
|
+
"higherThan",
|
|
139
|
+
"if",
|
|
140
|
+
"import",
|
|
141
|
+
"in",
|
|
142
|
+
"indirect",
|
|
143
|
+
"infix",
|
|
144
|
+
"init",
|
|
145
|
+
"inout",
|
|
146
|
+
"internal",
|
|
147
|
+
"is",
|
|
148
|
+
"isolated",
|
|
149
|
+
"lazy",
|
|
150
|
+
"left",
|
|
151
|
+
"let",
|
|
152
|
+
"lowerThan",
|
|
153
|
+
"mutating",
|
|
154
|
+
"nil",
|
|
155
|
+
"none",
|
|
156
|
+
"nonisolated",
|
|
157
|
+
"nonmutating",
|
|
158
|
+
"open",
|
|
159
|
+
"operator",
|
|
160
|
+
"optional",
|
|
161
|
+
"override",
|
|
162
|
+
"postfix",
|
|
163
|
+
"precedence",
|
|
164
|
+
"precedencegroup",
|
|
165
|
+
"prefix",
|
|
166
|
+
"private",
|
|
167
|
+
"protocol",
|
|
168
|
+
"public",
|
|
169
|
+
"repeat",
|
|
170
|
+
"required",
|
|
171
|
+
"rethrows",
|
|
172
|
+
"return",
|
|
173
|
+
"right",
|
|
174
|
+
"safe",
|
|
175
|
+
"self",
|
|
176
|
+
"set",
|
|
177
|
+
"some",
|
|
178
|
+
"static",
|
|
179
|
+
"struct",
|
|
180
|
+
"subscript",
|
|
181
|
+
"super",
|
|
182
|
+
"switch",
|
|
183
|
+
"throw",
|
|
184
|
+
"throws",
|
|
185
|
+
"true",
|
|
186
|
+
"try",
|
|
187
|
+
"typealias",
|
|
188
|
+
"unowned",
|
|
189
|
+
"unsafe",
|
|
190
|
+
"var",
|
|
191
|
+
"weak",
|
|
192
|
+
"where",
|
|
193
|
+
"while",
|
|
194
|
+
"willSet",
|
|
195
|
+
"__consuming",
|
|
196
|
+
"__owned"
|
|
197
|
+
],
|
|
198
|
+
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
|
199
|
+
// Moved . to operatorstart so it can be a delimiter
|
|
200
|
+
operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,
|
|
201
|
+
operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,
|
|
202
|
+
operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/,
|
|
203
|
+
// TODO(owensd): These are borrowed from C#; need to validate correctness for Swift.
|
|
204
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
205
|
+
tokenizer: {
|
|
206
|
+
root: [
|
|
207
|
+
{ include: "@whitespace" },
|
|
208
|
+
{ include: "@comment" },
|
|
209
|
+
{ include: "@attribute" },
|
|
210
|
+
{ include: "@literal" },
|
|
211
|
+
{ include: "@keyword" },
|
|
212
|
+
{ include: "@invokedmethod" },
|
|
213
|
+
{ include: "@symbol" }
|
|
214
|
+
],
|
|
215
|
+
whitespace: [
|
|
216
|
+
[/\s+/, "white"],
|
|
217
|
+
[/"""/, "string.quote", "@endDblDocString"]
|
|
218
|
+
],
|
|
219
|
+
endDblDocString: [
|
|
220
|
+
[/[^"]+/, "string"],
|
|
221
|
+
[/\\"/, "string"],
|
|
222
|
+
[/"""/, "string.quote", "@popall"],
|
|
223
|
+
[/"/, "string"]
|
|
224
|
+
],
|
|
225
|
+
symbol: [
|
|
226
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
227
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
228
|
+
[/[.]/, "delimiter"],
|
|
229
|
+
[/@operators/, "operator"],
|
|
230
|
+
[/@symbols/, "operator"]
|
|
231
|
+
],
|
|
232
|
+
comment: [
|
|
233
|
+
[/\/\/\/.*$/, "comment.doc"],
|
|
234
|
+
[/\/\*\*/, "comment.doc", "@commentdocbody"],
|
|
235
|
+
[/\/\/.*$/, "comment"],
|
|
236
|
+
[/\/\*/, "comment", "@commentbody"]
|
|
237
|
+
],
|
|
238
|
+
commentdocbody: [
|
|
239
|
+
[/\/\*/, "comment", "@commentbody"],
|
|
240
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
241
|
+
[/\:[a-zA-Z]+\:/, "comment.doc.param"],
|
|
242
|
+
[/./, "comment.doc"]
|
|
243
|
+
],
|
|
244
|
+
commentbody: [
|
|
245
|
+
[/\/\*/, "comment", "@commentbody"],
|
|
246
|
+
[/\*\//, "comment", "@pop"],
|
|
247
|
+
[/./, "comment"]
|
|
248
|
+
],
|
|
249
|
+
attribute: [
|
|
250
|
+
[
|
|
251
|
+
/@@@identifier/,
|
|
252
|
+
{
|
|
253
|
+
cases: {
|
|
254
|
+
"@attributes": "keyword.control",
|
|
255
|
+
"@default": ""
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
],
|
|
260
|
+
literal: [
|
|
261
|
+
[/"/, { token: "string.quote", next: "@stringlit" }],
|
|
262
|
+
[/0[b]([01]_?)+/, "number.binary"],
|
|
263
|
+
[/0[o]([0-7]_?)+/, "number.octal"],
|
|
264
|
+
[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, "number.hex"],
|
|
265
|
+
[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, "number.float"],
|
|
266
|
+
[/(\d_?)+/, "number"]
|
|
267
|
+
],
|
|
268
|
+
stringlit: [
|
|
269
|
+
[/\\\(/, { token: "operator", next: "@interpolatedexpression" }],
|
|
270
|
+
[/@escapes/, "string"],
|
|
271
|
+
[/\\./, "string.escape.invalid"],
|
|
272
|
+
[/"/, { token: "string.quote", next: "@pop" }],
|
|
273
|
+
[/./, "string"]
|
|
274
|
+
],
|
|
275
|
+
interpolatedexpression: [
|
|
276
|
+
[/\(/, { token: "operator", next: "@interpolatedexpression" }],
|
|
277
|
+
[/\)/, { token: "operator", next: "@pop" }],
|
|
278
|
+
{ include: "@literal" },
|
|
279
|
+
{ include: "@keyword" },
|
|
280
|
+
{ include: "@symbol" }
|
|
281
|
+
],
|
|
282
|
+
keyword: [
|
|
283
|
+
[/`/, { token: "operator", next: "@escapedkeyword" }],
|
|
284
|
+
[
|
|
285
|
+
/@identifier/,
|
|
286
|
+
{
|
|
287
|
+
cases: {
|
|
288
|
+
"@keywords": "keyword",
|
|
289
|
+
"[A-Z][a-zA-Z0-9$]*": "type.identifier",
|
|
290
|
+
"@default": "identifier"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
],
|
|
295
|
+
escapedkeyword: [
|
|
296
|
+
[/`/, { token: "operator", next: "@pop" }],
|
|
297
|
+
[/./, "identifier"]
|
|
298
|
+
],
|
|
299
|
+
invokedmethod: [
|
|
300
|
+
[
|
|
301
|
+
/([.])(@identifier)/,
|
|
302
|
+
{
|
|
303
|
+
cases: {
|
|
304
|
+
$2: ["delimeter", "type.identifier"],
|
|
305
|
+
"@default": ""
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
/*!---------------------------------------------------------------------------------------------
|
|
313
|
+
* Copyright (C) David Owens II, owensd.io. All rights reserved.
|
|
314
|
+
*--------------------------------------------------------------------------------------------*/
|
|
315
|
+
export {
|
|
316
|
+
e as conf,
|
|
317
|
+
o as language
|
|
318
|
+
};
|