@airalogy/aimd-recorder 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +240 -0
  2. package/README.zh-CN.md +224 -0
  3. package/dist/AimdCodeField-DC3DPvgc.js +172 -0
  4. package/dist/AimdDnaSequenceField-__jdnFS9.js +59466 -0
  5. package/dist/AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js +28370 -0
  6. package/dist/AimdMarkdownField-98ImHGbc.js +66 -0
  7. package/dist/AimdMarkdownNoteField-CuUJZkgT.js +185 -0
  8. package/dist/_.contribution-IP0cDNhs.js +38 -0
  9. package/dist/_commonjsHelpers-CZXJ37nu.js +40 -0
  10. package/dist/abap-Bs8kvjsq.js +1398 -0
  11. package/dist/aimd-recorder.css +1 -0
  12. package/dist/apex-Dspwrl5m.js +326 -0
  13. package/dist/assets/css.worker-Dmf38jDD.js +79 -0
  14. package/dist/assets/editor.worker-CpuX8TSY.js +12 -0
  15. package/dist/assets/html.worker-DotaEs7v.js +456 -0
  16. package/dist/assets/json.worker-B4VHhH6h.js +44 -0
  17. package/dist/assets/ts.worker-sl17zBDo.js +51316 -0
  18. package/dist/azcli-k1BiOau1.js +68 -0
  19. package/dist/bat-BIP72KWc.js +100 -0
  20. package/dist/bicep-VhQeYhS3.js +102 -0
  21. package/dist/cameligo-DnuAXtHg.js +174 -0
  22. package/dist/clojure-BAuDPsal.js +761 -0
  23. package/dist/coffee-BV06qSnj.js +232 -0
  24. package/dist/components.js +3595 -0
  25. package/dist/composables.js +72 -0
  26. package/dist/cpp-Cz8Jeyrf.js +389 -0
  27. package/dist/csharp-F6hhlXFb.js +326 -0
  28. package/dist/csp-KzlEHCyI.js +53 -0
  29. package/dist/css-e4FKntZ3.js +187 -0
  30. package/dist/cssMode-uz9U6SUU.js +1571 -0
  31. package/dist/cypher-CpvDGKRr.js +263 -0
  32. package/dist/dart-DdHeFWR0.js +281 -0
  33. package/dist/dockerfile-aoNXDcio.js +130 -0
  34. package/dist/ecl-C4Q0DYuA.js +456 -0
  35. package/dist/editor.api-CgD9w0gG.js +77091 -0
  36. package/dist/editor.main-Du02abDl.js +33783 -0
  37. package/dist/elixir-C9X42b0T.js +569 -0
  38. package/dist/flow9-Bff42pfB.js +142 -0
  39. package/dist/freemarker2-DFLX4iQ-.js +989 -0
  40. package/dist/fsharp-C6vPAsHG.js +217 -0
  41. package/dist/go-DEr8zx9f.js +218 -0
  42. package/dist/graphql-BiNBBRFh.js +151 -0
  43. package/dist/handlebars-aiZbIuWY.js +419 -0
  44. package/dist/hcl-2T9lKuFg.js +183 -0
  45. package/dist/html-phzTMObN.js +308 -0
  46. package/dist/htmlMode-BF7wMi3N.js +1581 -0
  47. package/dist/index.js +89 -0
  48. package/dist/ini-CZGtssYM.js +71 -0
  49. package/dist/ini.contribution-DyWtiacL.js +8 -0
  50. package/dist/java-B260NeH3.js +232 -0
  51. package/dist/javascript-BKKOItMi.js +70 -0
  52. package/dist/jsonMode-CDYK4B5l.js +1996 -0
  53. package/dist/julia-kuNLM9c5.js +511 -0
  54. package/dist/kotlin-Bz6kAefA.js +253 -0
  55. package/dist/less-AZUtS89I.js +162 -0
  56. package/dist/lexon-BcmgnyRb.js +157 -0
  57. package/dist/liquid-B2eRz5SA.js +240 -0
  58. package/dist/lua-Dz1RbATg.js +162 -0
  59. package/dist/m3-CIMooLFn.js +210 -0
  60. package/dist/markdown-C1BsCK9P.js +229 -0
  61. package/dist/markdown.contribution-DYYk6zUU.js +7 -0
  62. package/dist/mdx-BfV1HDRG.js +165 -0
  63. package/dist/mips-BovsnfLQ.js +198 -0
  64. package/dist/monaco.contribution-C-bQhUTI.js +114 -0
  65. package/dist/monaco.contribution-CCVvl3Jx.js +72 -0
  66. package/dist/monaco.contribution-Col-f0XR.js +164 -0
  67. package/dist/monaco.contribution-b5xkgQ-s.js +112 -0
  68. package/dist/msdax-CiRB2ZB-.js +375 -0
  69. package/dist/mysql-BwdpPE19.js +878 -0
  70. package/dist/objective-c-D4nfHfso.js +183 -0
  71. package/dist/pascal--j5-PYtz.js +251 -0
  72. package/dist/pascaligo-C7TcJxNL.js +164 -0
  73. package/dist/perl-BzEWqUb5.js +626 -0
  74. package/dist/pgsql-B_KZ0mGX.js +851 -0
  75. package/dist/php-A19QHzQV.js +500 -0
  76. package/dist/pla-COeKY1hA.js +137 -0
  77. package/dist/postiats-BfMp7zJL.js +907 -0
  78. package/dist/powerquery-B0TS_5Gb.js +890 -0
  79. package/dist/powershell-5jSbKdYB.js +239 -0
  80. package/dist/protobuf-YgnOutn3.js +420 -0
  81. package/dist/pug-DLej6kn5.js +402 -0
  82. package/dist/python-CQrZx9mR.js +301 -0
  83. package/dist/python.contribution-CcKs2Ktm.js +8 -0
  84. package/dist/qsharp-AhjqtSHB.js +301 -0
  85. package/dist/r-D-F4P80w.js +243 -0
  86. package/dist/razor-DWmpHMcx.js +550 -0
  87. package/dist/redis-hwwIlMnV.js +302 -0
  88. package/dist/redshift-Bcm_kjEG.js +809 -0
  89. package/dist/restructuredtext-CrdzfPP-.js +174 -0
  90. package/dist/ruby-QC2UNm1s.js +511 -0
  91. package/dist/rust-5aqiQ3L5.js +343 -0
  92. package/dist/sb-B1g1ZfLJ.js +115 -0
  93. package/dist/scala-C2U4R5Gb.js +370 -0
  94. package/dist/scheme-DeFRbslr.js +108 -0
  95. package/dist/scss-RSTCiCmI.js +262 -0
  96. package/dist/shell-BpF-iNu8.js +221 -0
  97. package/dist/shell.contribution-B80NZ3iO.js +7 -0
  98. package/dist/solidity-C00r2mbQ.js +1367 -0
  99. package/dist/sophia-DVW5ZKDB.js +199 -0
  100. package/dist/sparql-B0nmpxeX.js +201 -0
  101. package/dist/sql-CJwKPERn.js +853 -0
  102. package/dist/sql.contribution-DQy36aE5.js +7 -0
  103. package/dist/st-DPlKG5DT.js +416 -0
  104. package/dist/swift-YZBAbVHV.js +309 -0
  105. package/dist/systemverilog-CDQSaH63.js +576 -0
  106. package/dist/tcl-Dlu8sp6Q.js +232 -0
  107. package/dist/tsMode-Bh-v12OL.js +887 -0
  108. package/dist/twig-C5TO7-kw.js +392 -0
  109. package/dist/typescript-c7y6IZVP.js +343 -0
  110. package/dist/typespec-BsmjDEu7.js +117 -0
  111. package/dist/useFieldRendering-BIqeE3qo.js +6083 -0
  112. package/dist/vb-ChHvIDrk.js +372 -0
  113. package/dist/wgsl-XEp1ju8c.js +439 -0
  114. package/dist/xml-MAEprTnF.js +95 -0
  115. package/dist/xml.contribution-XMOaon8i.js +27 -0
  116. package/dist/yaml-C1p8rXG7.js +206 -0
  117. package/dist/yaml.contribution-DRRVhJmJ.js +8 -0
  118. package/package.json +88 -0
  119. package/src/__tests__/client-assigner.test.ts +341 -0
  120. package/src/__tests__/code-types.test.ts +30 -0
  121. package/src/__tests__/markdown-field.test.ts +34 -0
  122. package/src/__tests__/markdown-note-field.test.ts +135 -0
  123. package/src/__tests__/quiz-recorder.test.ts +195 -0
  124. package/src/__tests__/recorder-editor-content-sync.test.ts +172 -0
  125. package/src/__tests__/recorder-editor.test.ts +143 -0
  126. package/src/__tests__/recorder-render.test.ts +57 -0
  127. package/src/__tests__/recorder-wysiwyg-field-host.test.ts +33 -0
  128. package/src/__tests__/step-field.test.ts +270 -0
  129. package/src/__tests__/type-plugins.test.ts +59 -0
  130. package/src/__tests__/var-field-render.test.ts +26 -0
  131. package/src/client-assigner.ts +269 -0
  132. package/src/code-types.ts +94 -0
  133. package/src/components/AimdCodeField.vue +228 -0
  134. package/src/components/AimdDnaSequenceField.vue +983 -0
  135. package/src/components/AimdMarkdownField.vue +168 -0
  136. package/src/components/AimdMarkdownNoteField.vue +457 -0
  137. package/src/components/AimdQuizRecorder.vue +792 -0
  138. package/src/components/AimdRecorder.vue +1959 -0
  139. package/src/components/AimdRecorderEditor.vue +2281 -0
  140. package/src/components/AimdRecorderWysiwygFieldHost.vue +93 -0
  141. package/src/components/AimdRecorderWysiwygSurface.vue +487 -0
  142. package/src/components/AimdSeqVizViewer.vue +122 -0
  143. package/src/components/AimdStepCheckField.vue +453 -0
  144. package/src/components/AimdVarField.vue +213 -0
  145. package/src/components/AimdVarTableField.vue +516 -0
  146. package/src/components/DnaAnnotationEditor.vue +477 -0
  147. package/src/components/DnaSequenceEditor.vue +44 -0
  148. package/src/components/DnaSequenceToolbar.vue +98 -0
  149. package/src/components/DnaSequenceViewer.vue +162 -0
  150. package/src/components/index.ts +21 -0
  151. package/src/components/recorderMilkdownPlugin.ts +632 -0
  152. package/src/composables/__tests__/useDnaSequence.test.ts +467 -0
  153. package/src/composables/__tests__/useFieldAdapters.test.ts +115 -0
  154. package/src/composables/__tests__/useFocusManagement.test.ts +66 -0
  155. package/src/composables/__tests__/useRecordState.test.ts +586 -0
  156. package/src/composables/__tests__/useStepTimers.test.ts +64 -0
  157. package/src/composables/__tests__/useVarHelpers.test.ts +424 -0
  158. package/src/composables/__tests__/workbenchFieldEditing.test.ts +97 -0
  159. package/src/composables/index.ts +94 -0
  160. package/src/composables/useClientAssignerRunner.ts +74 -0
  161. package/src/composables/useDnaSequence.ts +400 -0
  162. package/src/composables/useDnaSequenceField.ts +316 -0
  163. package/src/composables/useFieldAdapters.ts +61 -0
  164. package/src/composables/useFieldRendering.ts +269 -0
  165. package/src/composables/useFocusManagement.ts +144 -0
  166. package/src/composables/useRecordState.ts +429 -0
  167. package/src/composables/useStepTimers.ts +243 -0
  168. package/src/composables/useVarHelpers.ts +545 -0
  169. package/src/composables/useVarTableDragDrop.ts +236 -0
  170. package/src/composables/workbenchFieldEditing.ts +705 -0
  171. package/src/css.d.ts +9 -0
  172. package/src/index.ts +65 -0
  173. package/src/locales.ts +559 -0
  174. package/src/monaco-code.ts +75 -0
  175. package/src/styles/aimd.css +994 -0
  176. package/src/type-plugins.ts +132 -0
  177. package/src/type-utils.ts +3 -0
  178. package/src/types.ts +191 -0
