@camunda/copilot-chat 0.4.2 → 0.4.3

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 (222) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +5424 -28
  3. package/dist/package.json +4 -2
  4. package/package.json +4 -2
  5. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts +0 -19
  6. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts.map +0 -1
  7. package/dist/ConversationHistoryPanel/ConversationHistoryRow.d.ts +0 -14
  8. package/dist/ConversationHistoryPanel/ConversationHistoryRow.d.ts.map +0 -1
  9. package/dist/ConversationHistoryPanel/index.d.ts +0 -2
  10. package/dist/ConversationHistoryPanel/index.d.ts.map +0 -1
  11. package/dist/CopilotChat.d.ts +0 -18
  12. package/dist/CopilotChat.d.ts.map +0 -1
  13. package/dist/CopilotSidecar.d.ts +0 -12
  14. package/dist/CopilotSidecar.d.ts.map +0 -1
  15. package/dist/apl-B2DGVGxc.mjs +0 -76
  16. package/dist/asciiarmor-2LVJmxlE.mjs +0 -34
  17. package/dist/asn1-jKiBa2Ya.mjs +0 -95
  18. package/dist/asterisk-DS281yxp.mjs +0 -271
  19. package/dist/clike-BMALKCNj.mjs +0 -620
  20. package/dist/clojure-CCKyeQKf.mjs +0 -800
  21. package/dist/cmake-CuaCgAKt.mjs +0 -28
  22. package/dist/cobol-BlTKFDRj.mjs +0 -72
  23. package/dist/codemirror-runtime-DN57DLqx.mjs +0 -14620
  24. package/dist/coffeescript-BVCvwO8I.mjs +0 -179
  25. package/dist/commonlisp-D_kxz07b.mjs +0 -75
  26. package/dist/crystal-D309uH6_.mjs +0 -217
  27. package/dist/css-BkF-NPzE.mjs +0 -1553
  28. package/dist/cypher-BMq4Fwjl.mjs +0 -68
  29. package/dist/d-BZcgY6La.mjs +0 -127
  30. package/dist/diff-Cg9d_RX2.mjs +0 -18
  31. package/dist/dockerfile-BmicwmnY.mjs +0 -194
  32. package/dist/dtd-CtLokQ-U.mjs +0 -84
  33. package/dist/dylan-QYeExnWK.mjs +0 -234
  34. package/dist/ebnf-DUPDuY4r.mjs +0 -78
  35. package/dist/ecl-CiXN-g_D.mjs +0 -121
  36. package/dist/eiffel-yQhjl4T1.mjs +0 -110
  37. package/dist/elm-CNT9vbN0.mjs +0 -108
  38. package/dist/erlang-CFOYdy9e.mjs +0 -487
  39. package/dist/factor-CYi8BYN3.mjs +0 -65
  40. package/dist/fcl-CPC2WYrI.mjs +0 -103
  41. package/dist/forth-BmxRyE9S.mjs +0 -60
  42. package/dist/fortran-9bvPyrOW.mjs +0 -442
  43. package/dist/gas-cpmYfFX2.mjs +0 -183
  44. package/dist/gherkin-CJuwpceU.mjs +0 -34
  45. package/dist/groovy-DZeT_VM-.mjs +0 -146
  46. package/dist/haskell-CxiO_7JL.mjs +0 -375
  47. package/dist/haxe-70NVW1pR.mjs +0 -359
  48. package/dist/hooks/index.d.ts +0 -7
  49. package/dist/hooks/index.d.ts.map +0 -1
  50. package/dist/hooks/useAgentAdapter.d.ts +0 -3
  51. package/dist/hooks/useAgentAdapter.d.ts.map +0 -1
  52. package/dist/hooks/useConversationLifecycle.d.ts +0 -16
  53. package/dist/hooks/useConversationLifecycle.d.ts.map +0 -1
  54. package/dist/hooks/useCopilotSidecar.d.ts +0 -6
  55. package/dist/hooks/useCopilotSidecar.d.ts.map +0 -1
  56. package/dist/hooks/useEventProcessing.d.ts +0 -26
  57. package/dist/hooks/useEventProcessing.d.ts.map +0 -1
  58. package/dist/hooks/useToolExecution.d.ts +0 -11
  59. package/dist/hooks/useToolExecution.d.ts.map +0 -1
  60. package/dist/hooks/useTransportSubscription.d.ts +0 -6
  61. package/dist/hooks/useTransportSubscription.d.ts.map +0 -1
  62. package/dist/http-D9LttvKF.mjs +0 -44
  63. package/dist/idl-B6TRFYjl.mjs +0 -947
  64. package/dist/index-61nyxvLt.mjs +0 -138
  65. package/dist/index-9DDv9i4k.mjs +0 -555
  66. package/dist/index-9LzGM3Tf.mjs +0 -101
  67. package/dist/index-B68tiRpB.mjs +0 -342
  68. package/dist/index-BFfuxTl0.mjs +0 -248
  69. package/dist/index-BN1g2LCp.mjs +0 -270
  70. package/dist/index-BZylef8t.mjs +0 -612
  71. package/dist/index-BsJOd3yN.mjs +0 -253
  72. package/dist/index-BvOoeB_X.mjs +0 -310
  73. package/dist/index-C2BPUXNG.mjs +0 -946
  74. package/dist/index-CNSMHaJL.mjs +0 -302
  75. package/dist/index-CWVsn7Ik.mjs +0 -1918
  76. package/dist/index-CYJusi0T.mjs +0 -565
  77. package/dist/index-CYMOKrFz.mjs +0 -157
  78. package/dist/index-Cu_bl2ol.mjs +0 -1307
  79. package/dist/index-Ddm1PyM_.mjs +0 -289
  80. package/dist/index-DfGa1EZ6.mjs +0 -960
  81. package/dist/index-FIfj5vEl.mjs +0 -94
  82. package/dist/index-K8lyX8F9.mjs +0 -76
  83. package/dist/index-TBOAg0OP.mjs +0 -21326
  84. package/dist/index-bxhTUN49.mjs +0 -74
  85. package/dist/index-mqjp_-mu.mjs +0 -59
  86. package/dist/index-snW0nLB3.mjs +0 -136
  87. package/dist/index.d.ts +0 -20
  88. package/dist/index.d.ts.map +0 -1
  89. package/dist/javascript-DOuB9oqA.mjs +0 -691
  90. package/dist/julia-DpvXAuO6.mjs +0 -241
  91. package/dist/layout/attachSidecarLayout.d.ts +0 -4
  92. package/dist/layout/attachSidecarLayout.d.ts.map +0 -1
  93. package/dist/layout/index.d.ts +0 -2
  94. package/dist/layout/index.d.ts.map +0 -1
  95. package/dist/layout/sidecarDom.d.ts +0 -10
  96. package/dist/layout/sidecarDom.d.ts.map +0 -1
  97. package/dist/layout/sidecarMediaQuery.d.ts +0 -3
  98. package/dist/layout/sidecarMediaQuery.d.ts.map +0 -1
  99. package/dist/layout/sidecarState.d.ts +0 -29
  100. package/dist/layout/sidecarState.d.ts.map +0 -1
  101. package/dist/layout/sidecarTypes.d.ts +0 -14
  102. package/dist/layout/sidecarTypes.d.ts.map +0 -1
  103. package/dist/livescript-CanGTf8u.mjs +0 -272
  104. package/dist/lua-XplVlWi_.mjs +0 -217
  105. package/dist/mathematica-jaRHnSxC.mjs +0 -35
  106. package/dist/mbox-BctzC1hL.mjs +0 -76
  107. package/dist/mirc-CFBPAOaF.mjs +0 -72
  108. package/dist/mllike-BSnXJBGA.mjs +0 -272
  109. package/dist/modelica-vUgVs--1.mjs +0 -93
  110. package/dist/mscgen-Cpl0NYLN.mjs +0 -104
  111. package/dist/mumps-CQoS1kWX.mjs +0 -25
  112. package/dist/nginx-zDPm3Z74.mjs +0 -89
  113. package/dist/nsis-DYWPgAyk.mjs +0 -62
  114. package/dist/ntriples-CsNjv2QF.mjs +0 -79
  115. package/dist/octave-C8PmmSRH.mjs +0 -143
  116. package/dist/oz-Ce8aN8oE.mjs +0 -151
  117. package/dist/pascal-De0D6mP7.mjs +0 -77
  118. package/dist/perl-B4bSCe1C.mjs +0 -915
  119. package/dist/pig-D24Z8EXi.mjs +0 -54
  120. package/dist/powershell-DkYVfTzP.mjs +0 -249
  121. package/dist/properties-Dn9wna3M.mjs +0 -26
  122. package/dist/protobuf-BPIjwpzm.mjs +0 -49
  123. package/dist/pug-Bz8aeT0D.mjs +0 -248
  124. package/dist/puppet-nyd4dhjf.mjs +0 -45
  125. package/dist/python-BkR3uSy8.mjs +0 -313
  126. package/dist/q-DyHZGnqm.mjs +0 -86
  127. package/dist/r-LKEuhEGI.mjs +0 -104
  128. package/dist/registry/index.d.ts +0 -2
  129. package/dist/registry/index.d.ts.map +0 -1
  130. package/dist/registry/toolDefinitions.d.ts +0 -10
  131. package/dist/registry/toolDefinitions.d.ts.map +0 -1
  132. package/dist/registry/toolRegistry.d.ts +0 -29
  133. package/dist/registry/toolRegistry.d.ts.map +0 -1
  134. package/dist/rpm-IznJm2Xc.mjs +0 -57
  135. package/dist/ruby-CcYfvIk6.mjs +0 -228
  136. package/dist/sas-7E8yHoCW.mjs +0 -105
  137. package/dist/scheme-DjibxsNh.mjs +0 -124
  138. package/dist/shell-C0C2sNA_.mjs +0 -182
  139. package/dist/sidecar-api.d.ts +0 -5
  140. package/dist/sidecar-api.d.ts.map +0 -1
  141. package/dist/sieve-Bwz7vjP5.mjs +0 -72
  142. package/dist/simple-mode-mNVtnu0l.mjs +0 -89
  143. package/dist/smalltalk-Bhddl2pB.mjs +0 -48
  144. package/dist/solr-BNlsLglM.mjs +0 -41
  145. package/dist/sparql-FarWu_Gb.mjs +0 -197
  146. package/dist/spreadsheet-C-cy4P5N.mjs +0 -49
  147. package/dist/sql-CfG5lQ3l.mjs +0 -282
  148. package/dist/stex-Du4h4KAU.mjs +0 -129
  149. package/dist/store/agentStore.d.ts +0 -27
  150. package/dist/store/agentStore.d.ts.map +0 -1
  151. package/dist/store/agentStoreEventProcessor.d.ts +0 -21
  152. package/dist/store/agentStoreEventProcessor.d.ts.map +0 -1
  153. package/dist/store/chatStore.d.ts +0 -36
  154. package/dist/store/chatStore.d.ts.map +0 -1
  155. package/dist/store/historyStore.d.ts +0 -25
  156. package/dist/store/historyStore.d.ts.map +0 -1
  157. package/dist/store/index.d.ts +0 -5
  158. package/dist/store/index.d.ts.map +0 -1
  159. package/dist/store/sidecarStore.d.ts +0 -9
  160. package/dist/store/sidecarStore.d.ts.map +0 -1
  161. package/dist/styles/ensureSidecarStyles.d.ts +0 -2
  162. package/dist/styles/ensureSidecarStyles.d.ts.map +0 -1
  163. package/dist/stylus-CAdqWld3.mjs +0 -250
  164. package/dist/swift-DSxqR9R6.mjs +0 -230
  165. package/dist/sync-ottB0RsS.mjs +0 -1251
  166. package/dist/table-runtime-eW_FiMnH.mjs +0 -3606
  167. package/dist/tcl-xfoLljhY.mjs +0 -81
  168. package/dist/test-setup.d.ts +0 -1
  169. package/dist/test-setup.d.ts.map +0 -1
  170. package/dist/textile-D1AWE-pc.mjs +0 -295
  171. package/dist/tiddlywiki-5wqsXtSk.mjs +0 -155
  172. package/dist/tiki-__Kn3CeS.mjs +0 -181
  173. package/dist/toml-DWAmxCjl.mjs +0 -58
  174. package/dist/tools/kapaAi/KapaSearchBridge.d.ts +0 -7
  175. package/dist/tools/kapaAi/KapaSearchBridge.d.ts.map +0 -1
  176. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts +0 -35
  177. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts.map +0 -1
  178. package/dist/tools/kapaAi/kapaSearchTool.d.ts +0 -24
  179. package/dist/tools/kapaAi/kapaSearchTool.d.ts.map +0 -1
  180. package/dist/troff-D2UO-fKf.mjs +0 -35
  181. package/dist/ttcn-Bsa4sfRm.mjs +0 -123
  182. package/dist/ttcn-cfg-Bac_acMi.mjs +0 -88
  183. package/dist/turtle-xwJUxoPV.mjs +0 -80
  184. package/dist/types/agentTypes.d.ts +0 -11
  185. package/dist/types/agentTypes.d.ts.map +0 -1
  186. package/dist/types/chatTypes.d.ts +0 -45
  187. package/dist/types/chatTypes.d.ts.map +0 -1
  188. package/dist/types/eventTypes.d.ts +0 -28
  189. package/dist/types/eventTypes.d.ts.map +0 -1
  190. package/dist/types/historyTypes.d.ts +0 -34
  191. package/dist/types/historyTypes.d.ts.map +0 -1
  192. package/dist/types/index.d.ts +0 -5
  193. package/dist/types/index.d.ts.map +0 -1
  194. package/dist/types/toolTypes.d.ts +0 -51
  195. package/dist/types/toolTypes.d.ts.map +0 -1
  196. package/dist/types/transportTypes.d.ts +0 -49
  197. package/dist/types/transportTypes.d.ts.map +0 -1
  198. package/dist/utils/eventHandlers.d.ts +0 -34
  199. package/dist/utils/eventHandlers.d.ts.map +0 -1
  200. package/dist/utils/eventPredicates.d.ts +0 -10
  201. package/dist/utils/eventPredicates.d.ts.map +0 -1
  202. package/dist/utils/index.d.ts +0 -7
  203. package/dist/utils/index.d.ts.map +0 -1
  204. package/dist/utils/mapConversationMessages.d.ts +0 -12
  205. package/dist/utils/mapConversationMessages.d.ts.map +0 -1
  206. package/dist/utils/parseToolArguments.d.ts +0 -6
  207. package/dist/utils/parseToolArguments.d.ts.map +0 -1
  208. package/dist/utils/statusLabels.d.ts +0 -3
  209. package/dist/utils/statusLabels.d.ts.map +0 -1
  210. package/dist/utils/thinkingBlockUtils.d.ts +0 -18
  211. package/dist/utils/thinkingBlockUtils.d.ts.map +0 -1
  212. package/dist/utils/toolResultFormatter.d.ts +0 -6
  213. package/dist/utils/toolResultFormatter.d.ts.map +0 -1
  214. package/dist/vb-c2kQGd6-.mjs +0 -74
  215. package/dist/vbscript-1f_Dhg5H.mjs +0 -324
  216. package/dist/velocity-DJd0pTTC.mjs +0 -96
  217. package/dist/verilog-CiS1jyi5.mjs +0 -262
  218. package/dist/vhdl-T9HkrbI2.mjs +0 -106
  219. package/dist/webidl-CjfDENEo.mjs +0 -155
  220. package/dist/xquery-Ct6lEb4B.mjs +0 -422
  221. package/dist/yacas-C0absKBh.mjs +0 -73
  222. package/dist/z80-Pki2zAjW.mjs +0 -61
