@covalent/components 8.15.0-beta.12 → 8.15.0-beta.14

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 (52) hide show
  1. package/code-editor/code-editor.d.ts +0 -14
  2. package/code-editor/code-editor.d.ts.map +1 -1
  3. package/{code-editor-3a09cbf1.js → code-editor-857a4673.js} +89 -159
  4. package/{code-editor-ce557bd5.mjs → code-editor-caabbe50.mjs} +3141 -3338
  5. package/code-editor.js +1 -1
  6. package/code-editor.mjs +1 -1
  7. package/{html-783f1e7c.mjs → html-707a5945.mjs} +1 -1
  8. package/{html-4fffc46e.js → html-aa904833.js} +1 -1
  9. package/index.js +1 -1
  10. package/index.mjs +1 -1
  11. package/{javascript-4d09cd3c.mjs → javascript-779a52b2.mjs} +2 -2
  12. package/{javascript-90bb18e6.js → javascript-d8dd6c0d.js} +1 -1
  13. package/notebook/notebook.d.ts +14 -1
  14. package/notebook/notebook.d.ts.map +1 -1
  15. package/notebook-cell/notebook-cell.d.ts.map +1 -1
  16. package/notebook-cell.js +8 -5
  17. package/notebook-cell.mjs +12 -9
  18. package/notebook.js +36 -27
  19. package/notebook.mjs +940 -848
  20. package/package.json +1 -1
  21. package/{python-562f8e9b.mjs → python-02ca0307.mjs} +1 -1
  22. package/{python-af3aad7d.js → python-b0bc8e7b.js} +1 -1
  23. package/{typescript-76d039b3.js → typescript-1a78657a.js} +1 -1
  24. package/{typescript-a2a5d6b2.mjs → typescript-ba11dbe7.mjs} +1 -1
  25. package/cpp-642b10c4.mjs +0 -387
  26. package/cpp-7eec3311.js +0 -6
  27. package/csharp-32862cd2.js +0 -6
  28. package/csharp-d987ddad.mjs +0 -320
  29. package/dart-031264ea.js +0 -6
  30. package/dart-5d209f63.mjs +0 -270
  31. package/go-46e3b371.mjs +0 -208
  32. package/go-cdd943fd.js +0 -6
  33. package/java-32d7b433.js +0 -6
  34. package/java-cd017f60.mjs +0 -221
  35. package/kotlin-4b9019e1.js +0 -6
  36. package/kotlin-c6e52a56.mjs +0 -245
  37. package/lua-b46719a9.js +0 -6
  38. package/lua-f159160b.mjs +0 -157
  39. package/php-987b9d87.mjs +0 -471
  40. package/php-a6dcde52.js +0 -6
  41. package/rust-87887495.js +0 -6
  42. package/rust-97f8f6e1.mjs +0 -337
  43. package/scala-c68c650c.mjs +0 -353
  44. package/scala-e8b7bd42.js +0 -6
  45. package/shell-09452d42.mjs +0 -224
  46. package/shell-43cfbe7d.js +0 -6
  47. package/swift-724ff2a3.js +0 -8
  48. package/swift-abdf1835.mjs +0 -315
  49. package/xml-89571455.mjs +0 -100
  50. package/xml-e66929d0.js +0 -6
  51. package/yaml-11a91e71.js +0 -6
  52. package/yaml-4eccd122.mjs +0 -189
