@teipublisher/pb-components 1.40.1 → 1.41.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/demo/pb-code-editor.html +12 -9
  3. package/dist/{iron-form-f540b15b.js → iron-form-9e72ac45.js} +1 -1
  4. package/dist/jinn-codemirror-c1a4b755.js +1 -0
  5. package/dist/{paper-checkbox-f6a70487.js → paper-checkbox-102e3b43.js} +120 -120
  6. package/dist/pb-code-editor.js +22 -0
  7. package/dist/pb-components-bundle.js +234 -234
  8. package/dist/pb-edit-app.js +33 -33
  9. package/dist/pb-elements.json +100 -16
  10. package/dist/pb-i18n-6ad23bcf.js +1 -0
  11. package/dist/pb-message-0fb0b538.js +911 -0
  12. package/dist/pb-odd-editor.js +110 -82
  13. package/package.json +4 -5
  14. package/pb-elements.json +100 -16
  15. package/src/pb-code-editor.js +51 -663
  16. package/src/pb-components.js +0 -1
  17. package/src/pb-load.js +11 -0
  18. package/src/pb-odd-model-editor.js +33 -23
  19. package/src/pb-odd-parameter-editor.js +17 -9
  20. package/src/pb-odd-rendition-editor.js +19 -9
  21. package/css/codemirror/3024-day.css +0 -41
  22. package/css/codemirror/3024-night.css +0 -39
  23. package/css/codemirror/abbott.css +0 -268
  24. package/css/codemirror/abcdef.css +0 -32
  25. package/css/codemirror/ambiance-mobile.css +0 -5
  26. package/css/codemirror/ambiance.css +0 -74
  27. package/css/codemirror/ayu-dark.css +0 -44
  28. package/css/codemirror/ayu-mirage.css +0 -45
  29. package/css/codemirror/base16-dark.css +0 -40
  30. package/css/codemirror/base16-light.css +0 -38
  31. package/css/codemirror/bespin.css +0 -34
  32. package/css/codemirror/blackboard.css +0 -32
  33. package/css/codemirror/cobalt.css +0 -25
  34. package/css/codemirror/colorforth.css +0 -33
  35. package/css/codemirror/darcula.css +0 -53
  36. package/css/codemirror/dracula.css +0 -40
  37. package/css/codemirror/duotone-dark.css +0 -35
  38. package/css/codemirror/duotone-light.css +0 -36
  39. package/css/codemirror/eclipse.css +0 -23
  40. package/css/codemirror/elegant.css +0 -13
  41. package/css/codemirror/erlang-dark.css +0 -34
  42. package/css/codemirror/gruvbox-dark.css +0 -39
  43. package/css/codemirror/hopscotch.css +0 -34
  44. package/css/codemirror/icecoder.css +0 -43
  45. package/css/codemirror/idea.css +0 -42
  46. package/css/codemirror/isotope.css +0 -34
  47. package/css/codemirror/juejin.css +0 -30
  48. package/css/codemirror/lesser-dark.css +0 -47
  49. package/css/codemirror/liquibyte.css +0 -95
  50. package/css/codemirror/lucario.css +0 -37
  51. package/css/codemirror/material-darker.css +0 -135
  52. package/css/codemirror/material-ocean.css +0 -141
  53. package/css/codemirror/material-palenight.css +0 -141
  54. package/css/codemirror/material.css +0 -141
  55. package/css/codemirror/mbo.css +0 -37
  56. package/css/codemirror/mdn-like.css +0 -46
  57. package/css/codemirror/midnight.css +0 -39
  58. package/css/codemirror/monokai.css +0 -41
  59. package/css/codemirror/moxer.css +0 -143
  60. package/css/codemirror/neat.css +0 -12
  61. package/css/codemirror/neo.css +0 -43
  62. package/css/codemirror/night.css +0 -27
  63. package/css/codemirror/nord.css +0 -42
  64. package/css/codemirror/oceanic-next.css +0 -46
  65. package/css/codemirror/panda-syntax.css +0 -85
  66. package/css/codemirror/paraiso-dark.css +0 -38
  67. package/css/codemirror/paraiso-light.css +0 -38
  68. package/css/codemirror/pastel-on-dark.css +0 -52
  69. package/css/codemirror/railscasts.css +0 -34
  70. package/css/codemirror/rubyblue.css +0 -25
  71. package/css/codemirror/seti.css +0 -44
  72. package/css/codemirror/shadowfox.css +0 -52
  73. package/css/codemirror/solarized.css +0 -168
  74. package/css/codemirror/ssms.css +0 -16
  75. package/css/codemirror/the-matrix.css +0 -30
  76. package/css/codemirror/tomorrow-night-bright.css +0 -35
  77. package/css/codemirror/tomorrow-night-eighties.css +0 -38
  78. package/css/codemirror/ttcn.css +0 -64
  79. package/css/codemirror/twilight.css +0 -32
  80. package/css/codemirror/vibrant-ink.css +0 -34
  81. package/css/codemirror/xq-dark.css +0 -53
  82. package/css/codemirror/xq-light.css +0 -43
  83. package/css/codemirror/yeti.css +0 -44
  84. package/css/codemirror/yonce.css +0 -59
  85. package/css/codemirror/zenburn.css +0 -37
  86. package/dist/pb-message-1a0c0c52.js +0 -1360
  87. package/lib/codemirror/addon/display/placeholder.js +0 -70
  88. package/lib/codemirror/addon/edit/matchbrackets.js +0 -152
  89. package/lib/codemirror/addon/lint/lint.js +0 -282
  90. package/lib/codemirror/mode/css/css.js +0 -855
  91. package/lib/codemirror/mode/stex/stex.js +0 -249
  92. package/lib/codemirror/mode/xml/xml.js +0 -404
  93. package/lib/codemirror/mode/xquery/xquery.js +0 -434
