grammar-well 1.3.3 → 2.0.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 (261) hide show
  1. package/README.md +76 -560
  2. package/build/generator/artifacts/basic.d.ts +7 -0
  3. package/build/generator/artifacts/basic.js +24 -0
  4. package/build/generator/artifacts/basic.js.map +1 -0
  5. package/build/generator/artifacts/lexer.d.ts +13 -0
  6. package/build/generator/artifacts/lexer.js +204 -0
  7. package/build/generator/artifacts/lexer.js.map +1 -0
  8. package/build/{compiler/generator → generator}/artifacts/lr.d.ts +14 -14
  9. package/build/{compiler/generator → generator}/artifacts/lr.js +18 -22
  10. package/build/generator/artifacts/lr.js.map +1 -0
  11. package/build/generator/builtin/json.d.ts +183 -0
  12. package/build/generator/builtin/json.js +124 -0
  13. package/build/generator/builtin/json.js.map +1 -0
  14. package/build/generator/builtin/registry.json +1 -0
  15. package/build/generator/builtin/whitespace.d.ts +61 -0
  16. package/build/generator/builtin/whitespace.js +37 -0
  17. package/build/generator/builtin/whitespace.js.map +1 -0
  18. package/build/generator/generator.d.ts +38 -0
  19. package/build/generator/generator.js +368 -0
  20. package/build/generator/generator.js.map +1 -0
  21. package/build/generator/grammars/index.d.ts +2 -0
  22. package/build/generator/grammars/index.js +3 -0
  23. package/build/generator/grammars/index.js.map +1 -0
  24. package/build/generator/grammars/v1.d.ts +1190 -0
  25. package/build/generator/grammars/v1.js +614 -0
  26. package/build/generator/grammars/v1.js.map +1 -0
  27. package/build/generator/grammars/v2.d.ts +1367 -0
  28. package/build/generator/grammars/v2.js +695 -0
  29. package/build/generator/grammars/v2.js.map +1 -0
  30. package/build/generator/import-resolvers/auto.d.ts +2 -0
  31. package/build/generator/import-resolvers/auto.js +11 -0
  32. package/build/generator/import-resolvers/auto.js.map +1 -0
  33. package/build/generator/import-resolvers/browser.d.ts +7 -0
  34. package/build/generator/import-resolvers/browser.js +13 -0
  35. package/build/generator/import-resolvers/browser.js.map +1 -0
  36. package/build/generator/import-resolvers/default.d.ts +2 -0
  37. package/build/generator/import-resolvers/default.js +11 -0
  38. package/build/generator/import-resolvers/default.js.map +1 -0
  39. package/build/generator/import-resolvers/filesystem.d.ts +7 -0
  40. package/build/generator/import-resolvers/filesystem.js +15 -0
  41. package/build/generator/import-resolvers/filesystem.js.map +1 -0
  42. package/build/generator/index.d.ts +3 -0
  43. package/build/generator/index.js +4 -0
  44. package/build/generator/index.js.map +1 -0
  45. package/build/generator/state.d.ts +28 -0
  46. package/build/generator/state.js +73 -0
  47. package/build/generator/state.js.map +1 -0
  48. package/build/generator/stringify/common.d.ts +22 -0
  49. package/build/generator/stringify/common.js +83 -0
  50. package/build/generator/stringify/common.js.map +1 -0
  51. package/build/generator/stringify/exports/javascript.d.ts +3 -0
  52. package/build/generator/stringify/exports/javascript.js +26 -0
  53. package/build/generator/stringify/exports/javascript.js.map +1 -0
  54. package/build/generator/stringify/exports/json.d.ts +2 -0
  55. package/build/generator/stringify/exports/json.js +4 -0
  56. package/build/generator/stringify/exports/json.js.map +1 -0
  57. package/build/generator/stringify/exports/registry.d.ts +20 -0
  58. package/build/generator/stringify/exports/registry.js +17 -0
  59. package/build/generator/stringify/exports/registry.js.map +1 -0
  60. package/build/generator/stringify/exports/typescript.d.ts +2 -0
  61. package/build/generator/stringify/exports/typescript.js +16 -0
  62. package/build/generator/stringify/exports/typescript.js.map +1 -0
  63. package/build/generator/stringify/grammar/v2.d.ts +20 -0
  64. package/build/generator/stringify/grammar/v2.js +211 -0
  65. package/build/generator/stringify/grammar/v2.js.map +1 -0
  66. package/build/generator/stringify/javascript.d.ts +13 -0
  67. package/build/generator/stringify/javascript.js +83 -0
  68. package/build/generator/stringify/javascript.js.map +1 -0
  69. package/build/index.d.ts +7 -6
  70. package/build/index.js +7 -24
  71. package/build/index.js.map +1 -1
  72. package/build/lexers/character-lexer.d.ts +2 -2
  73. package/build/lexers/character-lexer.js +1 -5
  74. package/build/lexers/character-lexer.js.map +1 -1
  75. package/build/lexers/stateful-lexer.d.ts +12 -17
  76. package/build/lexers/stateful-lexer.js +38 -186
  77. package/build/lexers/stateful-lexer.js.map +1 -1
  78. package/build/lexers/token-buffer.d.ts +8 -8
  79. package/build/lexers/token-buffer.js +1 -5
  80. package/build/lexers/token-buffer.js.map +1 -1
  81. package/build/parser/algorithms/cyk.d.ts +6 -6
  82. package/build/parser/algorithms/cyk.js +10 -13
  83. package/build/parser/algorithms/cyk.js.map +1 -1
  84. package/build/parser/algorithms/earley.d.ts +7 -7
  85. package/build/parser/algorithms/earley.js +7 -11
  86. package/build/parser/algorithms/earley.js.map +1 -1
  87. package/build/parser/algorithms/lrk/algorithm.d.ts +3 -3
  88. package/build/parser/algorithms/lrk/algorithm.js +10 -13
  89. package/build/parser/algorithms/lrk/algorithm.js.map +1 -1
  90. package/build/parser/algorithms/lrk/bimap.js +1 -5
  91. package/build/parser/algorithms/lrk/bimap.js.map +1 -1
  92. package/build/parser/algorithms/lrk/canonical-collection.d.ts +7 -7
  93. package/build/parser/algorithms/lrk/canonical-collection.js +11 -15
  94. package/build/parser/algorithms/lrk/canonical-collection.js.map +1 -1
  95. package/build/parser/algorithms/lrk/closure.d.ts +3 -3
  96. package/build/parser/algorithms/lrk/closure.js +3 -7
  97. package/build/parser/algorithms/lrk/closure.js.map +1 -1
  98. package/build/parser/algorithms/lrk/stack.d.ts +6 -6
  99. package/build/parser/algorithms/lrk/stack.js +1 -5
  100. package/build/parser/algorithms/lrk/stack.js.map +1 -1
  101. package/build/parser/algorithms/lrk/state.d.ts +5 -5
  102. package/build/parser/algorithms/lrk/state.js +1 -2
  103. package/build/parser/parse.d.ts +10 -0
  104. package/build/parser/parse.js +34 -0
  105. package/build/parser/parse.js.map +1 -0
  106. package/build/parser/parser.d.ts +6 -17
  107. package/build/parser/parser.js +26 -42
  108. package/build/parser/parser.js.map +1 -1
  109. package/build/tsconfig.tsbuildinfo +1 -0
  110. package/build/typings/ast.d.ts +134 -0
  111. package/build/typings/ast.js +3 -0
  112. package/build/typings/ast.js.map +1 -0
  113. package/build/typings/common.d.ts +4 -0
  114. package/build/typings/common.js +2 -0
  115. package/build/typings/common.js.map +1 -0
  116. package/build/typings/generator.d.ts +58 -0
  117. package/build/typings/generator.js +3 -0
  118. package/build/typings/generator.js.map +1 -0
  119. package/build/typings/index.d.ts +43 -0
  120. package/build/typings/index.js +5 -0
  121. package/build/typings/index.js.map +1 -0
  122. package/build/typings/runtime.d.ts +70 -0
  123. package/build/typings/runtime.js +2 -0
  124. package/build/typings/runtime.js.map +1 -0
  125. package/build/utility/format.d.ts +1 -0
  126. package/build/utility/format.js +12 -0
  127. package/build/utility/format.js.map +1 -0
  128. package/build/utility/formatter.d.ts +1 -0
  129. package/build/utility/formatter.js +12 -0
  130. package/build/utility/formatter.js.map +1 -0
  131. package/build/utility/general.d.ts +1 -1
  132. package/build/utility/general.js +5 -13
  133. package/build/utility/general.js.map +1 -1
  134. package/build/utility/index.d.ts +4 -1
  135. package/build/utility/index.js +4 -17
  136. package/build/utility/index.js.map +1 -1
  137. package/build/utility/lint.d.ts +2 -2
  138. package/build/utility/lint.js +2 -6
  139. package/build/utility/lint.js.map +1 -1
  140. package/build/utility/migrate.d.ts +1 -0
  141. package/build/utility/migrate.js +10 -0
  142. package/build/utility/migrate.js.map +1 -0
  143. package/build/utility/monarch.d.ts +2 -2
  144. package/build/utility/monarch.js +33 -38
  145. package/build/utility/monarch.js.map +1 -1
  146. package/build/utility/parsing.d.ts +6 -0
  147. package/build/utility/parsing.js +26 -0
  148. package/build/utility/parsing.js.map +1 -0
  149. package/build/utility/text-format.d.ts +6 -6
  150. package/build/utility/text-format.js +2 -6
  151. package/build/utility/text-format.js.map +1 -1
  152. package/package.json +17 -24
  153. package/src/generator/artifacts/basic.ts +26 -0
  154. package/src/generator/artifacts/lexer.ts +228 -0
  155. package/src/{compiler/generator → generator}/artifacts/lr.ts +25 -24
  156. package/src/generator/builtin/character.well +7 -0
  157. package/src/generator/builtin/json.well +85 -0
  158. package/src/generator/builtin/number.well +21 -0
  159. package/src/generator/builtin/registry.json +1 -0
  160. package/src/generator/builtin/string.well +54 -0
  161. package/src/generator/builtin/whitespace.well +16 -0
  162. package/src/generator/generator.ts +401 -0
  163. package/src/generator/grammars/index.ts +2 -0
  164. package/src/generator/grammars/v1.ts +620 -0
  165. package/src/generator/grammars/v1.well +422 -0
  166. package/src/generator/grammars/v2.ts +701 -0
  167. package/src/generator/grammars/v2.well +413 -0
  168. package/src/generator/import-resolvers/auto.ts +12 -0
  169. package/src/generator/import-resolvers/browser.ts +13 -0
  170. package/src/generator/import-resolvers/filesystem.ts +18 -0
  171. package/src/generator/index.ts +3 -0
  172. package/src/generator/state.ts +89 -0
  173. package/src/generator/stringify/common.ts +90 -0
  174. package/src/generator/stringify/exports/javascript.ts +29 -0
  175. package/src/generator/stringify/exports/json.ts +5 -0
  176. package/src/generator/stringify/exports/registry.ts +20 -0
  177. package/src/generator/stringify/exports/typescript.ts +17 -0
  178. package/src/generator/stringify/grammar/v2.ts +223 -0
  179. package/src/generator/stringify/javascript.ts +94 -0
  180. package/src/index.ts +7 -6
  181. package/src/lexers/character-lexer.ts +2 -2
  182. package/src/lexers/stateful-lexer.ts +46 -203
  183. package/src/lexers/token-buffer.ts +3 -3
  184. package/src/parser/algorithms/cyk.ts +13 -12
  185. package/src/parser/algorithms/earley.ts +10 -10
  186. package/src/parser/algorithms/lrk/algorithm.ts +8 -7
  187. package/src/parser/algorithms/lrk/canonical-collection.ts +14 -14
  188. package/src/parser/algorithms/lrk/closure.ts +6 -6
  189. package/src/parser/algorithms/lrk/stack.ts +6 -6
  190. package/src/parser/algorithms/lrk/state.ts +5 -5
  191. package/src/parser/parse.ts +45 -0
  192. package/src/typings/ast.ts +148 -0
  193. package/src/typings/common.ts +2 -0
  194. package/src/typings/generator.ts +62 -0
  195. package/src/typings/index.ts +38 -0
  196. package/src/typings/runtime.ts +82 -0
  197. package/src/utility/format.ts +12 -0
  198. package/src/utility/general.ts +1 -2
  199. package/src/utility/index.ts +4 -1
  200. package/src/utility/lint.ts +5 -5
  201. package/src/utility/monarch.ts +34 -34
  202. package/src/utility/parsing.ts +30 -0
  203. package/src/utility/text-format.ts +7 -7
  204. package/.eslintrc.cjs +0 -14
  205. package/bootstrap.ts +0 -45
  206. package/build/compiler/builtin.json +0 -1
  207. package/build/compiler/compiler.d.ts +0 -50
  208. package/build/compiler/compiler.js +0 -249
  209. package/build/compiler/compiler.js.map +0 -1
  210. package/build/compiler/generator/artifacts/lr.js.map +0 -1
  211. package/build/compiler/generator/artifacts/standard.d.ts +0 -7
  212. package/build/compiler/generator/artifacts/standard.js +0 -28
  213. package/build/compiler/generator/artifacts/standard.js.map +0 -1
  214. package/build/compiler/generator/generator.d.ts +0 -24
  215. package/build/compiler/generator/generator.js +0 -217
  216. package/build/compiler/generator/generator.js.map +0 -1
  217. package/build/compiler/gwell.d.ts +0 -1112
  218. package/build/compiler/gwell.js +0 -576
  219. package/build/compiler/gwell.js.map +0 -1
  220. package/build/compiler/import-resolver.d.ts +0 -15
  221. package/build/compiler/import-resolver.js +0 -37
  222. package/build/compiler/import-resolver.js.map +0 -1
  223. package/build/compiler/index.d.ts +0 -2
  224. package/build/compiler/index.js +0 -19
  225. package/build/compiler/index.js.map +0 -1
  226. package/build/compiler/outputs/javascript.d.ts +0 -3
  227. package/build/compiler/outputs/javascript.js +0 -29
  228. package/build/compiler/outputs/javascript.js.map +0 -1
  229. package/build/compiler/outputs/json.d.ts +0 -2
  230. package/build/compiler/outputs/json.js +0 -8
  231. package/build/compiler/outputs/json.js.map +0 -1
  232. package/build/compiler/outputs/typescript.d.ts +0 -2
  233. package/build/compiler/outputs/typescript.js +0 -21
  234. package/build/compiler/outputs/typescript.js.map +0 -1
  235. package/build/parser/algorithms/lr.d.ts +0 -7
  236. package/build/parser/algorithms/lr.js +0 -108
  237. package/build/parser/algorithms/lr.js.map +0 -5
  238. package/build/parser/algorithms/lr0.d.ts +0 -7
  239. package/build/parser/algorithms/lr0.js +0 -156
  240. package/build/parser/algorithms/lr0.js.map +0 -1
  241. package/build/typings.d.ts +0 -226
  242. package/build/typings.js +0 -3
  243. package/build/typings.js.map +0 -1
  244. package/src/compiler/builtin/json.gwell +0 -74
  245. package/src/compiler/builtin/number.gwell +0 -20
  246. package/src/compiler/builtin/string.gwell +0 -48
  247. package/src/compiler/builtin/whitespace.gwell +0 -10
  248. package/src/compiler/builtin.json +0 -1
  249. package/src/compiler/compiler.ts +0 -265
  250. package/src/compiler/generator/artifacts/standard.ts +0 -26
  251. package/src/compiler/generator/generator.ts +0 -237
  252. package/src/compiler/gwell.gwell +0 -294
  253. package/src/compiler/gwell.js +0 -578
  254. package/src/compiler/import-resolver.ts +0 -36
  255. package/src/compiler/index.ts +0 -2
  256. package/src/compiler/outputs/javascript.ts +0 -27
  257. package/src/compiler/outputs/json.ts +0 -5
  258. package/src/compiler/outputs/typescript.ts +0 -18
  259. package/src/parser/parser.ts +0 -77
  260. package/src/typings.ts +0 -248
  261. package/testing.ts +0 -18