@@ -1,234 +0,0 @@
1
- function p(e, i) {
2
- for (var n = 0; n < e.length; n++) i(e[n], n);
3
- }
4
- function x(e, i) {
5
- for (var n = 0; n < e.length; n++) if (i(e[n], n)) return !0;
6
- return !1;
7
- }
8
- var t = {
9
- // Words that introduce unnamed definitions like "define interface"
10
- unnamedDefinition: ["interface"],
11
- // Words that introduce simple named definitions like "define library"
12
- namedDefinition: [
13
- "module",
14
- "library",
15
- "macro",
16
- "C-struct",
17
- "C-union",
18
- "C-function",
19
- "C-callable-wrapper"
20
- ],
21
- // Words that introduce type definitions like "define class".
22
- // These are also parameterized like "define method" and are
23
- // appended to otherParameterizedDefinitionWords
24
- typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"],
25
- // Words that introduce trickier definitions like "define method".
26
- // These require special definitions to be added to startExpressions
27
- otherParameterizedDefinition: [
28
- "method",
29
- "function",
30
- "C-variable",
31
- "C-address"
32
- ],
33
- // Words that introduce module constant definitions.
34
- // These must also be simple definitions and are
35
- // appended to otherSimpleDefinitionWords
36
- constantSimpleDefinition: ["constant"],
37
- // Words that introduce module variable definitions.
38
- // These must also be simple definitions and are
39
- // appended to otherSimpleDefinitionWords
40
- variableSimpleDefinition: ["variable"],
41
- // Other words that introduce simple definitions
42
- // (without implicit bodies).
43
- otherSimpleDefinition: [
44
- "generic",
45
- "domain",
46
- "C-pointer-type",
47
- "table"
48
- ],
49
- // Words that begin statements with implicit bodies.
50
- statement: [
51
- "if",
52
- "block",
53
- "begin",
54
- "method",
55
- "case",
56
- "for",
57
- "select",
58
- "when",
59
- "unless",
60
- "until",
61
- "while",
62
- "iterate",
63
- "profiling",
64
- "dynamic-bind"
65
- ],
66
- // Patterns that act as separators in compound statements.
67
- // This may include any general pattern that must be indented
68
- // specially.
69
- separator: [
70
- "finally",
71
- "exception",
72
- "cleanup",
73
- "else",
74
- "elseif",
75
- "afterwards"
76
- ],
77
- // Keywords that do not require special indentation handling,
78
- // but which should be highlighted
79
- other: [
80
- "above",
81
- "below",
82
- "by",
83
- "from",
84
- "handler",
85
- "in",
86
- "instance",
87
- "let",
88
- "local",
89
- "otherwise",
90
- "slot",
91
- "subclass",
92
- "then",
93
- "to",
94
- "keyed-by",
95
- "virtual"
96
- ],
97
- // Condition signaling function calls
98
- signalingCalls: [
99
- "signal",
100
- "error",
101
- "cerror",
102
- "break",
103
- "check-type",
104
- "abort"
105
- ]
106
- };
107
- t.otherDefinition = t.unnamedDefinition.concat(t.namedDefinition).concat(t.otherParameterizedDefinition);
108
- t.definition = t.typeParameterizedDefinition.concat(t.otherDefinition);
109
- t.parameterizedDefinition = t.typeParameterizedDefinition.concat(t.otherParameterizedDefinition);
110
- t.simpleDefinition = t.constantSimpleDefinition.concat(t.variableSimpleDefinition).concat(t.otherSimpleDefinition);
111
- t.keyword = t.statement.concat(t.separator).concat(t.other);
112
- var f = "[-_a-zA-Z?!*@<>$%]+", v = new RegExp("^" + f), a = {
113
- // Symbols with special syntax
114
- symbolKeyword: f + ":",
115
- symbolClass: "<" + f + ">",
116
- symbolGlobal: "\\*" + f + "\\*",
117
- symbolConstant: "\\$" + f
118
- }, w = {
119
- symbolKeyword: "atom",
120
- symbolClass: "tag",
121
- symbolGlobal: "variableName.standard",
122
- symbolConstant: "variableName.constant"
123
- };
124
- for (var c in a)
125
- a.hasOwnProperty(c) && (a[c] = new RegExp("^" + a[c]));
126
- a.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
127
- var u = {};
128
- u.keyword = "keyword";
129
- u.definition = "def";
130
- u.simpleDefinition = "def";
131
- u.signalingCalls = "builtin";
132
- var y = {}, k = {};
133
- p([
134
- "keyword",
135
- "definition",
136
- "simpleDefinition",
137
- "signalingCalls"
138
- ], function(e) {
139
- p(t[e], function(i) {
140
- y[i] = e, k[i] = u[e];
141
- });
142
- });
143
- function d(e, i, n) {
144
- return i.tokenize = n, n(e, i);
145
- }
146
- function s(e, i) {
147
- var n = e.peek();
148
- if (n == "'" || n == '"')
149
- return e.next(), d(e, i, h(n, "string"));
150
- if (n == "/") {
151
- if (e.next(), e.eat("*"))
152
- return d(e, i, D);
153
- if (e.eat("/"))
154
- return e.skipToEnd(), "comment";
155
- e.backUp(1);
156
- } else if (/[+\-\d\.]/.test(n)) {
157
- if (e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || e.match(/^[+-]?\d+/))
158
- return "number";
159
- } else {
160
- if (n == "#")
161
- return e.next(), n = e.peek(), n == '"' ? (e.next(), d(e, i, h('"', "string"))) : n == "b" ? (e.next(), e.eatWhile(/[01]/), "number") : n == "x" ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : n == "o" ? (e.next(), e.eatWhile(/[0-7]/), "number") : n == "#" ? (e.next(), "punctuation") : n == "[" || n == "(" ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error");
162
- if (n == "~")
163
- return e.next(), n = e.peek(), n == "=" ? (e.next(), n = e.peek(), n == "=" && e.next(), "operator") : "operator";
164
- if (n == ":") {
165
- if (e.next(), n = e.peek(), n == "=")
166
- return e.next(), "operator";
167
- if (n == ":")
168
- return e.next(), "punctuation";
169
- } else {
170
- if ("[](){}".indexOf(n) != -1)
171
- return e.next(), "bracket";
172
- if (".,".indexOf(n) != -1)
173
- return e.next(), "punctuation";
174
- if (e.match("end"))
175
- return "keyword";
176
- }
177
- }
178
- for (var l in a)
179
- if (a.hasOwnProperty(l)) {
180
- var r = a[l];
181
- if (r instanceof Array && x(r, function(o) {
182
- return e.match(o);
183
- }) || e.match(r))
184
- return w[l];
185
- }
186
- return /[+\-*\/^=<>&|]/.test(n) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), y.hasOwnProperty(e.current()) ? k[e.current()] : e.current().match(v) ? "variable" : (e.next(), "variableName.standard"));
187
- }
188
- function D(e, i) {
189
- for (var n = !1, l = !1, r = 0, o; o = e.next(); ) {
190
- if (o == "/" && n)
191
- if (r > 0)
192
- r--;
193
- else {
194
- i.tokenize = s;
195
- break;
196
- }
197
- else o == "*" && l && r++;
198
- n = o == "*", l = o == "/";
199
- }
200
- return "comment";
201
- }
202
- function h(e, i) {
203
- return function(n, l) {
204
- for (var r = !1, o, b = !1; (o = n.next()) != null; ) {
205
- if (o == e && !r) {
206
- b = !0;
207
- break;
208
- }
209
- r = !r && o == "\\";
210
- }
211
- return (b || !r) && (l.tokenize = s), i;
212
- };
213
- }
214
- const g = {
215
- name: "dylan",
216
- startState: function() {
217
- return {
218
- tokenize: s,
219
- currentIndent: 0
220
- };
221
- },
222
- token: function(e, i) {
223
- if (e.eatSpace())
224
- return null;
225
- var n = i.tokenize(e, i);
226
- return n;
227
- },
228
- languageData: {
229
- commentTokens: { block: { open: "/*", close: "*/" } }
230
- }
231
- };
232
- export {
233
- g as dylan
234
- };
@@ -1,78 +0,0 @@
1
- var i = { slash: 0, parenthesis: 1 }, n = { comment: 0, _string: 1, characterClass: 2 };
2
- const l = {
3
- name: "ebnf",
4
- startState: function() {
5
- return {
6
- stringType: null,
7
- commentType: null,
8
- braced: 0,
9
- lhs: !0,
10
- localState: null,
11
- stack: [],
12
- inDefinition: !1
13
- };
14
- },
15
- token: function(e, c) {
16
- if (e) {
17
- switch (c.stack.length === 0 && (e.peek() == '"' || e.peek() == "'" ? (c.stringType = e.peek(), e.next(), c.stack.unshift(n._string)) : e.match("/*") ? (c.stack.unshift(n.comment), c.commentType = i.slash) : e.match("(*") && (c.stack.unshift(n.comment), c.commentType = i.parenthesis)), c.stack[0]) {
18
- case n._string:
19
- for (; c.stack[0] === n._string && !e.eol(); )
20
- e.peek() === c.stringType ? (e.next(), c.stack.shift()) : e.peek() === "\\" ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
21
- return c.lhs ? "property" : "string";
22
- // Token style
23
- case n.comment:
24
- for (; c.stack[0] === n.comment && !e.eol(); )
25
- c.commentType === i.slash && e.match("*/") || c.commentType === i.parenthesis && e.match("*)") ? (c.stack.shift(), c.commentType = null) : e.match(/^.[^\*]*/);
26
- return "comment";
27
- case n.characterClass:
28
- for (; c.stack[0] === n.characterClass && !e.eol(); )
29
- e.match(/^[^\]\\]+/) || e.match(".") || c.stack.shift();
30
- return "operator";
31
- }
32
- var t = e.peek();
33
- switch (t) {
34
- case "[":
35
- return e.next(), c.stack.unshift(n.characterClass), "bracket";
36
- case ":":
37
- case "|":
38
- case ";":
39
- return e.next(), "operator";
40
- case "%":
41
- if (e.match("%%"))
42
- return "header";
43
- if (e.match(/[%][A-Za-z]+/))
44
- return "keyword";
45
- if (e.match(/[%][}]/))
46
- return "bracket";
47
- break;
48
- case "/":
49
- if (e.match(/[\/][A-Za-z]+/))
50
- return "keyword";
51
- case "\\":
52
- if (e.match(/[\][a-z]+/))
53
- return "string.special";
54
- case ".":
55
- if (e.match("."))
56
- return "atom";
57
- case "*":
58
- case "-":
59
- case "+":
60
- case "^":
61
- if (e.match(t))
62
- return "atom";
63
- case "$":
64
- if (e.match("$$"))
65
- return "builtin";
66
- if (e.match(/[$][0-9]+/))
67
- return "variableName.special";
68
- case "<":
69
- if (e.match(/<<[a-zA-Z_]+>>/))
70
- return "builtin";
71
- }
72
- return e.match("//") ? (e.skipToEnd(), "comment") : e.match("return") ? "operator" : e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) ? e.match(/(?=[\(.])/) ? "variable" : e.match(/(?=[\s\n]*[:=])/) ? "def" : "variableName.special" : ["[", "]", "(", ")"].indexOf(e.peek()) != -1 ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null);
73
- }
74
- }
75
- };
76
- export {
77
- l as ebnf
78
- };
@@ -1,121 +0,0 @@
1
- function l(e) {
2
- for (var n = {}, t = e.split(" "), r = 0; r < t.length; ++r) n[t[r]] = !0;
3
- return n;
4
- }
5
- function b(e, n) {
6
- return n.startOfLine ? (e.skipToEnd(), "meta") : !1;
7
- }
8
- var g = l("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"), w = l("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"), x = l("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"), f = l("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"), k = l("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"), s = l("catch class do else finally for if switch try while"), E = l("true false null"), m = { "#": b }, h = /[+\-*&%=<>!?|\/]/, o;
9
- function p(e, n) {
10
- var t = e.next();
11
- if (m[t]) {
12
- var r = m[t](e, n);
13
- if (r !== !1) return r;
14
- }
15
- if (t == '"' || t == "'")
16
- return n.tokenize = I(t), n.tokenize(e, n);
17
- if (/[\[\]{}\(\),;\:\.]/.test(t))
18
- return o = t, null;
19
- if (/\d/.test(t))
20
- return e.eatWhile(/[\w\.]/), "number";
21
- if (t == "/") {
22
- if (e.eat("*"))
23
- return n.tokenize = y, y(e, n);
24
- if (e.eat("/"))
25
- return e.skipToEnd(), "comment";
26
- }
27
- if (h.test(t))
28
- return e.eatWhile(h), "operator";
29
- e.eatWhile(/[\w\$_]/);
30
- var i = e.current().toLowerCase();
31
- if (g.propertyIsEnumerable(i))
32
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "keyword";
33
- if (w.propertyIsEnumerable(i))
34
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "variable";
35
- if (x.propertyIsEnumerable(i))
36
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "modifier";
37
- if (f.propertyIsEnumerable(i))
38
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "type";
39
- if (k.propertyIsEnumerable(i))
40
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "builtin";
41
- for (var a = i.length - 1; a >= 0 && (!isNaN(i[a]) || i[a] == "_"); )
42
- --a;
43
- if (a > 0) {
44
- var d = i.substr(0, a + 1);
45
- if (f.propertyIsEnumerable(d))
46
- return s.propertyIsEnumerable(d) && (o = "newstatement"), "type";
47
- }
48
- return E.propertyIsEnumerable(i) ? "atom" : null;
49
- }
50
- function I(e) {
51
- return function(n, t) {
52
- for (var r = !1, i, a = !1; (i = n.next()) != null; ) {
53
- if (i == e && !r) {
54
- a = !0;
55
- break;
56
- }
57
- r = !r && i == "\\";
58
- }
59
- return (a || !r) && (t.tokenize = p), "string";
60
- };
61
- }
62
- function y(e, n) {
63
- for (var t = !1, r; r = e.next(); ) {
64
- if (r == "/" && t) {
65
- n.tokenize = p;
66
- break;
67
- }
68
- t = r == "*";
69
- }
70
- return "comment";
71
- }
72
- function v(e, n, t, r, i) {
73
- this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = i;
74
- }
75
- function c(e, n, t) {
76
- return e.context = new v(e.indented, n, t, null, e.context);
77
- }
78
- function u(e) {
79
- var n = e.context.type;
80
- return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
81
- }
82
- const z = {
83
- name: "ecl",
84
- startState: function(e) {
85
- return {
86
- tokenize: null,
87
- context: new v(-e, 0, "top", !1),
88
- indented: 0,
89
- startOfLine: !0
90
- };
91
- },
92
- token: function(e, n) {
93
- var t = n.context;
94
- if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace()) return null;
95
- o = null;
96
- var r = (n.tokenize || p)(e, n);
97
- if (r == "comment" || r == "meta") return r;
98
- if (t.align == null && (t.align = !0), (o == ";" || o == ":") && t.type == "statement") u(n);
99
- else if (o == "{") c(n, e.column(), "}");
100
- else if (o == "[") c(n, e.column(), "]");
101
- else if (o == "(") c(n, e.column(), ")");
102
- else if (o == "}") {
103
- for (; t.type == "statement"; ) t = u(n);
104
- for (t.type == "}" && (t = u(n)); t.type == "statement"; ) t = u(n);
105
- } else o == t.type ? u(n) : (t.type == "}" || t.type == "top" || t.type == "statement" && o == "newstatement") && c(n, e.column(), "statement");
106
- return n.startOfLine = !1, r;
107
- },
108
- indent: function(e, n, t) {
109
- if (e.tokenize != p && e.tokenize != null) return 0;
110
- var r = e.context, i = n && n.charAt(0);
111
- r.type == "statement" && i == "}" && (r = r.prev);
112
- var a = i == r.type;
113
- return r.type == "statement" ? r.indented + (i == "{" ? 0 : t.unit) : r.align ? r.column + (a ? 0 : 1) : r.indented + (a ? 0 : t.unit);
114
- },
115
- languageData: {
116
- indentOnInput: /^\s*[{}]$/
117
- }
118
- };
119
- export {
120
- z as ecl
121
- };
@@ -1,110 +0,0 @@
1
- function u(e) {
2
- for (var r = {}, n = 0, t = e.length; n < t; ++n) r[e[n]] = !0;
3
- return r;
4
- }
5
- var l = u([
6
- "note",
7
- "across",
8
- "when",
9
- "variant",
10
- "until",
11
- "unique",
12
- "undefine",
13
- "then",
14
- "strip",
15
- "select",
16
- "retry",
17
- "rescue",
18
- "require",
19
- "rename",
20
- "reference",
21
- "redefine",
22
- "prefix",
23
- "once",
24
- "old",
25
- "obsolete",
26
- "loop",
27
- "local",
28
- "like",
29
- "is",
30
- "inspect",
31
- "infix",
32
- "include",
33
- "if",
34
- "frozen",
35
- "from",
36
- "external",
37
- "export",
38
- "ensure",
39
- "end",
40
- "elseif",
41
- "else",
42
- "do",
43
- "creation",
44
- "create",
45
- "check",
46
- "alias",
47
- "agent",
48
- "separate",
49
- "invariant",
50
- "inherit",
51
- "indexing",
52
- "feature",
53
- "expanded",
54
- "deferred",
55
- "class",
56
- "Void",
57
- "True",
58
- "Result",
59
- "Precursor",
60
- "False",
61
- "Current",
62
- "create",
63
- "attached",
64
- "detachable",
65
- "as",
66
- "and",
67
- "implies",
68
- "not",
69
- "or"
70
- ]), c = u([":=", "and then", "and", "or", "<<", ">>"]);
71
- function f(e, r, n) {
72
- return n.tokenize.push(e), e(r, n);
73
- }
74
- function s(e, r) {
75
- if (e.eatSpace()) return null;
76
- var n = e.next();
77
- return n == '"' || n == "'" ? f(p(n, "string"), e, r) : n == "-" && e.eat("-") ? (e.skipToEnd(), "comment") : n == ":" && e.eat("=") ? "operator" : /[0-9]/.test(n) ? (e.eatWhile(/[xXbBCc0-9\.]/), e.eat(/[\?\!]/), "variable") : /[a-zA-Z_0-9]/.test(n) ? (e.eatWhile(/[a-zA-Z_0-9]/), e.eat(/[\?\!]/), "variable") : /[=+\-\/*^%<>~]/.test(n) ? (e.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null;
78
- }
79
- function p(e, r, n) {
80
- return function(t, o) {
81
- for (var a = !1, i; (i = t.next()) != null; ) {
82
- if (i == e && !a) {
83
- o.tokenize.pop();
84
- break;
85
- }
86
- a = !a && i == "%";
87
- }
88
- return r;
89
- };
90
- }
91
- const d = {
92
- name: "eiffel",
93
- startState: function() {
94
- return { tokenize: [s] };
95
- },
96
- token: function(e, r) {
97
- var n = r.tokenize[r.tokenize.length - 1](e, r);
98
- if (n == "variable") {
99
- var t = e.current();
100
- n = l.propertyIsEnumerable(e.current()) ? "keyword" : c.propertyIsEnumerable(e.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(t) ? "tag" : /^0[bB][0-1]+$/g.test(t) || /^0[cC][0-7]+$/g.test(t) || /^0[xX][a-fA-F0-9]+$/g.test(t) || /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(t) || /^[0-9]+$/g.test(t) ? "number" : "variable";
101
- }
102
- return n;
103
- },
104
- languageData: {
105
- commentTokens: { line: "--" }
106
- }
107
- };
108
- export {
109
- d as eiffel
110
- };
@@ -1,108 +0,0 @@
1
- function a(n, t, i) {
2
- return t(i), i(n, t);
3
- }
4
- var v = /[a-z]/, g = /[A-Z]/, l = /[a-zA-Z0-9_]/, f = /[0-9]/, o = /[0-9A-Fa-f]/, p = /[-&*+.\\/<>=?^|:]/, w = /[(),[\]{}]/, x = /[ \v\f]/;
5
- function r() {
6
- return function(n, t) {
7
- if (n.eatWhile(x))
8
- return null;
9
- var i = n.next();
10
- if (w.test(i))
11
- return i === "{" && n.eat("-") ? a(n, t, h(1)) : i === "[" && n.match("glsl|") ? a(n, t, u) : "builtin";
12
- if (i === "'")
13
- return a(n, t, d);
14
- if (i === '"')
15
- return n.eat('"') ? n.eat('"') ? a(n, t, k) : "string" : a(n, t, E);
16
- if (g.test(i))
17
- return n.eatWhile(l), "type";
18
- if (v.test(i)) {
19
- var e = n.pos === 1;
20
- return n.eatWhile(l), e ? "def" : "variable";
21
- }
22
- if (f.test(i)) {
23
- if (i === "0") {
24
- if (n.eat(/[xX]/))
25
- return n.eatWhile(o), "number";
26
- } else
27
- n.eatWhile(f);
28
- return n.eat(".") && n.eatWhile(f), n.eat(/[eE]/) && (n.eat(/[-+]/), n.eatWhile(f)), "number";
29
- }
30
- return p.test(i) ? i === "-" && n.eat("-") ? (n.skipToEnd(), "comment") : (n.eatWhile(p), "keyword") : i === "_" ? "keyword" : "error";
31
- };
32
- }
33
- function h(n) {
34
- return n == 0 ? r() : function(t, i) {
35
- for (; !t.eol(); ) {
36
- var e = t.next();
37
- if (e == "{" && t.eat("-"))
38
- ++n;
39
- else if (e == "-" && t.eat("}") && (--n, n === 0))
40
- return i(r()), "comment";
41
- }
42
- return i(h(n)), "comment";
43
- };
44
- }
45
- function k(n, t) {
46
- for (; !n.eol(); ) {
47
- var i = n.next();
48
- if (i === '"' && n.eat('"') && n.eat('"'))
49
- return t(r()), "string";
50
- }
51
- return "string";
52
- }
53
- function E(n, t) {
54
- for (; n.skipTo('\\"'); )
55
- n.next(), n.next();
56
- return n.skipTo('"') ? (n.next(), t(r()), "string") : (n.skipToEnd(), t(r()), "error");
57
- }
58
- function d(n, t) {
59
- for (; n.skipTo("\\'"); )
60
- n.next(), n.next();
61
- return n.skipTo("'") ? (n.next(), t(r()), "string") : (n.skipToEnd(), t(r()), "error");
62
- }
63
- function u(n, t) {
64
- for (; !n.eol(); ) {
65
- var i = n.next();
66
- if (i === "|" && n.eat("]"))
67
- return t(r()), "string";
68
- }
69
- return "string";
70
- }
71
- var y = {
72
- case: 1,
73
- of: 1,
74
- as: 1,
75
- if: 1,
76
- then: 1,
77
- else: 1,
78
- let: 1,
79
- in: 1,
80
- type: 1,
81
- alias: 1,
82
- module: 1,
83
- where: 1,
84
- import: 1,
85
- exposing: 1,
86
- port: 1
87
- };
88
- const W = {
89
- name: "elm",
90
- startState: function() {
91
- return { f: r() };
92
- },
93
- copyState: function(n) {
94
- return { f: n.f };
95
- },
96
- token: function(n, t) {
97
- var i = t.f(n, function(m) {
98
- t.f = m;
99
- }), e = n.current();
100
- return y.hasOwnProperty(e) ? "keyword" : i;
101
- },
102
- languageData: {
103
- commentTokens: { line: "--" }
104
- }
105
- };
106
- export {
107
- W as elm
108
- };