@valkyrianlabs/payload-markdown 1.3.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/LICENSE +21 -0
- package/README.md +222 -0
- package/dist/blocks/MarkdownBlock/Component.d.ts +2 -0
- package/dist/blocks/MarkdownBlock/Component.js +13 -0
- package/dist/blocks/MarkdownBlock/Component.js.map +1 -0
- package/dist/blocks/MarkdownBlock/config.d.ts +2 -0
- package/dist/blocks/MarkdownBlock/config.js +20 -0
- package/dist/blocks/MarkdownBlock/config.js.map +1 -0
- package/dist/blocks/MarkdownBlock/types.d.js +3 -0
- package/dist/blocks/MarkdownBlock/types.d.js.map +1 -0
- package/dist/components/MarkdownRenderer/Component.client.d.ts +5 -0
- package/dist/components/MarkdownRenderer/Component.client.js +163 -0
- package/dist/components/MarkdownRenderer/Component.client.js.map +1 -0
- package/dist/components/MarkdownRenderer/Component.d.ts +3 -0
- package/dist/components/MarkdownRenderer/Component.js +87 -0
- package/dist/components/MarkdownRenderer/Component.js.map +1 -0
- package/dist/components/MarkdownRenderer/index.css +69 -0
- package/dist/components/MarkdownRenderer/index.module.css +45 -0
- package/dist/components/MarkdownRenderer/index.module.scss +43 -0
- package/dist/components/MarkdownRenderer/index.scss +83 -0
- package/dist/components/MarkdownRenderer/types.d.js +5 -0
- package/dist/components/MarkdownRenderer/types.d.js.map +1 -0
- package/dist/core/codeConfig.d.ts +6 -0
- package/dist/core/codeConfig.js +45 -0
- package/dist/core/codeConfig.js.map +1 -0
- package/dist/core/codeToHtml.d.ts +5 -0
- package/dist/core/codeToHtml.js +180 -0
- package/dist/core/codeToHtml.js.map +1 -0
- package/dist/core/plugins/rehypeApplyLayoutClasses.d.ts +4 -0
- package/dist/core/plugins/rehypeApplyLayoutClasses.js +72 -0
- package/dist/core/plugins/rehypeApplyLayoutClasses.js.map +1 -0
- package/dist/core/plugins/rehypeStripAuthoredInlineStyles.d.ts +3 -0
- package/dist/core/plugins/rehypeStripAuthoredInlineStyles.js +17 -0
- package/dist/core/plugins/rehypeStripAuthoredInlineStyles.js.map +1 -0
- package/dist/core/plugins/remarkCompileLayouts.d.ts +3 -0
- package/dist/core/plugins/remarkCompileLayouts.js +169 -0
- package/dist/core/plugins/remarkCompileLayouts.js.map +1 -0
- package/dist/core/plugins/remarkHeadingAnchorsAndToc.d.ts +3 -0
- package/dist/core/plugins/remarkHeadingAnchorsAndToc.js +68 -0
- package/dist/core/plugins/remarkHeadingAnchorsAndToc.js.map +1 -0
- package/dist/core/plugins/remarkLayoutDirectives.d.ts +3 -0
- package/dist/core/plugins/remarkLayoutDirectives.js +26 -0
- package/dist/core/plugins/remarkLayoutDirectives.js.map +1 -0
- package/dist/core/plugins/remarkLayoutSentinels.d.ts +3 -0
- package/dist/core/plugins/remarkLayoutSentinels.js +184 -0
- package/dist/core/plugins/remarkLayoutSentinels.js.map +1 -0
- package/dist/core/plugins/remarkLiftLayoutDirectives.d.ts +3 -0
- package/dist/core/plugins/remarkLiftLayoutDirectives.js +93 -0
- package/dist/core/plugins/remarkLiftLayoutDirectives.js.map +1 -0
- package/dist/core/plugins/remarkNormalizeLayoutSyntax.d.ts +3 -0
- package/dist/core/plugins/remarkValidateDirectiveThemes.d.ts +4 -0
- package/dist/core/plugins/remarkValidateDirectiveThemes.js +28 -0
- package/dist/core/plugins/remarkValidateDirectiveThemes.js.map +1 -0
- package/dist/core/renderMarkdown.d.ts +2 -0
- package/dist/core/renderMarkdown.js +270 -0
- package/dist/core/renderMarkdown.js.map +1 -0
- package/dist/core/types.d.js +7 -0
- package/dist/core/types.d.js.map +1 -0
- package/dist/core/types.d.ts +238 -0
- package/dist/core/types.js +5 -0
- package/dist/core/types.js.map +1 -0
- package/dist/directives/attributes.d.ts +14 -0
- package/dist/directives/attributes.js +121 -0
- package/dist/directives/attributes.js.map +1 -0
- package/dist/directives/definitions/callout.d.ts +6 -0
- package/dist/directives/definitions/callout.js +107 -0
- package/dist/directives/definitions/callout.js.map +1 -0
- package/dist/directives/definitions/card.d.ts +4 -0
- package/dist/directives/definitions/card.js +120 -0
- package/dist/directives/definitions/card.js.map +1 -0
- package/dist/directives/definitions/cards.d.ts +7 -0
- package/dist/directives/definitions/cards.js +72 -0
- package/dist/directives/definitions/cards.js.map +1 -0
- package/dist/directives/definitions/cell.d.ts +4 -0
- package/dist/directives/definitions/cell.js +44 -0
- package/dist/directives/definitions/cell.js.map +1 -0
- package/dist/directives/definitions/columns.d.ts +4 -0
- package/dist/directives/definitions/columns.js +89 -0
- package/dist/directives/definitions/columns.js.map +1 -0
- package/dist/directives/definitions/details.d.ts +2 -0
- package/dist/directives/definitions/details.js +76 -0
- package/dist/directives/definitions/details.js.map +1 -0
- package/dist/directives/definitions/section.d.ts +2 -0
- package/dist/directives/definitions/section.js +32 -0
- package/dist/directives/definitions/section.js.map +1 -0
- package/dist/directives/definitions/steps.d.ts +2 -0
- package/dist/directives/definitions/steps.js +242 -0
- package/dist/directives/definitions/steps.js.map +1 -0
- package/dist/directives/definitions/tab.d.ts +8 -0
- package/dist/directives/definitions/tab.js +59 -0
- package/dist/directives/definitions/tab.js.map +1 -0
- package/dist/directives/definitions/tabs.d.ts +2 -0
- package/dist/directives/definitions/tabs.js +197 -0
- package/dist/directives/definitions/tabs.js.map +1 -0
- package/dist/directives/definitions/toc.d.ts +7 -0
- package/dist/directives/definitions/toc.js +59 -0
- package/dist/directives/definitions/toc.js.map +1 -0
- package/dist/directives/diagnostics.d.ts +8 -0
- package/dist/directives/diagnostics.js +167 -0
- package/dist/directives/diagnostics.js.map +1 -0
- package/dist/directives/headingAnchors.d.ts +9 -0
- package/dist/directives/headingAnchors.js +54 -0
- package/dist/directives/headingAnchors.js.map +1 -0
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/index.js +6 -0
- package/dist/directives/index.js.map +1 -0
- package/dist/directives/registry.d.ts +20 -0
- package/dist/directives/registry.js +152 -0
- package/dist/directives/registry.js.map +1 -0
- package/dist/directives/renderData.d.ts +3 -0
- package/dist/directives/renderData.js +11 -0
- package/dist/directives/renderData.js.map +1 -0
- package/dist/directives/themes.d.ts +25 -0
- package/dist/directives/themes.js +274 -0
- package/dist/directives/themes.js.map +1 -0
- package/dist/directives/types.d.ts +72 -0
- package/dist/directives/types.js +3 -0
- package/dist/directives/types.js.map +1 -0
- package/dist/editor/MarkdownCodeMirror/Component.client.d.ts +8 -0
- package/dist/editor/MarkdownCodeMirror/Component.client.js +78 -0
- package/dist/editor/MarkdownCodeMirror/Component.client.js.map +1 -0
- package/dist/editor/MarkdownCodeMirror/Component.d.ts +9 -0
- package/dist/editor/MarkdownCodeMirror/Component.js +10 -0
- package/dist/editor/MarkdownCodeMirror/Component.js.map +1 -0
- package/dist/editor/MarkdownCodeMirror.d.ts +8 -0
- package/dist/editor/MarkdownCodeMirror.js +74 -0
- package/dist/editor/MarkdownCodeMirror.js.map +1 -0
- package/dist/editor/MarkdownEditor.d.ts +10 -0
- package/dist/editor/MarkdownEditor.js +22 -0
- package/dist/editor/MarkdownEditor.js.map +1 -0
- package/dist/editor/directives/completions.d.ts +5 -0
- package/dist/editor/directives/completions.js +93 -0
- package/dist/editor/directives/completions.js.map +1 -0
- package/dist/editor/directives/diagnostics.d.ts +1 -0
- package/dist/editor/directives/diagnostics.js +12 -0
- package/dist/editor/directives/diagnostics.js.map +1 -0
- package/dist/editor/themes/payload.d.ts +27 -0
- package/dist/editor/themes/payload.js +269 -0
- package/dist/editor/themes/payload.js.map +1 -0
- package/dist/editor/themes/support/highlighters.d.ts +20 -0
- package/dist/editor/themes/support/highlighters.js +1141 -0
- package/dist/editor/themes/support/highlighters.js.map +1 -0
- package/dist/editor/themes/support/lang.d.ts +40 -0
- package/dist/editor/themes/support/lang.js +201 -0
- package/dist/editor/themes/support/lang.js.map +1 -0
- package/dist/exports/advanced.d.ts +3 -0
- package/dist/exports/advanced.js +5 -0
- package/dist/exports/advanced.js.map +1 -0
- package/dist/exports/client.d.ts +1 -0
- package/dist/exports/client.js +2 -0
- package/dist/exports/client.js.map +1 -0
- package/dist/exports/server.d.ts +3 -0
- package/dist/exports/server.js +5 -0
- package/dist/exports/server.js.map +1 -0
- package/dist/field/BlocksParams/config.d.ts +7 -0
- package/dist/field/BlocksParams/config.js +149 -0
- package/dist/field/BlocksParams/config.js.map +1 -0
- package/dist/field/CodeBlock/config.d.ts +7 -0
- package/dist/field/CodeBlock/config.js +321 -0
- package/dist/field/CodeBlock/config.js.map +1 -0
- package/dist/field/CodeBlockConfig/config.d.ts +7 -0
- package/dist/field/CodeBlockConfig/config.js +306 -0
- package/dist/field/CodeBlockConfig/config.js.map +1 -0
- package/dist/field/CodeBlockParams/config.d.ts +7 -0
- package/dist/field/CodeBlockParams/config.js +321 -0
- package/dist/field/CodeBlockParams/config.js.map +1 -0
- package/dist/field/Config/config.d.ts +7 -0
- package/dist/field/Config/config.js +149 -0
- package/dist/field/Config/config.js.map +1 -0
- package/dist/field/MarkdownField/Component.d.ts +2 -0
- package/dist/field/MarkdownField/Component.js +42 -0
- package/dist/field/MarkdownField/Component.js.map +1 -0
- package/dist/field/MarkdownField/config.d.ts +3 -0
- package/dist/field/MarkdownField/config.js +20 -0
- package/dist/field/MarkdownField/config.js.map +1 -0
- package/dist/field/Tailwind/config.d.ts +9 -0
- package/dist/field/Tailwind/config.js +13 -0
- package/dist/field/Tailwind/config.js.map +1 -0
- package/dist/field/TailwindField/config.d.ts +9 -0
- package/dist/field/TailwindField/config.js +13 -0
- package/dist/field/TailwindField/config.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +91 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/index.d.ts +36 -0
- package/dist/runtime/index.js +124 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/styles/directiveSurface.d.ts +11 -0
- package/dist/styles/directiveSurface.js +38 -0
- package/dist/styles/directiveSurface.js.map +1 -0
- package/dist/types/core.d.ts +285 -0
- package/dist/types/core.js +5 -0
- package/dist/types/core.js.map +1 -0
- package/dist/types/layoutToken.d.ts +1 -0
- package/dist/types/layoutToken.js +3 -0
- package/dist/types/layoutToken.js.map +1 -0
- package/dist/types/mdast.d.js +5 -0
- package/dist/types/mdast.d.js.map +1 -0
- package/dist/types.d.js +3 -0
- package/dist/types.d.js.map +1 -0
- package/dist/types.d.ts +80 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +181 -0
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
2
|
+
import { tags as t } from '@lezer/highlight';
|
|
3
|
+
import { supported as s } from './lang.js';
|
|
4
|
+
const scopedHighlight = (rules, language)=>syntaxHighlighting(HighlightStyle.define(rules, {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
scope: language.language
|
|
7
|
+
}));
|
|
8
|
+
const palette = {
|
|
9
|
+
clionCpp: {
|
|
10
|
+
name: '#a9b7c6',
|
|
11
|
+
type: '#ffc66d',
|
|
12
|
+
comment: '#808080',
|
|
13
|
+
constant: '#ffc66d',
|
|
14
|
+
func: '#56a8f5',
|
|
15
|
+
keyword: '#cc7832',
|
|
16
|
+
meta: '#c792ea',
|
|
17
|
+
number: '#6897bb',
|
|
18
|
+
operator: '#9876aa',
|
|
19
|
+
string: '#6a8759'
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
name: '#e5c07b',
|
|
23
|
+
comment: '#7d8799',
|
|
24
|
+
constant: '#e5c07b',
|
|
25
|
+
keyword: '#c678dd',
|
|
26
|
+
number: '#d19a66',
|
|
27
|
+
operator: '#56b6c2',
|
|
28
|
+
string: '#98c379'
|
|
29
|
+
},
|
|
30
|
+
jetbrainsJava: {
|
|
31
|
+
name: '#a9b7c6',
|
|
32
|
+
type: '#ffc66d',
|
|
33
|
+
comment: '#808080',
|
|
34
|
+
constant: '#ffc66d',
|
|
35
|
+
func: '#56a8f5',
|
|
36
|
+
keyword: '#cc7832',
|
|
37
|
+
number: '#6897bb',
|
|
38
|
+
operator: '#9876aa',
|
|
39
|
+
string: '#6a8759'
|
|
40
|
+
},
|
|
41
|
+
markup: {
|
|
42
|
+
name: '#c4c9d5',
|
|
43
|
+
attr: '#d19a66',
|
|
44
|
+
comment: '#7d8799',
|
|
45
|
+
func: '#61afef',
|
|
46
|
+
keyword: '#e06c75',
|
|
47
|
+
meta: '#c678dd',
|
|
48
|
+
operator: '#56b6c2',
|
|
49
|
+
string: '#98c379'
|
|
50
|
+
},
|
|
51
|
+
monokai: {
|
|
52
|
+
name: '#f8f8f2',
|
|
53
|
+
type: '#66d9ef',
|
|
54
|
+
comment: '#75715e',
|
|
55
|
+
constant: '#fd971f',
|
|
56
|
+
func: '#a6e22e',
|
|
57
|
+
keyword: '#f92672',
|
|
58
|
+
meta: '#75715e',
|
|
59
|
+
number: '#ae81ff',
|
|
60
|
+
operator: '#f92672',
|
|
61
|
+
string: '#a6e22e'
|
|
62
|
+
},
|
|
63
|
+
nord: {
|
|
64
|
+
name: '#d8dee9',
|
|
65
|
+
type: '#8fbcbb',
|
|
66
|
+
comment: '#616e88',
|
|
67
|
+
constant: '#ebcb8b',
|
|
68
|
+
func: '#5e81ac',
|
|
69
|
+
keyword: '#81a1c1',
|
|
70
|
+
meta: '#616e88',
|
|
71
|
+
number: '#b48ead',
|
|
72
|
+
operator: '#88c0d0',
|
|
73
|
+
string: '#a3be8c'
|
|
74
|
+
},
|
|
75
|
+
oneDark: {
|
|
76
|
+
name: '#e06c75',
|
|
77
|
+
type: '#e5c07b',
|
|
78
|
+
comment: '#7d8799',
|
|
79
|
+
constant: '#d19a66',
|
|
80
|
+
func: '#61afef',
|
|
81
|
+
keyword: '#c678dd',
|
|
82
|
+
meta: '#7d8799',
|
|
83
|
+
number: '#d19a66',
|
|
84
|
+
operator: '#56b6c2',
|
|
85
|
+
string: '#98c379'
|
|
86
|
+
},
|
|
87
|
+
style: {
|
|
88
|
+
name: '#e06c75',
|
|
89
|
+
type: '#56b6c2',
|
|
90
|
+
comment: '#7d8799',
|
|
91
|
+
constant: '#e5c07b',
|
|
92
|
+
func: '#61afef',
|
|
93
|
+
keyword: '#c678dd',
|
|
94
|
+
number: '#d19a66',
|
|
95
|
+
operator: '#56b6c2',
|
|
96
|
+
string: '#98c379'
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
export const angularHighlight = scopedHighlight([
|
|
100
|
+
{
|
|
101
|
+
color: palette.markup.keyword,
|
|
102
|
+
tag: t.keyword
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
color: palette.markup.name,
|
|
106
|
+
tag: [
|
|
107
|
+
t.name
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
color: palette.markup.attr,
|
|
112
|
+
tag: [
|
|
113
|
+
t.propertyName,
|
|
114
|
+
t.attributeName
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
color: palette.markup.string,
|
|
119
|
+
tag: [
|
|
120
|
+
t.string,
|
|
121
|
+
t.special(t.string)
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
color: palette.markup.comment,
|
|
126
|
+
tag: [
|
|
127
|
+
t.comment
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
color: palette.markup.meta,
|
|
132
|
+
tag: [
|
|
133
|
+
t.meta,
|
|
134
|
+
t.annotation
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
color: palette.markup.operator,
|
|
139
|
+
tag: [
|
|
140
|
+
t.operator,
|
|
141
|
+
t.operatorKeyword
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
color: palette.markup.func,
|
|
146
|
+
tag: [
|
|
147
|
+
t.function(t.variableName),
|
|
148
|
+
t.function(t.propertyName)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
], s.angular);
|
|
152
|
+
export const cppHighlight = scopedHighlight([
|
|
153
|
+
{
|
|
154
|
+
color: palette.clionCpp.keyword,
|
|
155
|
+
tag: t.keyword
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
color: palette.clionCpp.name,
|
|
159
|
+
tag: [
|
|
160
|
+
t.name,
|
|
161
|
+
t.definition(t.name),
|
|
162
|
+
t.separator
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
color: palette.clionCpp.type,
|
|
167
|
+
tag: [
|
|
168
|
+
t.typeName,
|
|
169
|
+
t.className
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
color: palette.clionCpp.number,
|
|
174
|
+
tag: t.number
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
color: palette.clionCpp.string,
|
|
178
|
+
tag: [
|
|
179
|
+
t.string,
|
|
180
|
+
t.special(t.string)
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
color: palette.clionCpp.comment,
|
|
185
|
+
tag: [
|
|
186
|
+
t.comment
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
color: palette.clionCpp.operator,
|
|
191
|
+
tag: [
|
|
192
|
+
t.operator,
|
|
193
|
+
t.operatorKeyword
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
color: palette.clionCpp.func,
|
|
198
|
+
tag: [
|
|
199
|
+
t.function(t.variableName),
|
|
200
|
+
t.function(t.propertyName)
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
color: palette.clionCpp.meta,
|
|
205
|
+
tag: [
|
|
206
|
+
t.meta,
|
|
207
|
+
t.macroName,
|
|
208
|
+
t.processingInstruction
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
color: palette.clionCpp.constant,
|
|
213
|
+
tag: [
|
|
214
|
+
t.atom,
|
|
215
|
+
t.bool,
|
|
216
|
+
t.constant(t.name)
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
], s.cpp);
|
|
220
|
+
export const cssHighlight = scopedHighlight([
|
|
221
|
+
{
|
|
222
|
+
color: palette.style.keyword,
|
|
223
|
+
tag: t.keyword
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
color: palette.style.name,
|
|
227
|
+
tag: [
|
|
228
|
+
t.name,
|
|
229
|
+
t.propertyName
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
color: palette.style.type,
|
|
234
|
+
tag: [
|
|
235
|
+
t.typeName,
|
|
236
|
+
t.className,
|
|
237
|
+
t.labelName
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
color: palette.style.number,
|
|
242
|
+
tag: [
|
|
243
|
+
t.number
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
color: palette.style.string,
|
|
248
|
+
tag: [
|
|
249
|
+
t.string,
|
|
250
|
+
t.special(t.string)
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
color: palette.style.comment,
|
|
255
|
+
tag: [
|
|
256
|
+
t.comment,
|
|
257
|
+
t.meta
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
color: palette.style.operator,
|
|
262
|
+
tag: [
|
|
263
|
+
t.operator,
|
|
264
|
+
t.operatorKeyword
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
color: palette.style.func,
|
|
269
|
+
tag: [
|
|
270
|
+
t.function(t.variableName),
|
|
271
|
+
t.function(t.propertyName)
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
color: palette.style.constant,
|
|
276
|
+
tag: [
|
|
277
|
+
t.color,
|
|
278
|
+
t.constant(t.name),
|
|
279
|
+
t.standard(t.name)
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
], s.css);
|
|
283
|
+
export const goHighlight = scopedHighlight([
|
|
284
|
+
{
|
|
285
|
+
color: palette.nord.keyword,
|
|
286
|
+
tag: t.keyword
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
color: palette.nord.name,
|
|
290
|
+
tag: [
|
|
291
|
+
t.name,
|
|
292
|
+
t.definition(t.name)
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
color: palette.nord.type,
|
|
297
|
+
tag: [
|
|
298
|
+
t.typeName,
|
|
299
|
+
t.className
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
color: palette.nord.number,
|
|
304
|
+
tag: t.number
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
color: palette.nord.string,
|
|
308
|
+
tag: [
|
|
309
|
+
t.string,
|
|
310
|
+
t.special(t.string)
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
color: palette.nord.comment,
|
|
315
|
+
tag: [
|
|
316
|
+
t.comment,
|
|
317
|
+
t.meta
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
color: palette.nord.operator,
|
|
322
|
+
tag: [
|
|
323
|
+
t.operator,
|
|
324
|
+
t.operatorKeyword
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
color: palette.nord.func,
|
|
329
|
+
tag: [
|
|
330
|
+
t.function(t.variableName),
|
|
331
|
+
t.function(t.propertyName)
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
color: palette.nord.constant,
|
|
336
|
+
tag: [
|
|
337
|
+
t.atom,
|
|
338
|
+
t.bool,
|
|
339
|
+
t.constant(t.name)
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
], s.go);
|
|
343
|
+
export const htmlHighlight = scopedHighlight([
|
|
344
|
+
{
|
|
345
|
+
color: palette.markup.keyword,
|
|
346
|
+
tag: t.keyword
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
color: palette.markup.name,
|
|
350
|
+
tag: [
|
|
351
|
+
t.name
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
color: palette.markup.attr,
|
|
356
|
+
tag: [
|
|
357
|
+
t.propertyName,
|
|
358
|
+
t.attributeName
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
color: palette.markup.string,
|
|
363
|
+
tag: [
|
|
364
|
+
t.string,
|
|
365
|
+
t.special(t.string)
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
color: palette.markup.comment,
|
|
370
|
+
tag: [
|
|
371
|
+
t.comment
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
color: palette.markup.meta,
|
|
376
|
+
tag: [
|
|
377
|
+
t.meta,
|
|
378
|
+
t.processingInstruction
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
color: palette.markup.operator,
|
|
383
|
+
tag: [
|
|
384
|
+
t.operator,
|
|
385
|
+
t.operatorKeyword
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
], s.html);
|
|
389
|
+
export const javaHighlight = scopedHighlight([
|
|
390
|
+
{
|
|
391
|
+
color: palette.jetbrainsJava.keyword,
|
|
392
|
+
tag: t.keyword
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
color: palette.jetbrainsJava.name,
|
|
396
|
+
tag: [
|
|
397
|
+
t.name,
|
|
398
|
+
t.definition(t.name),
|
|
399
|
+
t.separator
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
color: palette.jetbrainsJava.type,
|
|
404
|
+
tag: [
|
|
405
|
+
t.typeName,
|
|
406
|
+
t.className,
|
|
407
|
+
t.annotation
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
color: palette.jetbrainsJava.number,
|
|
412
|
+
tag: t.number
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
color: palette.jetbrainsJava.string,
|
|
416
|
+
tag: [
|
|
417
|
+
t.string,
|
|
418
|
+
t.special(t.string)
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
color: palette.jetbrainsJava.comment,
|
|
423
|
+
tag: [
|
|
424
|
+
t.comment,
|
|
425
|
+
t.meta
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
color: palette.jetbrainsJava.operator,
|
|
430
|
+
tag: [
|
|
431
|
+
t.operator,
|
|
432
|
+
t.operatorKeyword
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
color: palette.jetbrainsJava.constant,
|
|
437
|
+
tag: [
|
|
438
|
+
t.atom,
|
|
439
|
+
t.bool,
|
|
440
|
+
t.constant(t.name)
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
color: palette.jetbrainsJava.func,
|
|
445
|
+
tag: [
|
|
446
|
+
t.function(t.variableName),
|
|
447
|
+
t.function(t.propertyName)
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
], s.java);
|
|
451
|
+
export const javascriptHighlight = scopedHighlight([
|
|
452
|
+
{
|
|
453
|
+
color: palette.oneDark.keyword,
|
|
454
|
+
tag: t.keyword
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
color: palette.oneDark.name,
|
|
458
|
+
tag: [
|
|
459
|
+
t.name,
|
|
460
|
+
t.propertyName
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
color: palette.oneDark.type,
|
|
465
|
+
tag: [
|
|
466
|
+
t.typeName,
|
|
467
|
+
t.className
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
color: palette.oneDark.number,
|
|
472
|
+
tag: t.number
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
color: palette.oneDark.string,
|
|
476
|
+
tag: [
|
|
477
|
+
t.string,
|
|
478
|
+
t.special(t.string),
|
|
479
|
+
t.regexp
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
color: palette.oneDark.comment,
|
|
484
|
+
tag: [
|
|
485
|
+
t.comment,
|
|
486
|
+
t.meta
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
color: palette.oneDark.operator,
|
|
491
|
+
tag: [
|
|
492
|
+
t.operator,
|
|
493
|
+
t.operatorKeyword
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
color: palette.oneDark.func,
|
|
498
|
+
tag: [
|
|
499
|
+
t.function(t.variableName),
|
|
500
|
+
t.function(t.propertyName)
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
color: palette.oneDark.constant,
|
|
505
|
+
tag: [
|
|
506
|
+
t.atom,
|
|
507
|
+
t.bool,
|
|
508
|
+
t.constant(t.name)
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
], s.javascript);
|
|
512
|
+
export const typescriptHighlight = scopedHighlight([
|
|
513
|
+
{
|
|
514
|
+
color: palette.oneDark.keyword,
|
|
515
|
+
tag: t.keyword
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
color: palette.oneDark.name,
|
|
519
|
+
tag: [
|
|
520
|
+
t.name,
|
|
521
|
+
t.propertyName
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
color: palette.oneDark.type,
|
|
526
|
+
tag: [
|
|
527
|
+
t.typeName,
|
|
528
|
+
t.className,
|
|
529
|
+
t.annotation,
|
|
530
|
+
t.namespace
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
color: palette.oneDark.number,
|
|
535
|
+
tag: t.number
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
color: palette.oneDark.string,
|
|
539
|
+
tag: [
|
|
540
|
+
t.string,
|
|
541
|
+
t.special(t.string),
|
|
542
|
+
t.regexp
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
color: palette.oneDark.comment,
|
|
547
|
+
tag: [
|
|
548
|
+
t.comment,
|
|
549
|
+
t.meta
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
color: palette.oneDark.operator,
|
|
554
|
+
tag: [
|
|
555
|
+
t.operator,
|
|
556
|
+
t.operatorKeyword
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
color: palette.oneDark.func,
|
|
561
|
+
tag: [
|
|
562
|
+
t.function(t.variableName),
|
|
563
|
+
t.function(t.propertyName)
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
color: palette.oneDark.constant,
|
|
568
|
+
tag: [
|
|
569
|
+
t.atom,
|
|
570
|
+
t.bool,
|
|
571
|
+
t.constant(t.name)
|
|
572
|
+
]
|
|
573
|
+
}
|
|
574
|
+
], s.typescript);
|
|
575
|
+
export const jsonHighlight = scopedHighlight([
|
|
576
|
+
{
|
|
577
|
+
color: palette.data.name,
|
|
578
|
+
tag: [
|
|
579
|
+
t.propertyName,
|
|
580
|
+
t.attributeName
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
color: palette.data.string,
|
|
585
|
+
tag: [
|
|
586
|
+
t.string,
|
|
587
|
+
t.special(t.string)
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
color: palette.data.number,
|
|
592
|
+
tag: [
|
|
593
|
+
t.number
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
color: palette.data.constant,
|
|
598
|
+
tag: [
|
|
599
|
+
t.bool,
|
|
600
|
+
t.atom,
|
|
601
|
+
t.null
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
color: palette.data.operator,
|
|
606
|
+
tag: [
|
|
607
|
+
t.separator,
|
|
608
|
+
t.operator
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
color: palette.data.comment,
|
|
613
|
+
tag: [
|
|
614
|
+
t.comment,
|
|
615
|
+
t.meta
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
], s.json);
|
|
619
|
+
export const markdownHighlight = scopedHighlight([
|
|
620
|
+
{
|
|
621
|
+
color: '#e06c75',
|
|
622
|
+
fontWeight: 'bold',
|
|
623
|
+
tag: t.heading
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
color: '#7d8799',
|
|
627
|
+
tag: [
|
|
628
|
+
t.meta,
|
|
629
|
+
t.comment,
|
|
630
|
+
t.quote
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
color: '#98c379',
|
|
635
|
+
tag: [
|
|
636
|
+
t.string,
|
|
637
|
+
t.monospace
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
color: '#56b6c2',
|
|
642
|
+
tag: [
|
|
643
|
+
t.link,
|
|
644
|
+
t.url
|
|
645
|
+
],
|
|
646
|
+
textDecoration: 'underline'
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
color: '#c678dd',
|
|
650
|
+
tag: t.keyword
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
fontWeight: 'bold',
|
|
654
|
+
tag: t.strong
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
fontStyle: 'italic',
|
|
658
|
+
tag: t.emphasis
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
tag: t.strikethrough,
|
|
662
|
+
textDecoration: 'line-through'
|
|
663
|
+
}
|
|
664
|
+
], s.markdown);
|
|
665
|
+
export const phpHighlight = scopedHighlight([
|
|
666
|
+
{
|
|
667
|
+
color: palette.oneDark.keyword,
|
|
668
|
+
tag: t.keyword
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
color: palette.oneDark.name,
|
|
672
|
+
tag: [
|
|
673
|
+
t.name,
|
|
674
|
+
t.propertyName
|
|
675
|
+
]
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
color: palette.oneDark.type,
|
|
679
|
+
tag: [
|
|
680
|
+
t.typeName,
|
|
681
|
+
t.className,
|
|
682
|
+
t.namespace
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
color: palette.oneDark.number,
|
|
687
|
+
tag: t.number
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
color: palette.oneDark.string,
|
|
691
|
+
tag: [
|
|
692
|
+
t.string,
|
|
693
|
+
t.special(t.string)
|
|
694
|
+
]
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
color: palette.oneDark.comment,
|
|
698
|
+
tag: [
|
|
699
|
+
t.comment,
|
|
700
|
+
t.meta
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
color: palette.oneDark.operator,
|
|
705
|
+
tag: [
|
|
706
|
+
t.operator,
|
|
707
|
+
t.operatorKeyword
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
color: palette.oneDark.func,
|
|
712
|
+
tag: [
|
|
713
|
+
t.function(t.variableName),
|
|
714
|
+
t.function(t.propertyName)
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
color: palette.oneDark.constant,
|
|
719
|
+
tag: [
|
|
720
|
+
t.atom,
|
|
721
|
+
t.bool,
|
|
722
|
+
t.constant(t.name)
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
], s.php);
|
|
726
|
+
export const pythonHighlight = scopedHighlight([
|
|
727
|
+
{
|
|
728
|
+
color: palette.monokai.keyword,
|
|
729
|
+
tag: t.keyword
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
color: palette.monokai.name,
|
|
733
|
+
tag: [
|
|
734
|
+
t.name,
|
|
735
|
+
t.definition(t.name)
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
color: palette.monokai.type,
|
|
740
|
+
tag: [
|
|
741
|
+
t.typeName,
|
|
742
|
+
t.className
|
|
743
|
+
]
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
color: palette.monokai.number,
|
|
747
|
+
tag: t.number
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
color: palette.monokai.string,
|
|
751
|
+
tag: [
|
|
752
|
+
t.string,
|
|
753
|
+
t.special(t.string)
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
color: palette.monokai.comment,
|
|
758
|
+
tag: [
|
|
759
|
+
t.comment,
|
|
760
|
+
t.meta
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
color: palette.monokai.operator,
|
|
765
|
+
tag: [
|
|
766
|
+
t.operator,
|
|
767
|
+
t.operatorKeyword
|
|
768
|
+
]
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
color: palette.monokai.func,
|
|
772
|
+
tag: [
|
|
773
|
+
t.function(t.variableName),
|
|
774
|
+
t.function(t.propertyName)
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
color: palette.monokai.constant,
|
|
779
|
+
tag: [
|
|
780
|
+
t.atom,
|
|
781
|
+
t.bool,
|
|
782
|
+
t.constant(t.name)
|
|
783
|
+
]
|
|
784
|
+
}
|
|
785
|
+
], s.python);
|
|
786
|
+
export const rustHighlight = scopedHighlight([
|
|
787
|
+
{
|
|
788
|
+
color: palette.oneDark.keyword,
|
|
789
|
+
tag: t.keyword
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
color: palette.oneDark.name,
|
|
793
|
+
tag: [
|
|
794
|
+
t.name,
|
|
795
|
+
t.macroName
|
|
796
|
+
]
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
color: palette.oneDark.type,
|
|
800
|
+
tag: [
|
|
801
|
+
t.typeName,
|
|
802
|
+
t.className,
|
|
803
|
+
t.annotation
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
color: palette.oneDark.number,
|
|
808
|
+
tag: t.number
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
color: palette.oneDark.string,
|
|
812
|
+
tag: [
|
|
813
|
+
t.string,
|
|
814
|
+
t.special(t.string)
|
|
815
|
+
]
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
color: palette.oneDark.comment,
|
|
819
|
+
tag: [
|
|
820
|
+
t.comment,
|
|
821
|
+
t.meta
|
|
822
|
+
]
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
color: palette.oneDark.operator,
|
|
826
|
+
tag: [
|
|
827
|
+
t.operator,
|
|
828
|
+
t.operatorKeyword
|
|
829
|
+
]
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
color: palette.oneDark.func,
|
|
833
|
+
tag: [
|
|
834
|
+
t.function(t.variableName),
|
|
835
|
+
t.function(t.propertyName)
|
|
836
|
+
]
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
color: palette.oneDark.constant,
|
|
840
|
+
tag: [
|
|
841
|
+
t.atom,
|
|
842
|
+
t.bool,
|
|
843
|
+
t.constant(t.name)
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
], s.rust);
|
|
847
|
+
export const sassHighlight = scopedHighlight([
|
|
848
|
+
{
|
|
849
|
+
color: palette.style.keyword,
|
|
850
|
+
tag: t.keyword
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
color: palette.style.name,
|
|
854
|
+
tag: [
|
|
855
|
+
t.name,
|
|
856
|
+
t.propertyName
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
color: palette.style.type,
|
|
861
|
+
tag: [
|
|
862
|
+
t.typeName,
|
|
863
|
+
t.className,
|
|
864
|
+
t.labelName
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
color: palette.style.number,
|
|
869
|
+
tag: [
|
|
870
|
+
t.number
|
|
871
|
+
]
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
color: palette.style.string,
|
|
875
|
+
tag: [
|
|
876
|
+
t.string,
|
|
877
|
+
t.special(t.string)
|
|
878
|
+
]
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
color: palette.style.comment,
|
|
882
|
+
tag: [
|
|
883
|
+
t.comment,
|
|
884
|
+
t.meta
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
color: palette.style.operator,
|
|
889
|
+
tag: [
|
|
890
|
+
t.operator,
|
|
891
|
+
t.operatorKeyword
|
|
892
|
+
]
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
color: palette.style.func,
|
|
896
|
+
tag: [
|
|
897
|
+
t.function(t.variableName),
|
|
898
|
+
t.function(t.propertyName)
|
|
899
|
+
]
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
color: palette.style.constant,
|
|
903
|
+
tag: [
|
|
904
|
+
t.color,
|
|
905
|
+
t.constant(t.name),
|
|
906
|
+
t.standard(t.name)
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
], s.sass);
|
|
910
|
+
export const sqlHighlight = scopedHighlight([
|
|
911
|
+
{
|
|
912
|
+
color: '#c678dd',
|
|
913
|
+
tag: t.keyword
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
color: '#c4c9d5',
|
|
917
|
+
tag: [
|
|
918
|
+
t.name,
|
|
919
|
+
t.definition(t.name)
|
|
920
|
+
]
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
color: '#e5c07b',
|
|
924
|
+
tag: [
|
|
925
|
+
t.typeName,
|
|
926
|
+
t.className
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
color: '#d19a66',
|
|
931
|
+
tag: [
|
|
932
|
+
t.number,
|
|
933
|
+
t.bool
|
|
934
|
+
]
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
color: '#98c379',
|
|
938
|
+
tag: [
|
|
939
|
+
t.string,
|
|
940
|
+
t.special(t.string)
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
color: '#7d8799',
|
|
945
|
+
tag: [
|
|
946
|
+
t.comment,
|
|
947
|
+
t.meta
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
color: '#56b6c2',
|
|
952
|
+
tag: [
|
|
953
|
+
t.operator,
|
|
954
|
+
t.operatorKeyword
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
color: '#61afef',
|
|
959
|
+
tag: [
|
|
960
|
+
t.function(t.variableName),
|
|
961
|
+
t.function(t.propertyName)
|
|
962
|
+
]
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
color: '#e5c07b',
|
|
966
|
+
tag: [
|
|
967
|
+
t.atom,
|
|
968
|
+
t.constant(t.name)
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
], s.sql);
|
|
972
|
+
export const vueHighlight = scopedHighlight([
|
|
973
|
+
{
|
|
974
|
+
color: palette.markup.keyword,
|
|
975
|
+
tag: t.keyword
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
color: palette.markup.name,
|
|
979
|
+
tag: [
|
|
980
|
+
t.name
|
|
981
|
+
]
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
color: palette.markup.attr,
|
|
985
|
+
tag: [
|
|
986
|
+
t.propertyName,
|
|
987
|
+
t.attributeName
|
|
988
|
+
]
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
color: palette.markup.string,
|
|
992
|
+
tag: [
|
|
993
|
+
t.string,
|
|
994
|
+
t.special(t.string)
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
color: palette.markup.comment,
|
|
999
|
+
tag: [
|
|
1000
|
+
t.comment
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
color: palette.markup.meta,
|
|
1005
|
+
tag: [
|
|
1006
|
+
t.meta,
|
|
1007
|
+
t.annotation,
|
|
1008
|
+
t.processingInstruction
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
color: palette.markup.operator,
|
|
1013
|
+
tag: [
|
|
1014
|
+
t.operator,
|
|
1015
|
+
t.operatorKeyword
|
|
1016
|
+
]
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
color: palette.markup.func,
|
|
1020
|
+
tag: [
|
|
1021
|
+
t.function(t.variableName),
|
|
1022
|
+
t.function(t.propertyName)
|
|
1023
|
+
]
|
|
1024
|
+
}
|
|
1025
|
+
], s.vue);
|
|
1026
|
+
export const xmlHighlight = scopedHighlight([
|
|
1027
|
+
{
|
|
1028
|
+
color: palette.markup.keyword,
|
|
1029
|
+
tag: t.keyword
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
color: palette.markup.name,
|
|
1033
|
+
tag: [
|
|
1034
|
+
t.name
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
color: palette.markup.attr,
|
|
1039
|
+
tag: [
|
|
1040
|
+
t.propertyName,
|
|
1041
|
+
t.attributeName
|
|
1042
|
+
]
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
color: palette.markup.string,
|
|
1046
|
+
tag: [
|
|
1047
|
+
t.string,
|
|
1048
|
+
t.special(t.string)
|
|
1049
|
+
]
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
color: palette.markup.comment,
|
|
1053
|
+
tag: [
|
|
1054
|
+
t.comment
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
color: palette.markup.meta,
|
|
1059
|
+
tag: [
|
|
1060
|
+
t.meta,
|
|
1061
|
+
t.processingInstruction
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
color: palette.markup.operator,
|
|
1066
|
+
tag: [
|
|
1067
|
+
t.operator,
|
|
1068
|
+
t.operatorKeyword
|
|
1069
|
+
]
|
|
1070
|
+
}
|
|
1071
|
+
], s.xml);
|
|
1072
|
+
export const yamlHighlight = scopedHighlight([
|
|
1073
|
+
{
|
|
1074
|
+
color: palette.data.keyword,
|
|
1075
|
+
tag: t.keyword
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
color: palette.data.name,
|
|
1079
|
+
tag: [
|
|
1080
|
+
t.propertyName,
|
|
1081
|
+
t.attributeName
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
color: palette.data.string,
|
|
1086
|
+
tag: [
|
|
1087
|
+
t.string,
|
|
1088
|
+
t.special(t.string)
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
color: palette.data.number,
|
|
1093
|
+
tag: [
|
|
1094
|
+
t.number
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
color: palette.data.constant,
|
|
1099
|
+
tag: [
|
|
1100
|
+
t.bool,
|
|
1101
|
+
t.atom,
|
|
1102
|
+
t.null
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
color: palette.data.operator,
|
|
1107
|
+
tag: [
|
|
1108
|
+
t.separator,
|
|
1109
|
+
t.operator
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
color: palette.data.comment,
|
|
1114
|
+
tag: [
|
|
1115
|
+
t.comment,
|
|
1116
|
+
t.meta
|
|
1117
|
+
]
|
|
1118
|
+
}
|
|
1119
|
+
], s.yaml);
|
|
1120
|
+
export const supportedLangHighlight = [
|
|
1121
|
+
angularHighlight,
|
|
1122
|
+
cppHighlight,
|
|
1123
|
+
cssHighlight,
|
|
1124
|
+
goHighlight,
|
|
1125
|
+
htmlHighlight,
|
|
1126
|
+
javaHighlight,
|
|
1127
|
+
javascriptHighlight,
|
|
1128
|
+
typescriptHighlight,
|
|
1129
|
+
jsonHighlight,
|
|
1130
|
+
markdownHighlight,
|
|
1131
|
+
phpHighlight,
|
|
1132
|
+
pythonHighlight,
|
|
1133
|
+
rustHighlight,
|
|
1134
|
+
sassHighlight,
|
|
1135
|
+
sqlHighlight,
|
|
1136
|
+
vueHighlight,
|
|
1137
|
+
xmlHighlight,
|
|
1138
|
+
yamlHighlight
|
|
1139
|
+
];
|
|
1140
|
+
|
|
1141
|
+
//# sourceMappingURL=highlighters.js.map
|