@@ -1,855 +0,0 @@
1
- function css(CodeMirror) {
2
-
3
- CodeMirror.defineMode("css", function(config, parserConfig) {
4
- var inline = parserConfig.inline;
5
- if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
6
-
7
- var indentUnit = config.indentUnit,
8
- tokenHooks = parserConfig.tokenHooks,
9
- documentTypes = parserConfig.documentTypes || {},
10
- mediaTypes = parserConfig.mediaTypes || {},
11
- mediaFeatures = parserConfig.mediaFeatures || {},
12
- mediaValueKeywords = parserConfig.mediaValueKeywords || {},
13
- propertyKeywords = parserConfig.propertyKeywords || {},
14
- nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
15
- fontProperties = parserConfig.fontProperties || {},
16
- counterDescriptors = parserConfig.counterDescriptors || {},
17
- colorKeywords = parserConfig.colorKeywords || {},
18
- valueKeywords = parserConfig.valueKeywords || {},
19
- allowNested = parserConfig.allowNested,
20
- lineComment = parserConfig.lineComment,
21
- supportsAtComponent = parserConfig.supportsAtComponent === true,
22
- highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
23
-
24
- var type, override;
25
- function ret(style, tp) { type = tp; return style; }
26
-
27
- // Tokenizers
28
-
29
- function tokenBase(stream, state) {
30
- var ch = stream.next();
31
- if (tokenHooks[ch]) {
32
- var result = tokenHooks[ch](stream, state);
33
- if (result !== false) return result;
34
- }
35
- if (ch == "@") {
36
- stream.eatWhile(/[\w\\\-]/);
37
- return ret("def", stream.current());
38
- } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
39
- return ret(null, "compare");
40
- } else if (ch == "\"" || ch == "'") {
41
- state.tokenize = tokenString(ch);
42
- return state.tokenize(stream, state);
43
- } else if (ch == "#") {
44
- stream.eatWhile(/[\w\\\-]/);
45
- return ret("atom", "hash");
46
- } else if (ch == "!") {
47
- stream.match(/^\s*\w*/);
48
- return ret("keyword", "important");
49
- } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
50
- stream.eatWhile(/[\w.%]/);
51
- return ret("number", "unit");
52
- } else if (ch === "-") {
53
- if (/[\d.]/.test(stream.peek())) {
54
- stream.eatWhile(/[\w.%]/);
55
- return ret("number", "unit");
56
- } else if (stream.match(/^-[\w\\\-]*/)) {
57
- stream.eatWhile(/[\w\\\-]/);
58
- if (stream.match(/^\s*:/, false))
59
- return ret("variable-2", "variable-definition");
60
- return ret("variable-2", "variable");
61
- } else if (stream.match(/^\w+-/)) {
62
- return ret("meta", "meta");
63
- }
64
- } else if (/[,+>*\/]/.test(ch)) {
65
- return ret(null, "select-op");
66
- } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
67
- return ret("qualifier", "qualifier");
68
- } else if (/[:;{}\[\]\(\)]/.test(ch)) {
69
- return ret(null, ch);
70
- } else if (stream.match(/^[\w-.]+(?=\()/)) {
71
- if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
72
- state.tokenize = tokenParenthesized;
73
- }
74
- return ret("variable callee", "variable");
75
- } else if (/[\w\\\-]/.test(ch)) {
76
- stream.eatWhile(/[\w\\\-]/);
77
- return ret("property", "word");
78
- } else {
79
- return ret(null, null);
80
- }
81
- }
82
-
83
- function tokenString(quote) {
84
- return function(stream, state) {
85
- var escaped = false, ch;
86
- while ((ch = stream.next()) != null) {
87
- if (ch == quote && !escaped) {
88
- if (quote == ")") stream.backUp(1);
89
- break;
90
- }
91
- escaped = !escaped && ch == "\\";
92
- }
93
- if (ch == quote || !escaped && quote != ")") state.tokenize = null;
94
- return ret("string", "string");
95
- };
96
- }
97
-
98
- function tokenParenthesized(stream, state) {
99
- stream.next(); // Must be '('
100
- if (!stream.match(/^\s*[\"\')]/, false))
101
- state.tokenize = tokenString(")");
102
- else
103
- state.tokenize = null;
104
- return ret(null, "(");
105
- }
106
-
107
- // Context management
108
-
109
- function Context(type, indent, prev) {
110
- this.type = type;
111
- this.indent = indent;
112
- this.prev = prev;
113
- }
114
-
115
- function pushContext(state, stream, type, indent) {
116
- state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
117
- return type;
118
- }
119
-
120
- function popContext(state) {
121
- if (state.context.prev)
122
- state.context = state.context.prev;
123
- return state.context.type;
124
- }
125
-
126
- function pass(type, stream, state) {
127
- return states[state.context.type](type, stream, state);
128
- }
129
- function popAndPass(type, stream, state, n) {
130
- for (var i = n || 1; i > 0; i--)
131
- state.context = state.context.prev;
132
- return pass(type, stream, state);
133
- }
134
-
135
- // Parser
136
-
137
- function wordAsValue(stream) {
138
- var word = stream.current().toLowerCase();
139
- if (valueKeywords.hasOwnProperty(word))
140
- override = "atom";
141
- else if (colorKeywords.hasOwnProperty(word))
142
- override = "keyword";
143
- else
144
- override = "variable";
145
- }
146
-
147
- var states = {};
148
-
149
- states.top = function(type, stream, state) {
150
- if (type == "{") {
151
- return pushContext(state, stream, "block");
152
- } else if (type == "}" && state.context.prev) {
153
- return popContext(state);
154
- } else if (supportsAtComponent && /@component/i.test(type)) {
155
- return pushContext(state, stream, "atComponentBlock");
156
- } else if (/^@(-moz-)?document$/i.test(type)) {
157
- return pushContext(state, stream, "documentTypes");
158
- } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
159
- return pushContext(state, stream, "atBlock");
160
- } else if (/^@(font-face|counter-style)/i.test(type)) {
161
- state.stateArg = type;
162
- return "restricted_atBlock_before";
163
- } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
164
- return "keyframes";
165
- } else if (type && type.charAt(0) == "@") {
166
- return pushContext(state, stream, "at");
167
- } else if (type == "hash") {
168
- override = "builtin";
169
- } else if (type == "word") {
170
- override = "tag";
171
- } else if (type == "variable-definition") {
172
- return "maybeprop";
173
- } else if (type == "interpolation") {
174
- return pushContext(state, stream, "interpolation");
175
- } else if (type == ":") {
176
- return "pseudo";
177
- } else if (allowNested && type == "(") {
178
- return pushContext(state, stream, "parens");
179
- }
180
- return state.context.type;
181
- };
182
-
183
- states.block = function(type, stream, state) {
184
- if (type == "word") {
185
- var word = stream.current().toLowerCase();
186
- if (propertyKeywords.hasOwnProperty(word)) {
187
- override = "property";
188
- return "maybeprop";
189
- } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
190
- override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
191
- return "maybeprop";
192
- } else if (allowNested) {
193
- override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
194
- return "block";
195
- } else {
196
- override += " error";
197
- return "maybeprop";
198
- }
199
- } else if (type == "meta") {
200
- return "block";
201
- } else if (!allowNested && (type == "hash" || type == "qualifier")) {
202
- override = "error";
203
- return "block";
204
- } else {
205
- return states.top(type, stream, state);
206
- }
207
- };
208
-
209
- states.maybeprop = function(type, stream, state) {
210
- if (type == ":") return pushContext(state, stream, "prop");
211
- return pass(type, stream, state);
212
- };
213
-
214
- states.prop = function(type, stream, state) {
215
- if (type == ";") return popContext(state);
216
- if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
217
- if (type == "}" || type == "{") return popAndPass(type, stream, state);
218
- if (type == "(") return pushContext(state, stream, "parens");
219
-
220
- if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
221
- override += " error";
222
- } else if (type == "word") {
223
- wordAsValue(stream);
224
- } else if (type == "interpolation") {
225
- return pushContext(state, stream, "interpolation");
226
- }
227
- return "prop";
228
- };
229
-
230
- states.propBlock = function(type, _stream, state) {
231
- if (type == "}") return popContext(state);
232
- if (type == "word") { override = "property"; return "maybeprop"; }
233
- return state.context.type;
234
- };
235
-
236
- states.parens = function(type, stream, state) {
237
- if (type == "{" || type == "}") return popAndPass(type, stream, state);
238
- if (type == ")") return popContext(state);
239
- if (type == "(") return pushContext(state, stream, "parens");
240
- if (type == "interpolation") return pushContext(state, stream, "interpolation");
241
- if (type == "word") wordAsValue(stream);
242
- return "parens";
243
- };
244
-
245
- states.pseudo = function(type, stream, state) {
246
- if (type == "meta") return "pseudo";
247
-
248
- if (type == "word") {
249
- override = "variable-3";
250
- return state.context.type;
251
- }
252
- return pass(type, stream, state);
253
- };
254
-
255
- states.documentTypes = function(type, stream, state) {
256
- if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
257
- override = "tag";
258
- return state.context.type;
259
- } else {
260
- return states.atBlock(type, stream, state);
261
- }
262
- };
263
-
264
- states.atBlock = function(type, stream, state) {
265
- if (type == "(") return pushContext(state, stream, "atBlock_parens");
266
- if (type == "}" || type == ";") return popAndPass(type, stream, state);
267
- if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
268
-
269
- if (type == "interpolation") return pushContext(state, stream, "interpolation");
270
-
271
- if (type == "word") {
272
- var word = stream.current().toLowerCase();
273
- if (word == "only" || word == "not" || word == "and" || word == "or")
274
- override = "keyword";
275
- else if (mediaTypes.hasOwnProperty(word))
276
- override = "attribute";
277
- else if (mediaFeatures.hasOwnProperty(word))
278
- override = "property";
279
- else if (mediaValueKeywords.hasOwnProperty(word))
280
- override = "keyword";
281
- else if (propertyKeywords.hasOwnProperty(word))
282
- override = "property";
283
- else if (nonStandardPropertyKeywords.hasOwnProperty(word))
284
- override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
285
- else if (valueKeywords.hasOwnProperty(word))
286
- override = "atom";
287
- else if (colorKeywords.hasOwnProperty(word))
288
- override = "keyword";
289
- else
290
- override = "error";
291
- }
292
- return state.context.type;
293
- };
294
-
295
- states.atComponentBlock = function(type, stream, state) {
296
- if (type == "}")
297
- return popAndPass(type, stream, state);
298
- if (type == "{")
299
- return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
300
- if (type == "word")
301
- override = "error";
302
- return state.context.type;
303
- };
304
-
305
- states.atBlock_parens = function(type, stream, state) {
306
- if (type == ")") return popContext(state);
307
- if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
308
- return states.atBlock(type, stream, state);
309
- };
310
-
311
- states.restricted_atBlock_before = function(type, stream, state) {
312
- if (type == "{")
313
- return pushContext(state, stream, "restricted_atBlock");
314
- if (type == "word" && state.stateArg == "@counter-style") {
315
- override = "variable";
316
- return "restricted_atBlock_before";
317
- }
318
- return pass(type, stream, state);
319
- };
320
-
321
- states.restricted_atBlock = function(type, stream, state) {
322
- if (type == "}") {
323
- state.stateArg = null;
324
- return popContext(state);
325
- }
326
- if (type == "word") {
327
- if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
328
- (state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
329
- override = "error";
330
- else
331
- override = "property";
332
- return "maybeprop";
333
- }
334
- return "restricted_atBlock";
335
- };
336
-
337
- states.keyframes = function(type, stream, state) {
338
- if (type == "word") { override = "variable"; return "keyframes"; }
339
- if (type == "{") return pushContext(state, stream, "top");
340
- return pass(type, stream, state);
341
- };
342
-
343
- states.at = function(type, stream, state) {
344
- if (type == ";") return popContext(state);
345
- if (type == "{" || type == "}") return popAndPass(type, stream, state);
346
- if (type == "word") override = "tag";
347
- else if (type == "hash") override = "builtin";
348
- return "at";
349
- };
350
-
351
- states.interpolation = function(type, stream, state) {
352
- if (type == "}") return popContext(state);
353
- if (type == "{" || type == ";") return popAndPass(type, stream, state);
354
- if (type == "word") override = "variable";
355
- else if (type != "variable" && type != "(" && type != ")") override = "error";
356
- return "interpolation";
357
- };
358
-
359
- return {
360
- startState: function(base) {
361
- return {tokenize: null,
362
- state: inline ? "block" : "top",
363
- stateArg: null,
364
- context: new Context(inline ? "block" : "top", base || 0, null)};
365
- },
366
-
367
- token: function(stream, state) {
368
- if (!state.tokenize && stream.eatSpace()) return null;
369
- var style = (state.tokenize || tokenBase)(stream, state);
370
- if (style && typeof style == "object") {
371
- type = style[1];
372
- style = style[0];
373
- }
374
- override = style;
375
- if (type != "comment")
376
- state.state = states[state.state](type, stream, state);
377
- return override;
378
- },
379
-
380
- indent: function(state, textAfter) {
381
- var cx = state.context, ch = textAfter && textAfter.charAt(0);
382
- var indent = cx.indent;
383
- if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
384
- if (cx.prev) {
385
- if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
386
- cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
387
- // Resume indentation from parent context.
388
- cx = cx.prev;
389
- indent = cx.indent;
390
- } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
391
- ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
392
- // Dedent relative to current context.
393
- indent = Math.max(0, cx.indent - indentUnit);
394
- }
395
- }
396
- return indent;
397
- },
398
-
399
- electricChars: "}",
400
- blockCommentStart: "/*",
401
- blockCommentEnd: "*/",
402
- blockCommentContinue: " * ",
403
- lineComment: lineComment,
404
- fold: "brace"
405
- };
406
- });
407
-
408
- function keySet(array) {
409
- var keys = {};
410
- for (var i = 0; i < array.length; ++i) {
411
- keys[array[i].toLowerCase()] = true;
412
- }
413
- return keys;
414
- }
415
-
416
- var documentTypes_ = [
417
- "domain", "regexp", "url", "url-prefix"
418
- ], documentTypes = keySet(documentTypes_);
419
-
420
- var mediaTypes_ = [
421
- "all", "aural", "braille", "handheld", "print", "projection", "screen",
422
- "tty", "tv", "embossed"
423
- ], mediaTypes = keySet(mediaTypes_);
424
-
425
- var mediaFeatures_ = [
426
- "width", "min-width", "max-width", "height", "min-height", "max-height",
427
- "device-width", "min-device-width", "max-device-width", "device-height",
428
- "min-device-height", "max-device-height", "aspect-ratio",
429
- "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
430
- "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
431
- "max-color", "color-index", "min-color-index", "max-color-index",
432
- "monochrome", "min-monochrome", "max-monochrome", "resolution",
433
- "min-resolution", "max-resolution", "scan", "grid", "orientation",
434
- "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
435
- "pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme"
436
- ], mediaFeatures = keySet(mediaFeatures_);
437
-
438
- var mediaValueKeywords_ = [
439
- "landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
440
- "interlace", "progressive",
441
- "dark", "light"
442
- ], mediaValueKeywords = keySet(mediaValueKeywords_);
443
-
444
- var propertyKeywords_ = [
445
- "align-content", "align-items", "align-self", "alignment-adjust",
446
- "alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
447
- "animation-direction", "animation-duration", "animation-fill-mode",
448
- "animation-iteration-count", "animation-name", "animation-play-state",
449
- "animation-timing-function", "appearance", "azimuth", "backdrop-filter",
450
- "backface-visibility", "background", "background-attachment",
451
- "background-blend-mode", "background-clip", "background-color",
452
- "background-image", "background-origin", "background-position",
453
- "background-position-x", "background-position-y", "background-repeat",
454
- "background-size", "baseline-shift", "binding", "bleed", "block-size",
455
- "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
456
- "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
457
- "border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
458
- "border-collapse", "border-color", "border-image", "border-image-outset",
459
- "border-image-repeat", "border-image-slice", "border-image-source",
460
- "border-image-width", "border-left", "border-left-color", "border-left-style",
461
- "border-left-width", "border-radius", "border-right", "border-right-color",
462
- "border-right-style", "border-right-width", "border-spacing", "border-style",
463
- "border-top", "border-top-color", "border-top-left-radius",
464
- "border-top-right-radius", "border-top-style", "border-top-width",
465
- "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
466
- "break-after", "break-before", "break-inside", "caption-side", "caret-color",
467
- "clear", "clip", "color", "color-profile", "column-count", "column-fill",
468
- "column-gap", "column-rule", "column-rule-color", "column-rule-style",
469
- "column-rule-width", "column-span", "column-width", "columns", "contain",
470
- "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
471
- "cue-before", "cursor", "direction", "display", "dominant-baseline",
472
- "drop-initial-after-adjust", "drop-initial-after-align",
473
- "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
474
- "drop-initial-value", "elevation", "empty-cells", "fit", "fit-position",
475
- "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
476
- "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
477
- "font", "font-family", "font-feature-settings", "font-kerning",
478
- "font-language-override", "font-optical-sizing", "font-size",
479
- "font-size-adjust", "font-stretch", "font-style", "font-synthesis",
480
- "font-variant", "font-variant-alternates", "font-variant-caps",
481
- "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
482
- "font-variant-position", "font-variation-settings", "font-weight", "gap",
483
- "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
484
- "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
485
- "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
486
- "grid-template", "grid-template-areas", "grid-template-columns",
487
- "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
488
- "image-orientation", "image-rendering", "image-resolution", "inline-box-align",
489
- "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
490
- "inset-inline-end", "inset-inline-start", "isolation", "justify-content",
491
- "justify-items", "justify-self", "left", "letter-spacing", "line-break",
492
- "line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
493
- "line-stacking-shift", "line-stacking-strategy", "list-style",
494
- "list-style-image", "list-style-position", "list-style-type", "margin",
495
- "margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
496
- "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
497
- "marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
498
- "mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
499
- "max-block-size", "max-height", "max-inline-size",
500
- "max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
501
- "mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
502
- "nav-up", "object-fit", "object-position", "offset", "offset-anchor",
503
- "offset-distance", "offset-path", "offset-position", "offset-rotate",
504
- "opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
505
- "outline-style", "outline-width", "overflow", "overflow-style",
506
- "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
507
- "padding-left", "padding-right", "padding-top", "page", "page-break-after",
508
- "page-break-before", "page-break-inside", "page-policy", "pause",
509
- "pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
510
- "pitch-range", "place-content", "place-items", "place-self", "play-during",
511
- "position", "presentation-level", "punctuation-trim", "quotes",
512
- "region-break-after", "region-break-before", "region-break-inside",
513
- "region-fragment", "rendering-intent", "resize", "rest", "rest-after",
514
- "rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
515
- "row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
516
- "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
517
- "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
518
- "scroll-margin-inline", "scroll-margin-inline-end",
519
- "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
520
- "scroll-margin-top", "scroll-padding", "scroll-padding-block",
521
- "scroll-padding-block-end", "scroll-padding-block-start",
522
- "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
523
- "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
524
- "scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
525
- "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
526
- "size", "speak", "speak-as", "speak-header", "speak-numeral",
527
- "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
528
- "table-layout", "target", "target-name", "target-new", "target-position",
529
- "text-align", "text-align-last", "text-combine-upright", "text-decoration",
530
- "text-decoration-color", "text-decoration-line", "text-decoration-skip",
531
- "text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
532
- "text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
533
- "text-height", "text-indent", "text-justify", "text-orientation",
534
- "text-outline", "text-overflow", "text-rendering", "text-shadow",
535
- "text-size-adjust", "text-space-collapse", "text-transform",
536
- "text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
537
- "transform-style", "transition", "transition-delay", "transition-duration",
538
- "transition-property", "transition-timing-function", "translate",
539
- "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
540
- "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
541
- "voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
542
- "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
543
- // SVG-specific
544
- "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
545
- "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
546
- "color-interpolation", "color-interpolation-filters",
547
- "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
548
- "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
549
- "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
550
- "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
551
- "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
552
- "glyph-orientation-vertical", "text-anchor", "writing-mode",
553
- ], propertyKeywords = keySet(propertyKeywords_);
554
-
555
- var nonStandardPropertyKeywords_ = [
556
- "border-block", "border-block-color", "border-block-end",
557
- "border-block-end-color", "border-block-end-style", "border-block-end-width",
558
- "border-block-start", "border-block-start-color", "border-block-start-style",
559
- "border-block-start-width", "border-block-style", "border-block-width",
560
- "border-inline", "border-inline-color", "border-inline-end",
561
- "border-inline-end-color", "border-inline-end-style",
562
- "border-inline-end-width", "border-inline-start", "border-inline-start-color",
563
- "border-inline-start-style", "border-inline-start-width",
564
- "border-inline-style", "border-inline-width", "margin-block",
565
- "margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
566
- "margin-inline-start", "padding-block", "padding-block-end",
567
- "padding-block-start", "padding-inline", "padding-inline-end",
568
- "padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
569
- "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
570
- "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
571
- "scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
572
- "searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
573
- ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
574
-
575
- var fontProperties_ = [
576
- "font-display", "font-family", "src", "unicode-range", "font-variant",
577
- "font-feature-settings", "font-stretch", "font-weight", "font-style"
578
- ], fontProperties = keySet(fontProperties_);
579
-
580
- var counterDescriptors_ = [
581
- "additive-symbols", "fallback", "negative", "pad", "prefix", "range",
582
- "speak-as", "suffix", "symbols", "system"
583
- ], counterDescriptors = keySet(counterDescriptors_);
584
-
585
- var colorKeywords_ = [
586
- "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
587
- "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
588
- "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
589
- "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
590
- "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
591
- "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
592
- "darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
593
- "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
594
- "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
595
- "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
596
- "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
597
- "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
598
- "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
599
- "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
600
- "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
601
- "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
602
- "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
603
- "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
604
- "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
605
- "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
606
- "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
607
- "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
608
- "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
609
- "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
610
- "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
611
- "whitesmoke", "yellow", "yellowgreen"
612
- ], colorKeywords = keySet(colorKeywords_);
613
-
614
- var valueKeywords_ = [
615
- "above", "absolute", "activeborder", "additive", "activecaption", "afar",
616
- "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
617
- "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
618
- "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
619
- "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
620
- "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
621
- "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
622
- "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
623
- "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
624
- "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
625
- "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
626
- "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
627
- "compact", "condensed", "contain", "content", "contents",
628
- "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop",
629
- "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
630
- "decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
631
- "destination-in", "destination-out", "destination-over", "devanagari", "difference",
632
- "disc", "discard", "disclosure-closed", "disclosure-open", "document",
633
- "dot-dash", "dot-dot-dash",
634
- "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
635
- "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
636
- "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
637
- "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
638
- "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
639
- "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
640
- "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
641
- "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
642
- "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
643
- "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
644
- "forwards", "from", "geometricPrecision", "georgian", "graytext", "grid", "groove",
645
- "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
646
- "help", "hidden", "hide", "higher", "highlight", "highlighttext",
647
- "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",
648
- "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
649
- "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
650
- "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
651
- "italic", "japanese-formal", "japanese-informal", "justify", "kannada",
652
- "katakana", "katakana-iroha", "keep-all", "khmer",
653
- "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
654
- "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
655
- "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
656
- "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
657
- "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
658
- "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
659
- "media-controls-background", "media-current-time-display",
660
- "media-fullscreen-button", "media-mute-button", "media-play-button",
661
- "media-return-to-realtime-button", "media-rewind-button",
662
- "media-seek-back-button", "media-seek-forward-button", "media-slider",
663
- "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
664
- "media-volume-slider-container", "media-volume-sliderthumb", "medium",
665
- "menu", "menulist", "menulist-button", "menulist-text",
666
- "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
667
- "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
668
- "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
669
- "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
670
- "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
671
- "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
672
- "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
673
- "painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
674
- "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
675
- "progress", "push-button", "radial-gradient", "radio", "read-only",
676
- "read-write", "read-write-plaintext-only", "rectangle", "region",
677
- "relative", "repeat", "repeating-linear-gradient",
678
- "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
679
- "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
680
- "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
681
- "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
682
- "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
683
- "searchfield-cancel-button", "searchfield-decoration",
684
- "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
685
- "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
686
- "simp-chinese-formal", "simp-chinese-informal", "single",
687
- "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
688
- "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
689
- "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
690
- "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
691
- "square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
692
- "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
693
- "table-caption", "table-cell", "table-column", "table-column-group",
694
- "table-footer-group", "table-header-group", "table-row", "table-row-group",
695
- "tamil",
696
- "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
697
- "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
698
- "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
699
- "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
700
- "trad-chinese-formal", "trad-chinese-informal", "transform",
701
- "translate", "translate3d", "translateX", "translateY", "translateZ",
702
- "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
703
- "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
704
- "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
705
- "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
706
- "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
707
- "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
708
- "xx-large", "xx-small"
709
- ], valueKeywords = keySet(valueKeywords_);
710
-
711
- var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
712
- .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
713
- .concat(valueKeywords_);
714
- CodeMirror.registerHelper("hintWords", "css", allWords);
715
-
716
- function tokenCComment(stream, state) {
717
- var maybeEnd = false, ch;
718
- while ((ch = stream.next()) != null) {
719
- if (maybeEnd && ch == "/") {
720
- state.tokenize = null;
721
- break;
722
- }
723
- maybeEnd = (ch == "*");
724
- }
725
- return ["comment", "comment"];
726
- }
727
-
728
- CodeMirror.defineMIME("text/css", {
729
- documentTypes: documentTypes,
730
- mediaTypes: mediaTypes,
731
- mediaFeatures: mediaFeatures,
732
- mediaValueKeywords: mediaValueKeywords,
733
- propertyKeywords: propertyKeywords,
734
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
735
- fontProperties: fontProperties,
736
- counterDescriptors: counterDescriptors,
737
- colorKeywords: colorKeywords,
738
- valueKeywords: valueKeywords,
739
- tokenHooks: {
740
- "/": function(stream, state) {
741
- if (!stream.eat("*")) return false;
742
- state.tokenize = tokenCComment;
743
- return tokenCComment(stream, state);
744
- }
745
- },
746
- name: "css"
747
- });
748
-
749
- CodeMirror.defineMIME("text/x-scss", {
750
- mediaTypes: mediaTypes,
751
- mediaFeatures: mediaFeatures,
752
- mediaValueKeywords: mediaValueKeywords,
753
- propertyKeywords: propertyKeywords,
754
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
755
- colorKeywords: colorKeywords,
756
- valueKeywords: valueKeywords,
757
- fontProperties: fontProperties,
758
- allowNested: true,
759
- lineComment: "//",
760
- tokenHooks: {
761
- "/": function(stream, state) {
762
- if (stream.eat("/")) {
763
- stream.skipToEnd();
764
- return ["comment", "comment"];
765
- } else if (stream.eat("*")) {
766
- state.tokenize = tokenCComment;
767
- return tokenCComment(stream, state);
768
- } else {
769
- return ["operator", "operator"];
770
- }
771
- },
772
- ":": function(stream) {
773
- if (stream.match(/^\s*\{/, false))
774
- return [null, null]
775
- return false;
776
- },
777
- "$": function(stream) {
778
- stream.match(/^[\w-]+/);
779
- if (stream.match(/^\s*:/, false))
780
- return ["variable-2", "variable-definition"];
781
- return ["variable-2", "variable"];
782
- },
783
- "#": function(stream) {
784
- if (!stream.eat("{")) return false;
785
- return [null, "interpolation"];
786
- }
787
- },
788
- name: "css",
789
- helperType: "scss"
790
- });
791
-
792
- CodeMirror.defineMIME("text/x-less", {
793
- mediaTypes: mediaTypes,
794
- mediaFeatures: mediaFeatures,
795
- mediaValueKeywords: mediaValueKeywords,
796
- propertyKeywords: propertyKeywords,
797
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
798
- colorKeywords: colorKeywords,
799
- valueKeywords: valueKeywords,
800
- fontProperties: fontProperties,
801
- allowNested: true,
802
- lineComment: "//",
803
- tokenHooks: {
804
- "/": function(stream, state) {
805
- if (stream.eat("/")) {
806
- stream.skipToEnd();
807
- return ["comment", "comment"];
808
- } else if (stream.eat("*")) {
809
- state.tokenize = tokenCComment;
810
- return tokenCComment(stream, state);
811
- } else {
812
- return ["operator", "operator"];
813
- }
814
- },
815
- "@": function(stream) {
816
- if (stream.eat("{")) return [null, "interpolation"];
817
- if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
818
- stream.eatWhile(/[\w\\\-]/);
819
- if (stream.match(/^\s*:/, false))
820
- return ["variable-2", "variable-definition"];
821
- return ["variable-2", "variable"];
822
- },
823
- "&": function() {
824
- return ["atom", "atom"];
825
- }
826
- },
827
- name: "css",
828
- helperType: "less"
829
- });
830
-
831
- CodeMirror.defineMIME("text/x-gss", {
832
- documentTypes: documentTypes,
833
- mediaTypes: mediaTypes,
834
- mediaFeatures: mediaFeatures,
835
- propertyKeywords: propertyKeywords,
836
- nonStandardPropertyKeywords: nonStandardPropertyKeywords,
837
- fontProperties: fontProperties,
838
- counterDescriptors: counterDescriptors,
839
- colorKeywords: colorKeywords,
840
- valueKeywords: valueKeywords,
841
- supportsAtComponent: true,
842
- tokenHooks: {
843
- "/": function(stream, state) {
844
- if (!stream.eat("*")) return false;
845
- state.tokenize = tokenCComment;
846
- return tokenCComment(stream, state);
847
- }
848
- },
849
- name: "css",
850
- helperType: "gss"
851
- });
852
-
853
- }
854
-
855
- export default css;