@@ -0,0 +1,72 @@
1
+ import { A as s, a as t, b as n, c as r, d as i, e as o, f as l, g as c, h as u, i as m, j as p, k as d, l as S, m as D, n as g, o as z, p as T, q as V, r as R, s as h, t as q, u as y, v as F, w as I, x as A, y as E, z as C, B as b, C as k, D as f, E as W, F as M, G as N, H as x, I as Q, J as w, K as L, L as v, M as P, N as _, O as B, P as G, Q as K, R as H, S as O, T as U, U as j, V as J, W as X, X as Y, Y as Z, Z as $, _ as ee, $ as ae, a0 as se, a1 as te, a2 as ne, a3 as re, a4 as ie, a5 as oe, a6 as le, a7 as ce, a8 as ue, a9 as me, aa as pe, ab as de, ac as Se, ad as De, ae as ge } from "./useFieldRendering-BIqeE3qo.js";
2
+ export {
3
+ s as AIMD_DNA_SEQUENCE_FORMAT,
4
+ t as applyIncomingRecord,
5
+ n as applyNormalizedRecord,
6
+ r as applyVarStackWidth,
7
+ i as buildAimdRecorderFieldAdapterContext,
8
+ o as calculateDnaSequenceGcPercent,
9
+ l as calculateVarStackWidth,
10
+ c as captureFocusSnapshot,
11
+ u as cloneRecordData,
12
+ m as collectInvalidDnaSequenceCharacters,
13
+ p as createEmptyCheckRecordItem,
14
+ d as createEmptyDnaSequenceAnnotation,
15
+ S as createEmptyDnaSequenceQualifier,
16
+ D as createEmptyDnaSequenceSegment,
17
+ g as createEmptyStepRecordItem,
18
+ z as createEmptyVarTableRow,
19
+ T as ensureDefaultsFromFields,
20
+ V as formatDateForInput,
21
+ R as formatDateTimeWithTimezone,
22
+ h as formatStepDuration,
23
+ q as getDnaSequenceSegmentIssue,
24
+ y as getNextDnaSequenceAnnotationId,
25
+ F as getProtocolEstimatedDurationMs,
26
+ I as getProtocolRecordedDurationMs,
27
+ A as getQuizDefaultValue,
28
+ E as getStepElapsedMs,
29
+ C as getStepRemainingMs,
30
+ b as getVarInputDisplayValue,
31
+ k as getVarInputKind,
32
+ f as getVarTableColumns,
33
+ W as getVarTableRowKey,
34
+ M as hasRecordedStepDuration,
35
+ N as isStepTimerRunning,
36
+ x as isStepTimerWarning,
37
+ Q as measureSingleLineControlWidth,
38
+ w as measureVarLabelWidth,
39
+ L as normalizeCheckFields,
40
+ v as normalizeCheckLike,
41
+ P as normalizeDateTimeValueWithTimezone,
42
+ _ as normalizeDnaSequenceAnnotation,
43
+ B as normalizeDnaSequenceQualifier,
44
+ G as normalizeDnaSequenceSegment,
45
+ K as normalizeDnaSequenceText,
46
+ H as normalizeDnaSequenceValue,
47
+ O as normalizeIncomingRecord,
48
+ U as normalizeQuizFields,
49
+ j as normalizeStepFields,
50
+ J as normalizeStepLike,
51
+ X as normalizeStepTimerState,
52
+ Y as normalizeVarTableFields,
53
+ Z as normalizeVarTableRows,
54
+ $ as normalizeVarTypeName,
55
+ ee as parseVarInputValue,
56
+ ae as pauseStepTimer,
57
+ se as replaceSection,
58
+ te as resetStepTimer,
59
+ ne as resolveAimdRecorderFieldVNode,
60
+ re as resolveStepTimerMode,
61
+ ie as restoreFocusSnapshot,
62
+ oe as serializeDnaSequenceToGenBank,
63
+ le as setStepChecked,
64
+ ce as startStepTimer,
65
+ ue as syncAutoWrapTextareaHeight,
66
+ me as toBooleanValue,
67
+ pe as toDateValue,
68
+ de as unwrapStructuredValue,
69
+ Se as useClientAssignerRunner,
70
+ De as useFieldRendering,
71
+ ge as useVarTableDragDrop
72
+ };
@@ -0,0 +1,389 @@
1
+ var e = {
2
+ comments: {
3
+ lineComment: "//",
4
+ blockComment: ["/*", "*/"]
5
+ },
6
+ brackets: [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"]
10
+ ],
11
+ autoClosingPairs: [
12
+ { open: "[", close: "]" },
13
+ { open: "{", close: "}" },
14
+ { open: "(", close: ")" },
15
+ { open: "'", close: "'", notIn: ["string", "comment"] },
16
+ { open: '"', close: '"', notIn: ["string"] }
17
+ ],
18
+ surroundingPairs: [
19
+ { open: "{", close: "}" },
20
+ { open: "[", close: "]" },
21
+ { open: "(", close: ")" },
22
+ { open: '"', close: '"' },
23
+ { open: "'", close: "'" }
24
+ ],
25
+ folding: {
26
+ markers: {
27
+ start: new RegExp("^\\s*#pragma\\s+region\\b"),
28
+ end: new RegExp("^\\s*#pragma\\s+endregion\\b")
29
+ }
30
+ }
31
+ }, n = {
32
+ defaultToken: "",
33
+ tokenPostfix: ".cpp",
34
+ brackets: [
35
+ { token: "delimiter.curly", open: "{", close: "}" },
36
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
37
+ { token: "delimiter.square", open: "[", close: "]" },
38
+ { token: "delimiter.angle", open: "<", close: ">" }
39
+ ],
40
+ keywords: [
41
+ "abstract",
42
+ "amp",
43
+ "array",
44
+ "auto",
45
+ "bool",
46
+ "break",
47
+ "case",
48
+ "catch",
49
+ "char",
50
+ "class",
51
+ "const",
52
+ "constexpr",
53
+ "const_cast",
54
+ "continue",
55
+ "cpu",
56
+ "decltype",
57
+ "default",
58
+ "delegate",
59
+ "delete",
60
+ "do",
61
+ "double",
62
+ "dynamic_cast",
63
+ "each",
64
+ "else",
65
+ "enum",
66
+ "event",
67
+ "explicit",
68
+ "export",
69
+ "extern",
70
+ "false",
71
+ "final",
72
+ "finally",
73
+ "float",
74
+ "for",
75
+ "friend",
76
+ "gcnew",
77
+ "generic",
78
+ "goto",
79
+ "if",
80
+ "in",
81
+ "initonly",
82
+ "inline",
83
+ "int",
84
+ "interface",
85
+ "interior_ptr",
86
+ "internal",
87
+ "literal",
88
+ "long",
89
+ "mutable",
90
+ "namespace",
91
+ "new",
92
+ "noexcept",
93
+ "nullptr",
94
+ "__nullptr",
95
+ "operator",
96
+ "override",
97
+ "partial",
98
+ "pascal",
99
+ "pin_ptr",
100
+ "private",
101
+ "property",
102
+ "protected",
103
+ "public",
104
+ "ref",
105
+ "register",
106
+ "reinterpret_cast",
107
+ "restrict",
108
+ "return",
109
+ "safe_cast",
110
+ "sealed",
111
+ "short",
112
+ "signed",
113
+ "sizeof",
114
+ "static",
115
+ "static_assert",
116
+ "static_cast",
117
+ "struct",
118
+ "switch",
119
+ "template",
120
+ "this",
121
+ "thread_local",
122
+ "throw",
123
+ "tile_static",
124
+ "true",
125
+ "try",
126
+ "typedef",
127
+ "typeid",
128
+ "typename",
129
+ "union",
130
+ "unsigned",
131
+ "using",
132
+ "virtual",
133
+ "void",
134
+ "volatile",
135
+ "wchar_t",
136
+ "where",
137
+ "while",
138
+ "_asm",
139
+ // reserved word with one underscores
140
+ "_based",
141
+ "_cdecl",
142
+ "_declspec",
143
+ "_fastcall",
144
+ "_if_exists",
145
+ "_if_not_exists",
146
+ "_inline",
147
+ "_multiple_inheritance",
148
+ "_pascal",
149
+ "_single_inheritance",
150
+ "_stdcall",
151
+ "_virtual_inheritance",
152
+ "_w64",
153
+ "__abstract",
154
+ // reserved word with two underscores
155
+ "__alignof",
156
+ "__asm",
157
+ "__assume",
158
+ "__based",
159
+ "__box",
160
+ "__builtin_alignof",
161
+ "__cdecl",
162
+ "__clrcall",
163
+ "__declspec",
164
+ "__delegate",
165
+ "__event",
166
+ "__except",
167
+ "__fastcall",
168
+ "__finally",
169
+ "__forceinline",
170
+ "__gc",
171
+ "__hook",
172
+ "__identifier",
173
+ "__if_exists",
174
+ "__if_not_exists",
175
+ "__inline",
176
+ "__int128",
177
+ "__int16",
178
+ "__int32",
179
+ "__int64",
180
+ "__int8",
181
+ "__interface",
182
+ "__leave",
183
+ "__m128",
184
+ "__m128d",
185
+ "__m128i",
186
+ "__m256",
187
+ "__m256d",
188
+ "__m256i",
189
+ "__m512",
190
+ "__m512d",
191
+ "__m512i",
192
+ "__m64",
193
+ "__multiple_inheritance",
194
+ "__newslot",
195
+ "__nogc",
196
+ "__noop",
197
+ "__nounwind",
198
+ "__novtordisp",
199
+ "__pascal",
200
+ "__pin",
201
+ "__pragma",
202
+ "__property",
203
+ "__ptr32",
204
+ "__ptr64",
205
+ "__raise",
206
+ "__restrict",
207
+ "__resume",
208
+ "__sealed",
209
+ "__single_inheritance",
210
+ "__stdcall",
211
+ "__super",
212
+ "__thiscall",
213
+ "__try",
214
+ "__try_cast",
215
+ "__typeof",
216
+ "__unaligned",
217
+ "__unhook",
218
+ "__uuidof",
219
+ "__value",
220
+ "__virtual_inheritance",
221
+ "__w64",
222
+ "__wchar_t"
223
+ ],
224
+ operators: [
225
+ "=",
226
+ ">",
227
+ "<",
228
+ "!",
229
+ "~",
230
+ "?",
231
+ ":",
232
+ "==",
233
+ "<=",
234
+ ">=",
235
+ "!=",
236
+ "&&",
237
+ "||",
238
+ "++",
239
+ "--",
240
+ "+",
241
+ "-",
242
+ "*",
243
+ "/",
244
+ "&",
245
+ "|",
246
+ "^",
247
+ "%",
248
+ "<<",
249
+ ">>",
250
+ "+=",
251
+ "-=",
252
+ "*=",
253
+ "/=",
254
+ "&=",
255
+ "|=",
256
+ "^=",
257
+ "%=",
258
+ "<<=",
259
+ ">>="
260
+ ],
261
+ // we include these common regular expressions
262
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
263
+ escapes: /\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
264
+ integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,
265
+ floatsuffix: /[fFlL]?/,
266
+ encoding: /u|u8|U|L/,
267
+ // The main tokenizer for our languages
268
+ tokenizer: {
269
+ root: [
270
+ // C++ 11 Raw String
271
+ [/@encoding?R\"(?:([^ ()\\\t]*))\(/, { token: "string.raw.begin", next: "@raw.$1" }],
272
+ // identifiers and keywords
273
+ [
274
+ /[a-zA-Z_]\w*/,
275
+ {
276
+ cases: {
277
+ "@keywords": { token: "keyword.$0" },
278
+ "@default": "identifier"
279
+ }
280
+ }
281
+ ],
282
+ // The preprocessor checks must be before whitespace as they check /^\s*#/ which
283
+ // otherwise fails to match later after other whitespace has been removed.
284
+ // Inclusion
285
+ [/^\s*#\s*include/, { token: "keyword.directive.include", next: "@include" }],
286
+ // Preprocessor directive
287
+ [/^\s*#\s*\w+/, "keyword.directive"],
288
+ // whitespace
289
+ { include: "@whitespace" },
290
+ // [[ attributes ]].
291
+ [/\[\s*\[/, { token: "annotation", next: "@annotation" }],
292
+ // delimiters and operators
293
+ [/[{}()<>\[\]]/, "@brackets"],
294
+ [
295
+ /@symbols/,
296
+ {
297
+ cases: {
298
+ "@operators": "delimiter",
299
+ "@default": ""
300
+ }
301
+ }
302
+ ],
303
+ // numbers
304
+ [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
305
+ [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
306
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
307
+ [/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
308
+ [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
309
+ [/\d[\d']*\d(@integersuffix)/, "number"],
310
+ [/\d(@integersuffix)/, "number"],
311
+ // delimiter: after number because of .\d floats
312
+ [/[;,.]/, "delimiter"],
313
+ // strings
314
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
315
+ // non-teminated string
316
+ [/"/, "string", "@string"],
317
+ // characters
318
+ [/'[^\\']'/, "string"],
319
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
320
+ [/'/, "string.invalid"]
321
+ ],
322
+ whitespace: [
323
+ [/[ \t\r\n]+/, ""],
324
+ [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
325
+ [/\/\*/, "comment", "@comment"],
326
+ [/\/\/.*\\$/, "comment", "@linecomment"],
327
+ [/\/\/.*$/, "comment"]
328
+ ],
329
+ comment: [
330
+ [/[^\/*]+/, "comment"],
331
+ [/\*\//, "comment", "@pop"],
332
+ [/[\/*]/, "comment"]
333
+ ],
334
+ //For use with continuous line comments
335
+ linecomment: [
336
+ [/.*[^\\]$/, "comment", "@pop"],
337
+ [/[^]+/, "comment"]
338
+ ],
339
+ //Identical copy of comment above, except for the addition of .doc
340
+ doccomment: [
341
+ [/[^\/*]+/, "comment.doc"],
342
+ [/\*\//, "comment.doc", "@pop"],
343
+ [/[\/*]/, "comment.doc"]
344
+ ],
345
+ string: [
346
+ [/[^\\"]+/, "string"],
347
+ [/@escapes/, "string.escape"],
348
+ [/\\./, "string.escape.invalid"],
349
+ [/"/, "string", "@pop"]
350
+ ],
351
+ raw: [
352
+ [/[^)]+/, "string.raw"],
353
+ [/\)$S2\"/, { token: "string.raw.end", next: "@pop" }],
354
+ [/\)/, "string.raw"]
355
+ ],
356
+ annotation: [
357
+ { include: "@whitespace" },
358
+ [/using|alignas/, "keyword"],
359
+ [/[a-zA-Z0-9_]+/, "annotation"],
360
+ [/[,:]/, "delimiter"],
361
+ [/[()]/, "@brackets"],
362
+ [/\]\s*\]/, { token: "annotation", next: "@pop" }]
363
+ ],
364
+ include: [
365
+ [
366
+ /(\s*)(<)([^<>]*)(>)/,
367
+ [
368
+ "",
369
+ "keyword.directive.include.begin",
370
+ "string.include.identifier",
371
+ { token: "keyword.directive.include.end", next: "@pop" }
372
+ ]
373
+ ],
374
+ [
375
+ /(\s*)(")([^"]*)(")/,
376
+ [
377
+ "",
378
+ "keyword.directive.include.begin",
379
+ "string.include.identifier",
380
+ { token: "keyword.directive.include.end", next: "@pop" }
381
+ ]
382
+ ]
383
+ ]
384
+ }
385
+ };
386
+ export {
387
+ e as conf,
388
+ n as language
389
+ };