@@ -0,0 +1,1367 @@
1
+ declare class grammar {
2
+ artifacts: {
3
+ grammar: {
4
+ rules: {
5
+ POSTPROCESSOR: ({
6
+ name: string;
7
+ postprocess: ({ data }: {
8
+ data: any;
9
+ }) => {
10
+ template: any;
11
+ };
12
+ symbols: (string | {
13
+ literal: string;
14
+ })[];
15
+ } | {
16
+ name: string;
17
+ postprocess: ({ data }: {
18
+ data: any;
19
+ }) => {
20
+ js: any;
21
+ };
22
+ symbols: (string | {
23
+ literal: string;
24
+ })[];
25
+ })[];
26
+ "POSTPROCESSOR.RPT0Nx1": ({
27
+ name: string;
28
+ symbols: any[];
29
+ postprocess?: undefined;
30
+ } | {
31
+ name: string;
32
+ postprocess: ({ data }: {
33
+ data: any;
34
+ }) => any;
35
+ symbols: (string | {
36
+ token: string;
37
+ })[];
38
+ })[];
39
+ "POSTPROCESSOR.RPT0Nx2": ({
40
+ name: string;
41
+ symbols: any[];
42
+ postprocess?: undefined;
43
+ } | {
44
+ name: string;
45
+ postprocess: ({ data }: {
46
+ data: any;
47
+ }) => any;
48
+ symbols: (string | {
49
+ token: string;
50
+ })[];
51
+ })[];
52
+ "POSTPROCESSOR.RPT0Nx3": ({
53
+ name: string;
54
+ symbols: any[];
55
+ postprocess?: undefined;
56
+ } | {
57
+ name: string;
58
+ postprocess: ({ data }: {
59
+ data: any;
60
+ }) => any;
61
+ symbols: (string | {
62
+ token: string;
63
+ })[];
64
+ })[];
65
+ "POSTPROCESSOR.RPT0Nx4": ({
66
+ name: string;
67
+ symbols: any[];
68
+ postprocess?: undefined;
69
+ } | {
70
+ name: string;
71
+ postprocess: ({ data }: {
72
+ data: any;
73
+ }) => any;
74
+ symbols: (string | {
75
+ token: string;
76
+ })[];
77
+ })[];
78
+ T_INTEGER: {
79
+ name: string;
80
+ postprocess: ({ data }: {
81
+ data: any;
82
+ }) => any;
83
+ symbols: {
84
+ token: string;
85
+ }[];
86
+ }[];
87
+ T_JS: {
88
+ name: string;
89
+ postprocess: ({ data }: {
90
+ data: any;
91
+ }) => {
92
+ js: any;
93
+ };
94
+ symbols: (string | {
95
+ literal: string;
96
+ })[];
97
+ }[];
98
+ "T_JS.RPT0Nx1": ({
99
+ name: string;
100
+ symbols: any[];
101
+ postprocess?: undefined;
102
+ } | {
103
+ name: string;
104
+ postprocess: ({ data }: {
105
+ data: any;
106
+ }) => any;
107
+ symbols: (string | {
108
+ token: string;
109
+ })[];
110
+ })[];
111
+ T_REGEX: {
112
+ name: string;
113
+ postprocess: ({ data }: {
114
+ data: any;
115
+ }) => {
116
+ regex: any;
117
+ flags: any;
118
+ };
119
+ symbols: (string | {
120
+ token: string;
121
+ })[];
122
+ }[];
123
+ "T_REGEX.RPT0Nx1": ({
124
+ name: string;
125
+ symbols: any[];
126
+ postprocess?: undefined;
127
+ } | {
128
+ name: string;
129
+ postprocess: ({ data }: {
130
+ data: any;
131
+ }) => any;
132
+ symbols: (string | {
133
+ token: string;
134
+ })[];
135
+ })[];
136
+ T_SECTWORD: {
137
+ name: string;
138
+ postprocess: ({ data }: {
139
+ data: any;
140
+ }) => any;
141
+ symbols: {
142
+ token: string;
143
+ }[];
144
+ }[];
145
+ T_STRING: {
146
+ name: string;
147
+ postprocess: ({ data }: {
148
+ data: any;
149
+ }) => any;
150
+ symbols: {
151
+ token: string;
152
+ }[];
153
+ }[];
154
+ T_WORD: {
155
+ name: string;
156
+ postprocess: ({ data }: {
157
+ data: any;
158
+ }) => any;
159
+ symbols: {
160
+ token: string;
161
+ }[];
162
+ }[];
163
+ _: {
164
+ name: string;
165
+ postprocess: ({ data }: {
166
+ data: any;
167
+ }) => any;
168
+ symbols: string[];
169
+ }[];
170
+ "_.RPT0Nx1": ({
171
+ name: string;
172
+ symbols: any[];
173
+ postprocess?: undefined;
174
+ } | {
175
+ name: string;
176
+ postprocess: ({ data }: {
177
+ data: any;
178
+ }) => any;
179
+ symbols: string[];
180
+ })[];
181
+ "_.RPT0Nx1.SUBx1": {
182
+ name: string;
183
+ symbols: {
184
+ token: string;
185
+ }[];
186
+ }[];
187
+ __: {
188
+ name: string;
189
+ postprocess: ({ data }: {
190
+ data: any;
191
+ }) => any;
192
+ symbols: string[];
193
+ }[];
194
+ "__.RPT1Nx1": ({
195
+ name: string;
196
+ symbols: string[];
197
+ postprocess?: undefined;
198
+ } | {
199
+ name: string;
200
+ postprocess: ({ data }: {
201
+ data: any;
202
+ }) => any;
203
+ symbols: string[];
204
+ })[];
205
+ "__.RPT1Nx1.SUBx1": {
206
+ name: string;
207
+ symbols: {
208
+ token: string;
209
+ }[];
210
+ }[];
211
+ "__.RPT1Nx1.SUBx2": {
212
+ name: string;
213
+ symbols: {
214
+ token: string;
215
+ }[];
216
+ }[];
217
+ expression: {
218
+ name: string;
219
+ postprocess: ({ data }: {
220
+ data: any;
221
+ }) => {
222
+ symbols: any;
223
+ };
224
+ symbols: string[];
225
+ }[];
226
+ expression_list: {
227
+ name: string;
228
+ postprocess: ({ data }: {
229
+ data: any;
230
+ }) => any;
231
+ symbols: (string | {
232
+ literal: string;
233
+ })[];
234
+ }[];
235
+ expression_repeater: {
236
+ name: string;
237
+ postprocess: ({ data }: {
238
+ data: any;
239
+ }) => any;
240
+ symbols: {
241
+ literal: string;
242
+ }[];
243
+ }[];
244
+ expression_symbol: {
245
+ name: string;
246
+ postprocess: ({ data }: {
247
+ data: any;
248
+ }) => any;
249
+ symbols: (string | {
250
+ literal: string;
251
+ })[];
252
+ }[];
253
+ expression_symbol_list: ({
254
+ name: string;
255
+ symbols: string[];
256
+ postprocess?: undefined;
257
+ } | {
258
+ name: string;
259
+ postprocess: ({ data }: {
260
+ data: any;
261
+ }) => any;
262
+ symbols: string[];
263
+ })[];
264
+ expression_symbol_match: ({
265
+ name: string;
266
+ postprocess: ({ data }: {
267
+ data: any;
268
+ }) => {
269
+ literal: any;
270
+ insensitive: boolean;
271
+ };
272
+ symbols: (string | {
273
+ literal: string;
274
+ })[];
275
+ } | {
276
+ name: string;
277
+ postprocess: ({ data }: {
278
+ data: any;
279
+ }) => {
280
+ token: any;
281
+ };
282
+ symbols: (string | {
283
+ literal: string;
284
+ })[];
285
+ } | {
286
+ name: string;
287
+ postprocess: ({ data }: {
288
+ data: any;
289
+ }) => any;
290
+ symbols: string[];
291
+ } | {
292
+ name: string;
293
+ postprocess: ({ data }: {
294
+ data: any;
295
+ }) => {
296
+ subexpression: any;
297
+ };
298
+ symbols: (string | {
299
+ literal: string;
300
+ })[];
301
+ })[];
302
+ grammar: {
303
+ name: string;
304
+ postprocess: ({ data }: {
305
+ data: any;
306
+ }) => {
307
+ rules: any;
308
+ };
309
+ symbols: string[];
310
+ }[];
311
+ grammar_rule: {
312
+ name: string;
313
+ postprocess: ({ data }: {
314
+ data: any;
315
+ }) => {
316
+ name: any;
317
+ expressions: any;
318
+ };
319
+ symbols: string[];
320
+ }[];
321
+ grammar_rule_list: {
322
+ name: string;
323
+ postprocess: ({ data }: {
324
+ data: any;
325
+ }) => any[];
326
+ symbols: string[];
327
+ }[];
328
+ grammar_rule_name: {
329
+ name: string;
330
+ postprocess: ({ data }: {
331
+ data: any;
332
+ }) => any;
333
+ symbols: string[];
334
+ }[];
335
+ kv: {
336
+ name: string;
337
+ postprocess: ({ data }: {
338
+ data: any;
339
+ }) => {
340
+ [x: number]: any;
341
+ };
342
+ symbols: (string | {
343
+ literal: string;
344
+ })[];
345
+ }[];
346
+ "kv.SUBx1": {
347
+ name: string;
348
+ symbols: string[];
349
+ }[];
350
+ kv_list: {
351
+ name: string;
352
+ postprocess: ({ data }: {
353
+ data: any;
354
+ }) => any;
355
+ symbols: string[];
356
+ }[];
357
+ lexer: {
358
+ name: string;
359
+ postprocess: ({ data }: {
360
+ data: any;
361
+ }) => any;
362
+ symbols: string[];
363
+ }[];
364
+ main: {
365
+ name: string;
366
+ postprocess: ({ data }: {
367
+ data: any;
368
+ }) => any;
369
+ symbols: string[];
370
+ }[];
371
+ section: ({
372
+ name: string;
373
+ postprocess: ({ data }: {
374
+ data: any;
375
+ }) => {
376
+ config: any;
377
+ };
378
+ symbols: (string | {
379
+ literal: string;
380
+ })[];
381
+ } | {
382
+ name: string;
383
+ postprocess: ({ data }: {
384
+ data: any;
385
+ }) => {
386
+ import: any;
387
+ };
388
+ symbols: (string | {
389
+ literal: string;
390
+ })[];
391
+ } | {
392
+ name: string;
393
+ postprocess: ({ data }: {
394
+ data: any;
395
+ }) => {
396
+ lexer: any;
397
+ };
398
+ symbols: (string | {
399
+ literal: string;
400
+ })[];
401
+ } | {
402
+ name: string;
403
+ postprocess: ({ data }: {
404
+ data: any;
405
+ }) => {
406
+ grammar: any;
407
+ };
408
+ symbols: (string | {
409
+ literal: string;
410
+ })[];
411
+ } | {
412
+ name: string;
413
+ postprocess: ({ data }: {
414
+ data: any;
415
+ }) => {
416
+ lifecycle: any;
417
+ js: any;
418
+ };
419
+ symbols: (string | RegExp | {
420
+ literal: string;
421
+ })[];
422
+ })[];
423
+ section_list: {
424
+ name: string;
425
+ postprocess: ({ data }: {
426
+ data: any;
427
+ }) => any[];
428
+ symbols: string[];
429
+ }[];
430
+ state: {
431
+ name: string;
432
+ postprocess: ({ data }: {
433
+ data: any;
434
+ }) => {
435
+ name: any;
436
+ state: any;
437
+ };
438
+ symbols: string[];
439
+ }[];
440
+ state_config: {
441
+ name: string;
442
+ postprocess: ({ data }: {
443
+ data: any;
444
+ }) => {
445
+ [x: number]: any;
446
+ };
447
+ symbols: (string | {
448
+ literal: string;
449
+ })[];
450
+ }[];
451
+ state_config_list: {
452
+ name: string;
453
+ postprocess: ({ data }: {
454
+ data: any;
455
+ }) => any;
456
+ symbols: string[];
457
+ }[];
458
+ state_definition: ({
459
+ name: string;
460
+ postprocess: ({ data }: {
461
+ data: any;
462
+ }) => any;
463
+ symbols: string[];
464
+ } | {
465
+ name: string;
466
+ postprocess: ({ data }: {
467
+ data: any;
468
+ }) => {
469
+ span: any;
470
+ };
471
+ symbols: (string | {
472
+ literal: string;
473
+ })[];
474
+ })[];
475
+ state_list: {
476
+ name: string;
477
+ postprocess: ({ data }: {
478
+ data: any;
479
+ }) => any[];
480
+ symbols: string[];
481
+ }[];
482
+ string_list: {
483
+ name: string;
484
+ postprocess: ({ data }: {
485
+ data: any;
486
+ }) => any[];
487
+ symbols: (string | {
488
+ literal: string;
489
+ })[];
490
+ }[];
491
+ token: {
492
+ name: string;
493
+ postprocess: ({ data }: {
494
+ data: any;
495
+ }) => any;
496
+ symbols: (string | {
497
+ literal: string;
498
+ })[];
499
+ }[];
500
+ token_definition: ({
501
+ name: string;
502
+ postprocess: ({ data }: {
503
+ data: any;
504
+ }) => {
505
+ open: any;
506
+ };
507
+ symbols: (string | {
508
+ literal: string;
509
+ })[];
510
+ } | {
511
+ name: string;
512
+ postprocess: ({ data }: {
513
+ data: any;
514
+ }) => {
515
+ close: any;
516
+ };
517
+ symbols: (string | {
518
+ literal: string;
519
+ })[];
520
+ } | {
521
+ name: string;
522
+ postprocess: ({ data }: {
523
+ data: any;
524
+ }) => {
525
+ tag: any;
526
+ };
527
+ symbols: (string | {
528
+ literal: string;
529
+ })[];
530
+ } | {
531
+ name: string;
532
+ postprocess: ({ data }: {
533
+ data: any;
534
+ }) => {
535
+ when: any;
536
+ };
537
+ symbols: (string | {
538
+ literal: string;
539
+ })[];
540
+ } | {
541
+ name: string;
542
+ postprocess: ({ data }: {
543
+ data: any;
544
+ }) => {
545
+ stay: boolean;
546
+ };
547
+ symbols: {
548
+ literal: string;
549
+ }[];
550
+ } | {
551
+ name: string;
552
+ postprocess: ({ data }: {
553
+ data: any;
554
+ }) => {
555
+ pop: number;
556
+ };
557
+ symbols: (string | {
558
+ literal: string;
559
+ })[];
560
+ } | {
561
+ name: string;
562
+ postprocess: ({ data }: {
563
+ data: any;
564
+ }) => {
565
+ pop: string;
566
+ };
567
+ symbols: (string | {
568
+ literal: string;
569
+ })[];
570
+ } | {
571
+ name: string;
572
+ postprocess: ({ data }: {
573
+ data: any;
574
+ }) => {
575
+ highlight: any;
576
+ };
577
+ symbols: (string | {
578
+ literal: string;
579
+ })[];
580
+ } | {
581
+ name: string;
582
+ postprocess: ({ data }: {
583
+ data: any;
584
+ }) => {
585
+ embed: any;
586
+ };
587
+ symbols: (string | {
588
+ literal: string;
589
+ })[];
590
+ } | {
591
+ name: string;
592
+ postprocess: ({ data }: {
593
+ data: any;
594
+ }) => {
595
+ unembed: boolean;
596
+ };
597
+ symbols: {
598
+ literal: string;
599
+ }[];
600
+ } | {
601
+ name: string;
602
+ postprocess: ({ data }: {
603
+ data: any;
604
+ }) => {
605
+ inset: number;
606
+ };
607
+ symbols: (string | {
608
+ literal: string;
609
+ })[];
610
+ } | {
611
+ name: string;
612
+ postprocess: ({ data }: {
613
+ data: any;
614
+ }) => {
615
+ set: any;
616
+ };
617
+ symbols: (string | {
618
+ literal: string;
619
+ })[];
620
+ } | {
621
+ name: string;
622
+ postprocess: ({ data }: {
623
+ data: any;
624
+ }) => {
625
+ goto: any;
626
+ };
627
+ symbols: (string | {
628
+ literal: string;
629
+ })[];
630
+ } | {
631
+ name: string;
632
+ postprocess: ({ data }: {
633
+ data: any;
634
+ }) => {
635
+ type: any;
636
+ };
637
+ symbols: (string | {
638
+ literal: string;
639
+ })[];
640
+ })[];
641
+ token_definition_list: {
642
+ name: string;
643
+ postprocess: ({ data }: {
644
+ data: any;
645
+ }) => any;
646
+ symbols: string[];
647
+ }[];
648
+ token_list: {
649
+ name: string;
650
+ postprocess: ({ data }: {
651
+ data: any;
652
+ }) => any;
653
+ symbols: string[];
654
+ }[];
655
+ word_list: {
656
+ name: string;
657
+ postprocess: ({ data }: {
658
+ data: any;
659
+ }) => any[];
660
+ symbols: (string | {
661
+ literal: string;
662
+ })[];
663
+ }[];
664
+ };
665
+ start: string;
666
+ };
667
+ lexer: {
668
+ start: string;
669
+ states: {
670
+ comment: {
671
+ regex: RegExp;
672
+ rules: {
673
+ highlight: string;
674
+ tag: string[];
675
+ when: RegExp;
676
+ }[];
677
+ };
678
+ config: {
679
+ regex: RegExp;
680
+ rules: ({
681
+ tag: string[];
682
+ when: RegExp;
683
+ set?: undefined;
684
+ } | {
685
+ set: string;
686
+ when: string;
687
+ tag?: undefined;
688
+ })[];
689
+ };
690
+ "config.span": {
691
+ regex: RegExp;
692
+ rules: ({
693
+ highlight: string;
694
+ tag: string[];
695
+ when: RegExp;
696
+ pop?: undefined;
697
+ } | {
698
+ tag: string[];
699
+ when: RegExp;
700
+ highlight?: undefined;
701
+ pop?: undefined;
702
+ } | {
703
+ highlight: string;
704
+ when: string;
705
+ tag?: undefined;
706
+ pop?: undefined;
707
+ } | {
708
+ when: string;
709
+ highlight?: undefined;
710
+ tag?: undefined;
711
+ pop?: undefined;
712
+ } | {
713
+ pop: number;
714
+ when: string;
715
+ highlight?: undefined;
716
+ tag?: undefined;
717
+ })[];
718
+ };
719
+ "config.start": {
720
+ regex: RegExp;
721
+ rules: ({
722
+ tag: string[];
723
+ when: RegExp;
724
+ set?: undefined;
725
+ } | {
726
+ set: string;
727
+ when: string;
728
+ tag?: undefined;
729
+ })[];
730
+ };
731
+ "config.stop": {
732
+ regex: RegExp;
733
+ rules: {
734
+ pop: number;
735
+ when: string;
736
+ }[];
737
+ };
738
+ grammar: {
739
+ regex: RegExp;
740
+ rules: ({
741
+ tag: string[];
742
+ when: RegExp;
743
+ set?: undefined;
744
+ } | {
745
+ set: string;
746
+ when: string;
747
+ tag?: undefined;
748
+ })[];
749
+ };
750
+ "grammar.span": {
751
+ regex: RegExp;
752
+ rules: ({
753
+ highlight: string;
754
+ tag: string[];
755
+ when: RegExp;
756
+ goto?: undefined;
757
+ pop?: undefined;
758
+ } | {
759
+ goto: string;
760
+ highlight: string;
761
+ when: string;
762
+ tag?: undefined;
763
+ pop?: undefined;
764
+ } | {
765
+ tag: string[];
766
+ when: RegExp;
767
+ highlight?: undefined;
768
+ goto?: undefined;
769
+ pop?: undefined;
770
+ } | {
771
+ highlight: string;
772
+ when: string;
773
+ tag?: undefined;
774
+ goto?: undefined;
775
+ pop?: undefined;
776
+ } | {
777
+ goto: string;
778
+ highlight: string;
779
+ tag: string[];
780
+ when: RegExp;
781
+ pop?: undefined;
782
+ } | {
783
+ when: string;
784
+ highlight?: undefined;
785
+ tag?: undefined;
786
+ goto?: undefined;
787
+ pop?: undefined;
788
+ } | {
789
+ pop: number;
790
+ when: string;
791
+ highlight?: undefined;
792
+ tag?: undefined;
793
+ goto?: undefined;
794
+ })[];
795
+ };
796
+ "grammar.start": {
797
+ regex: RegExp;
798
+ rules: ({
799
+ tag: string[];
800
+ when: RegExp;
801
+ set?: undefined;
802
+ } | {
803
+ set: string;
804
+ when: string;
805
+ tag?: undefined;
806
+ })[];
807
+ };
808
+ "grammar.stop": {
809
+ regex: RegExp;
810
+ rules: {
811
+ pop: number;
812
+ when: string;
813
+ }[];
814
+ };
815
+ insensitive: {
816
+ regex: RegExp;
817
+ rules: {
818
+ highlight: string;
819
+ when: string;
820
+ }[];
821
+ };
822
+ integer: {
823
+ regex: RegExp;
824
+ rules: {
825
+ highlight: string;
826
+ tag: string[];
827
+ when: RegExp;
828
+ }[];
829
+ };
830
+ js_body: {
831
+ regex: RegExp;
832
+ rules: ({
833
+ tag: string[];
834
+ when: RegExp;
835
+ highlight?: undefined;
836
+ set?: undefined;
837
+ } | {
838
+ highlight: string;
839
+ set: string;
840
+ tag: string[];
841
+ when: string;
842
+ })[];
843
+ };
844
+ js_literal: {
845
+ regex: RegExp;
846
+ rules: ({
847
+ tag: string[];
848
+ when: RegExp;
849
+ goto?: undefined;
850
+ highlight?: undefined;
851
+ pop?: undefined;
852
+ } | {
853
+ goto: string;
854
+ highlight: string;
855
+ tag: string[];
856
+ when: string;
857
+ pop?: undefined;
858
+ } | {
859
+ highlight: string;
860
+ pop: number;
861
+ tag: string[];
862
+ when: string;
863
+ goto?: undefined;
864
+ })[];
865
+ unmatched: {
866
+ tag: string[];
867
+ };
868
+ };
869
+ js_template: {
870
+ regex: RegExp;
871
+ rules: {
872
+ goto: string;
873
+ highlight: string;
874
+ when: string;
875
+ }[];
876
+ };
877
+ js_template_inner: {
878
+ regex: RegExp;
879
+ rules: ({
880
+ tag: string[];
881
+ when: RegExp;
882
+ highlight?: undefined;
883
+ set?: undefined;
884
+ } | {
885
+ highlight: string;
886
+ set: string;
887
+ when: string;
888
+ tag?: undefined;
889
+ })[];
890
+ };
891
+ jsignore: {
892
+ regex: RegExp;
893
+ rules: {
894
+ tag: string[];
895
+ when: RegExp;
896
+ }[];
897
+ };
898
+ kv: {
899
+ regex: RegExp;
900
+ rules: ({
901
+ highlight: string;
902
+ tag: string[];
903
+ when: RegExp;
904
+ } | {
905
+ tag: string[];
906
+ when: RegExp;
907
+ highlight?: undefined;
908
+ } | {
909
+ highlight: string;
910
+ when: string;
911
+ tag?: undefined;
912
+ } | {
913
+ when: string;
914
+ highlight?: undefined;
915
+ tag?: undefined;
916
+ })[];
917
+ };
918
+ l_abracketl: {
919
+ regex: RegExp;
920
+ rules: {
921
+ when: string;
922
+ }[];
923
+ };
924
+ l_abracketr: {
925
+ regex: RegExp;
926
+ rules: {
927
+ when: string;
928
+ }[];
929
+ };
930
+ l_arrow: {
931
+ regex: RegExp;
932
+ rules: {
933
+ highlight: string;
934
+ when: string;
935
+ }[];
936
+ };
937
+ l_at: {
938
+ regex: RegExp;
939
+ rules: {
940
+ highlight: string;
941
+ when: string;
942
+ }[];
943
+ };
944
+ l_colon: {
945
+ regex: RegExp;
946
+ rules: {
947
+ highlight: string;
948
+ when: string;
949
+ }[];
950
+ };
951
+ l_comma: {
952
+ regex: RegExp;
953
+ rules: {
954
+ when: string;
955
+ }[];
956
+ };
957
+ l_dash: {
958
+ regex: RegExp;
959
+ rules: {
960
+ when: string;
961
+ }[];
962
+ };
963
+ l_dsign: {
964
+ regex: RegExp;
965
+ rules: {
966
+ when: string;
967
+ }[];
968
+ };
969
+ l_parenl: {
970
+ regex: RegExp;
971
+ rules: {
972
+ when: string;
973
+ }[];
974
+ };
975
+ l_parenr: {
976
+ regex: RegExp;
977
+ rules: {
978
+ when: string;
979
+ }[];
980
+ };
981
+ l_pipe: {
982
+ regex: RegExp;
983
+ rules: {
984
+ highlight: string;
985
+ when: string;
986
+ }[];
987
+ };
988
+ l_plus: {
989
+ regex: RegExp;
990
+ rules: {
991
+ when: string;
992
+ }[];
993
+ };
994
+ l_qmark: {
995
+ regex: RegExp;
996
+ rules: {
997
+ when: string;
998
+ }[];
999
+ };
1000
+ l_scolon: {
1001
+ regex: RegExp;
1002
+ rules: {
1003
+ when: string;
1004
+ }[];
1005
+ };
1006
+ l_star: {
1007
+ regex: RegExp;
1008
+ rules: {
1009
+ when: string;
1010
+ }[];
1011
+ };
1012
+ lexer: {
1013
+ regex: RegExp;
1014
+ rules: ({
1015
+ tag: string[];
1016
+ when: RegExp;
1017
+ set?: undefined;
1018
+ } | {
1019
+ set: string;
1020
+ when: string;
1021
+ tag?: undefined;
1022
+ })[];
1023
+ };
1024
+ "lexer.span": {
1025
+ regex: RegExp;
1026
+ rules: ({
1027
+ tag: string[];
1028
+ when: RegExp;
1029
+ highlight?: undefined;
1030
+ goto?: undefined;
1031
+ pop?: undefined;
1032
+ } | {
1033
+ highlight: string;
1034
+ tag: string[];
1035
+ when: RegExp;
1036
+ goto?: undefined;
1037
+ pop?: undefined;
1038
+ } | {
1039
+ goto: string;
1040
+ highlight: string;
1041
+ tag: string[];
1042
+ when: RegExp;
1043
+ pop?: undefined;
1044
+ } | {
1045
+ when: string;
1046
+ tag?: undefined;
1047
+ highlight?: undefined;
1048
+ goto?: undefined;
1049
+ pop?: undefined;
1050
+ } | {
1051
+ highlight: string;
1052
+ when: string;
1053
+ tag?: undefined;
1054
+ goto?: undefined;
1055
+ pop?: undefined;
1056
+ } | {
1057
+ goto: string;
1058
+ when: string;
1059
+ tag?: undefined;
1060
+ highlight?: undefined;
1061
+ pop?: undefined;
1062
+ } | {
1063
+ pop: number;
1064
+ when: string;
1065
+ tag?: undefined;
1066
+ highlight?: undefined;
1067
+ goto?: undefined;
1068
+ })[];
1069
+ };
1070
+ "lexer.start": {
1071
+ regex: RegExp;
1072
+ rules: ({
1073
+ tag: string[];
1074
+ when: RegExp;
1075
+ set?: undefined;
1076
+ } | {
1077
+ set: string;
1078
+ when: string;
1079
+ tag?: undefined;
1080
+ })[];
1081
+ };
1082
+ "lexer.stop": {
1083
+ regex: RegExp;
1084
+ rules: {
1085
+ pop: number;
1086
+ when: string;
1087
+ }[];
1088
+ };
1089
+ lexer_span: {
1090
+ regex: RegExp;
1091
+ rules: {
1092
+ goto: string;
1093
+ when: string;
1094
+ }[];
1095
+ };
1096
+ "lexer_span.span": {
1097
+ regex: RegExp;
1098
+ rules: ({
1099
+ tag: string[];
1100
+ when: RegExp;
1101
+ highlight?: undefined;
1102
+ goto?: undefined;
1103
+ pop?: undefined;
1104
+ } | {
1105
+ highlight: string;
1106
+ tag: string[];
1107
+ when: RegExp;
1108
+ goto?: undefined;
1109
+ pop?: undefined;
1110
+ } | {
1111
+ goto: string;
1112
+ highlight: string;
1113
+ tag: string[];
1114
+ when: RegExp;
1115
+ pop?: undefined;
1116
+ } | {
1117
+ when: string;
1118
+ tag?: undefined;
1119
+ highlight?: undefined;
1120
+ goto?: undefined;
1121
+ pop?: undefined;
1122
+ } | {
1123
+ highlight: string;
1124
+ when: string;
1125
+ tag?: undefined;
1126
+ goto?: undefined;
1127
+ pop?: undefined;
1128
+ } | {
1129
+ pop: number;
1130
+ when: string;
1131
+ tag?: undefined;
1132
+ highlight?: undefined;
1133
+ goto?: undefined;
1134
+ })[];
1135
+ };
1136
+ "lexer_span.start": {
1137
+ regex: RegExp;
1138
+ rules: {
1139
+ goto: string;
1140
+ when: string;
1141
+ }[];
1142
+ };
1143
+ "lexer_span.stop": {
1144
+ regex: RegExp;
1145
+ rules: {
1146
+ pop: number;
1147
+ when: string;
1148
+ }[];
1149
+ };
1150
+ lifecycle: {
1151
+ regex: RegExp;
1152
+ rules: {
1153
+ goto: string;
1154
+ highlight: string;
1155
+ tag: string[];
1156
+ when: RegExp;
1157
+ }[];
1158
+ };
1159
+ "lifecycle.span": {
1160
+ regex: RegExp;
1161
+ rules: ({
1162
+ tag: string[];
1163
+ when: RegExp;
1164
+ highlight?: undefined;
1165
+ set?: undefined;
1166
+ before?: undefined;
1167
+ pop?: undefined;
1168
+ } | {
1169
+ highlight: string;
1170
+ set: string;
1171
+ tag: string[];
1172
+ when: string;
1173
+ before?: undefined;
1174
+ pop?: undefined;
1175
+ } | {
1176
+ highlight: string;
1177
+ when: string;
1178
+ tag?: undefined;
1179
+ set?: undefined;
1180
+ before?: undefined;
1181
+ pop?: undefined;
1182
+ } | {
1183
+ before: boolean;
1184
+ pop: number;
1185
+ when: RegExp;
1186
+ tag?: undefined;
1187
+ highlight?: undefined;
1188
+ set?: undefined;
1189
+ })[];
1190
+ };
1191
+ "lifecycle.start": {
1192
+ regex: RegExp;
1193
+ rules: {
1194
+ goto: string;
1195
+ highlight: string;
1196
+ tag: string[];
1197
+ when: RegExp;
1198
+ }[];
1199
+ };
1200
+ "lifecycle.stop": {
1201
+ regex: RegExp;
1202
+ rules: {
1203
+ before: boolean;
1204
+ pop: number;
1205
+ when: RegExp;
1206
+ }[];
1207
+ };
1208
+ main: {
1209
+ regex: RegExp;
1210
+ rules: ({
1211
+ highlight: string;
1212
+ tag: string[];
1213
+ when: RegExp;
1214
+ goto?: undefined;
1215
+ } | {
1216
+ tag: string[];
1217
+ when: RegExp;
1218
+ highlight?: undefined;
1219
+ goto?: undefined;
1220
+ } | {
1221
+ when: string;
1222
+ highlight?: undefined;
1223
+ tag?: undefined;
1224
+ goto?: undefined;
1225
+ } | {
1226
+ goto: string;
1227
+ highlight: string;
1228
+ tag: string[];
1229
+ when: RegExp;
1230
+ } | {
1231
+ highlight: string;
1232
+ when: string;
1233
+ tag?: undefined;
1234
+ goto?: undefined;
1235
+ })[];
1236
+ };
1237
+ regex: {
1238
+ regex: RegExp;
1239
+ rules: {
1240
+ goto: string;
1241
+ highlight: string;
1242
+ tag: string[];
1243
+ when: RegExp;
1244
+ }[];
1245
+ };
1246
+ "regex.span": {
1247
+ regex: RegExp;
1248
+ rules: ({
1249
+ highlight: string;
1250
+ tag: string[];
1251
+ when: RegExp;
1252
+ goto?: undefined;
1253
+ pop?: undefined;
1254
+ } | {
1255
+ goto: string;
1256
+ highlight: string;
1257
+ tag: string[];
1258
+ when: string;
1259
+ pop?: undefined;
1260
+ } | {
1261
+ highlight: string;
1262
+ pop: number;
1263
+ tag: string[];
1264
+ when: string;
1265
+ goto?: undefined;
1266
+ })[];
1267
+ };
1268
+ "regex.start": {
1269
+ regex: RegExp;
1270
+ rules: {
1271
+ goto: string;
1272
+ highlight: string;
1273
+ tag: string[];
1274
+ when: RegExp;
1275
+ }[];
1276
+ };
1277
+ "regex.stop": {
1278
+ regex: RegExp;
1279
+ rules: {
1280
+ highlight: string;
1281
+ pop: number;
1282
+ tag: string[];
1283
+ when: string;
1284
+ }[];
1285
+ };
1286
+ regex_charclass: {
1287
+ regex: RegExp;
1288
+ rules: {
1289
+ goto: string;
1290
+ highlight: string;
1291
+ tag: string[];
1292
+ when: string;
1293
+ }[];
1294
+ };
1295
+ "regex_charclass.span": {
1296
+ regex: RegExp;
1297
+ rules: ({
1298
+ highlight: string;
1299
+ tag: string[];
1300
+ when: RegExp;
1301
+ pop?: undefined;
1302
+ } | {
1303
+ highlight: string;
1304
+ tag: string[];
1305
+ when: string;
1306
+ pop?: undefined;
1307
+ } | {
1308
+ highlight: string;
1309
+ pop: number;
1310
+ tag: string[];
1311
+ when: string;
1312
+ })[];
1313
+ };
1314
+ "regex_charclass.start": {
1315
+ regex: RegExp;
1316
+ rules: {
1317
+ goto: string;
1318
+ highlight: string;
1319
+ tag: string[];
1320
+ when: string;
1321
+ }[];
1322
+ };
1323
+ "regex_charclass.stop": {
1324
+ regex: RegExp;
1325
+ rules: {
1326
+ highlight: string;
1327
+ pop: number;
1328
+ tag: string[];
1329
+ when: string;
1330
+ }[];
1331
+ };
1332
+ section_word: {
1333
+ regex: RegExp;
1334
+ rules: {
1335
+ highlight: string;
1336
+ tag: string[];
1337
+ when: RegExp;
1338
+ }[];
1339
+ };
1340
+ string: {
1341
+ regex: RegExp;
1342
+ rules: {
1343
+ highlight: string;
1344
+ tag: string[];
1345
+ when: RegExp;
1346
+ }[];
1347
+ };
1348
+ word: {
1349
+ regex: RegExp;
1350
+ rules: {
1351
+ tag: string[];
1352
+ when: RegExp;
1353
+ }[];
1354
+ };
1355
+ ws: {
1356
+ regex: RegExp;
1357
+ rules: {
1358
+ tag: string[];
1359
+ when: RegExp;
1360
+ }[];
1361
+ };
1362
+ };
1363
+ };
1364
+ };
1365
+ constructor();
1366
+ }
1367
+ export default grammar;