package/xml-89571455.mjs DELETED
@@ -1,100 +0,0 @@
1
- import { m } from "./code-editor-ce557bd5.mjs";
2
- import "./query-assigned-elements-4a39219d.mjs";
3
- import "./property-9b6ea53b.mjs";
4
- import "./async-directive-99a01ec7.mjs";
5
- import "./directive-helpers-e3ea6592.mjs";
6
- import "./directive-daf4e9b6.mjs";
7
- /*!-----------------------------------------------------------------------------
8
- * Copyright (c) Microsoft Corporation. All rights reserved.
9
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
10
- * Released under the MIT license
11
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
12
- *-----------------------------------------------------------------------------*/
13
- var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, r = (t, e, o, i) => {
14
- if (e && typeof e == "object" || typeof e == "function")
15
- for (let n of p(e))
16
- !d.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = l(e, n)) || i.enumerable });
17
- return t;
18
- }, s = (t, e, o) => (r(t, e, "default"), o && r(o, e, "default")), a = {};
19
- s(a, m);
20
- var w = {
21
- comments: {
22
- blockComment: ["<!--", "-->"]
23
- },
24
- brackets: [["<", ">"]],
25
- autoClosingPairs: [
26
- { open: "<", close: ">" },
27
- { open: "'", close: "'" },
28
- { open: '"', close: '"' }
29
- ],
30
- surroundingPairs: [
31
- { open: "<", close: ">" },
32
- { open: "'", close: "'" },
33
- { open: '"', close: '"' }
34
- ],
35
- onEnterRules: [
36
- {
37
- beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
38
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
39
- action: {
40
- indentAction: a.languages.IndentAction.IndentOutdent
41
- }
42
- },
43
- {
44
- beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
45
- action: { indentAction: a.languages.IndentAction.Indent }
46
- }
47
- ]
48
- }, b = {
49
- defaultToken: "",
50
- tokenPostfix: ".xml",
51
- ignoreCase: !0,
52
- qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
53
- tokenizer: {
54
- root: [
55
- [/[^<&]+/, ""],
56
- { include: "@whitespace" },
57
- [/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
58
- [
59
- /(<\/)(@qualifiedName)(\s*)(>)/,
60
- [{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
61
- ],
62
- [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
63
- [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
64
- [/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
65
- [/&\w+;/, "string.escape"]
66
- ],
67
- cdata: [
68
- [/[^\]]+/, ""],
69
- [/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
70
- [/\]/, ""]
71
- ],
72
- tag: [
73
- [/[ \t\r\n]+/, ""],
74
- [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
75
- [
76
- /(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
77
- ["attribute.name", "", "attribute.value"]
78
- ],
79
- [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
80
- [/@qualifiedName/, "attribute.name"],
81
- [/\?>/, { token: "delimiter", next: "@pop" }],
82
- [/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
83
- [/>/, { token: "delimiter", next: "@pop" }]
84
- ],
85
- whitespace: [
86
- [/[ \t\r\n]+/, ""],
87
- [/<!--/, { token: "comment", next: "@comment" }]
88
- ],
89
- comment: [
90
- [/[^<\-]+/, "comment.content"],
91
- [/-->/, { token: "comment", next: "@pop" }],
92
- [/<!--/, "comment.content.invalid"],
93
- [/[<\-]/, "comment.content"]
94
- ]
95
- }
96
- };
97
- export {
98
- w as conf,
99
- b as language
100
- };
package/xml-e66929d0.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./code-editor-3a09cbf1.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,r=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!d.call(t,n)&&n!==o&&l(t,n,{get:()=>e[n],enumerable:!(i=u(e,n))||i.enumerable});return t},p=(t,e,o)=>(r(t,e,"default"),o&&r(o,e,"default")),a={};p(a,c.monaco_editor_core_star);var s={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};exports.conf=s;exports.language=g;
package/yaml-11a91e71.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./code-editor-3a09cbf1.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,a=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!d.call(n,t)&&t!==r&&c(n,t,{get:()=>e[t],enumerable:!(o=u(e,t))||o.enumerable});return n},m=(n,e,r)=>(a(n,e,"default"),r&&a(r,e,"default")),l={};m(l,i.monaco_editor_core_star);var b={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:l.languages.IndentAction.Indent}}]},p={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};exports.conf=b;exports.language=p;
package/yaml-4eccd122.mjs DELETED
@@ -1,189 +0,0 @@
1
- import { m as i } from "./code-editor-ce557bd5.mjs";
2
- import "./query-assigned-elements-4a39219d.mjs";
3
- import "./property-9b6ea53b.mjs";
4
- import "./async-directive-99a01ec7.mjs";
5
- import "./directive-helpers-e3ea6592.mjs";
6
- import "./directive-daf4e9b6.mjs";
7
- /*!-----------------------------------------------------------------------------
8
- * Copyright (c) Microsoft Corporation. All rights reserved.
9
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
10
- * Released under the MIT license
11
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
12
- *-----------------------------------------------------------------------------*/
13
- var c = Object.defineProperty, u = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, a = (n, e, r, o) => {
14
- if (e && typeof e == "object" || typeof e == "function")
15
- for (let t of s(e))
16
- !d.call(n, t) && t !== r && c(n, t, { get: () => e[t], enumerable: !(o = u(e, t)) || o.enumerable });
17
- return n;
18
- }, m = (n, e, r) => (a(n, e, "default"), r && a(r, e, "default")), l = {};
19
- m(l, i);
20
- var k = {
21
- comments: {
22
- lineComment: "#"
23
- },
24
- brackets: [
25
- ["{", "}"],
26
- ["[", "]"],
27
- ["(", ")"]
28
- ],
29
- autoClosingPairs: [
30
- { open: "{", close: "}" },
31
- { open: "[", close: "]" },
32
- { open: "(", close: ")" },
33
- { open: '"', close: '"' },
34
- { open: "'", close: "'" }
35
- ],
36
- surroundingPairs: [
37
- { open: "{", close: "}" },
38
- { open: "[", close: "]" },
39
- { open: "(", close: ")" },
40
- { open: '"', close: '"' },
41
- { open: "'", close: "'" }
42
- ],
43
- folding: {
44
- offSide: !0
45
- },
46
- onEnterRules: [
47
- {
48
- beforeText: /:\s*$/,
49
- action: {
50
- indentAction: l.languages.IndentAction.Indent
51
- }
52
- }
53
- ]
54
- }, S = {
55
- tokenPostfix: ".yaml",
56
- brackets: [
57
- { token: "delimiter.bracket", open: "{", close: "}" },
58
- { token: "delimiter.square", open: "[", close: "]" }
59
- ],
60
- keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
61
- numberInteger: /(?:0|[+-]?[0-9]+)/,
62
- numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
63
- numberOctal: /0o[0-7]+/,
64
- numberHex: /0x[0-9a-fA-F]+/,
65
- numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
66
- numberNaN: /\.(?:nan|Nan|NAN)/,
67
- numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
68
- escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
69
- tokenizer: {
70
- root: [
71
- { include: "@whitespace" },
72
- { include: "@comment" },
73
- [/%[^ ]+.*$/, "meta.directive"],
74
- [/---/, "operators.directivesEnd"],
75
- [/\.{3}/, "operators.documentEnd"],
76
- [/[-?:](?= )/, "operators"],
77
- { include: "@anchor" },
78
- { include: "@tagHandle" },
79
- { include: "@flowCollections" },
80
- { include: "@blockStyle" },
81
- [/@numberInteger(?![ \t]*\S+)/, "number"],
82
- [/@numberFloat(?![ \t]*\S+)/, "number.float"],
83
- [/@numberOctal(?![ \t]*\S+)/, "number.octal"],
84
- [/@numberHex(?![ \t]*\S+)/, "number.hex"],
85
- [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
86
- [/@numberNaN(?![ \t]*\S+)/, "number.nan"],
87
- [/@numberDate(?![ \t]*\S+)/, "number.date"],
88
- [/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
89
- { include: "@flowScalars" },
90
- [
91
- /[^#]+/,
92
- {
93
- cases: {
94
- "@keywords": "keyword",
95
- "@default": "string"
96
- }
97
- }
98
- ]
99
- ],
100
- object: [
101
- { include: "@whitespace" },
102
- { include: "@comment" },
103
- [/\}/, "@brackets", "@pop"],
104
- [/,/, "delimiter.comma"],
105
- [/:(?= )/, "operators"],
106
- [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
107
- { include: "@flowCollections" },
108
- { include: "@flowScalars" },
109
- { include: "@tagHandle" },
110
- { include: "@anchor" },
111
- { include: "@flowNumber" },
112
- [
113
- /[^\},]+/,
114
- {
115
- cases: {
116
- "@keywords": "keyword",
117
- "@default": "string"
118
- }
119
- }
120
- ]
121
- ],
122
- array: [
123
- { include: "@whitespace" },
124
- { include: "@comment" },
125
- [/\]/, "@brackets", "@pop"],
126
- [/,/, "delimiter.comma"],
127
- { include: "@flowCollections" },
128
- { include: "@flowScalars" },
129
- { include: "@tagHandle" },
130
- { include: "@anchor" },
131
- { include: "@flowNumber" },
132
- [
133
- /[^\],]+/,
134
- {
135
- cases: {
136
- "@keywords": "keyword",
137
- "@default": "string"
138
- }
139
- }
140
- ]
141
- ],
142
- multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
143
- multiStringContinued: [
144
- [
145
- /^( *).+$/,
146
- {
147
- cases: {
148
- "$1==$S2": "string",
149
- "@default": { token: "@rematch", next: "@popall" }
150
- }
151
- }
152
- ]
153
- ],
154
- whitespace: [[/[ \t\r\n]+/, "white"]],
155
- comment: [[/#.*$/, "comment"]],
156
- flowCollections: [
157
- [/\[/, "@brackets", "@array"],
158
- [/\{/, "@brackets", "@object"]
159
- ],
160
- flowScalars: [
161
- [/"([^"\\]|\\.)*$/, "string.invalid"],
162
- [/'([^'\\]|\\.)*$/, "string.invalid"],
163
- [/'[^']*'/, "string"],
164
- [/"/, "string", "@doubleQuotedString"]
165
- ],
166
- doubleQuotedString: [
167
- [/[^\\"]+/, "string"],
168
- [/@escapes/, "string.escape"],
169
- [/\\./, "string.escape.invalid"],
170
- [/"/, "string", "@pop"]
171
- ],
172
- blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
173
- flowNumber: [
174
- [/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
175
- [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
176
- [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
177
- [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
178
- [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
179
- [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
180
- [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
181
- ],
182
- tagHandle: [[/\![^ ]*/, "tag"]],
183
- anchor: [[/[&*][^ ]+/, "namespace"]]
184
- }
185
- };
186
- export {
187
- k as conf,
188
- S as language
189
- };