Commit
+513 -525 +/-3 browse
1 | diff --git a/src/grammar.json b/src/grammar.json |
2 | index e431283..41dab68 100644 |
3 | --- a/src/grammar.json |
4 | +++ b/src/grammar.json |
5 | @@ -278,8 +278,8 @@ |
6 | } |
7 | }, |
8 | { |
9 | - "type": "STRING", |
10 | - "value": "--git" |
11 | + "type": "PATTERN", |
12 | + "value": "[-\\w]+" |
13 | }, |
14 | { |
15 | "type": "SYMBOL", |
16 | diff --git a/src/node-types.json b/src/node-types.json |
17 | index 95779a6..f58fbbc 100644 |
18 | --- a/src/node-types.json |
19 | +++ b/src/node-types.json |
20 | @@ -336,10 +336,6 @@ |
21 | "named": false |
22 | }, |
23 | { |
24 | - "type": "--git", |
25 | - "named": false |
26 | - }, |
27 | - { |
28 | "type": "..", |
29 | "named": false |
30 | }, |
31 | diff --git a/src/parser.c b/src/parser.c |
32 | index 92e7c3c..2344f59 100644 |
33 | --- a/src/parser.c |
34 | +++ b/src/parser.c |
35 | @@ -19,7 +19,7 @@ |
36 | enum { |
37 | aux_sym_source_token1 = 1, |
38 | anon_sym_diff = 2, |
39 | - anon_sym_DASH_DASHgit = 3, |
40 | + aux_sym_command_token1 = 3, |
41 | aux_sym_file_change_token1 = 4, |
42 | anon_sym_file = 5, |
43 | anon_sym_mode = 6, |
44 | @@ -80,7 +80,7 @@ static const char * const ts_symbol_names[] = { |
45 | [ts_builtin_sym_end] = "end", |
46 | [aux_sym_source_token1] = "source_token1", |
47 | [anon_sym_diff] = "diff", |
48 | - [anon_sym_DASH_DASHgit] = "--git", |
49 | + [aux_sym_command_token1] = "command_token1", |
50 | [aux_sym_file_change_token1] = "file_change_token1", |
51 | [anon_sym_file] = "file", |
52 | [anon_sym_mode] = "mode", |
53 | @@ -141,7 +141,7 @@ static const TSSymbol ts_symbol_map[] = { |
54 | [ts_builtin_sym_end] = ts_builtin_sym_end, |
55 | [aux_sym_source_token1] = aux_sym_source_token1, |
56 | [anon_sym_diff] = anon_sym_diff, |
57 | - [anon_sym_DASH_DASHgit] = anon_sym_DASH_DASHgit, |
58 | + [aux_sym_command_token1] = aux_sym_command_token1, |
59 | [aux_sym_file_change_token1] = aux_sym_file_change_token1, |
60 | [anon_sym_file] = anon_sym_file, |
61 | [anon_sym_mode] = anon_sym_mode, |
62 | @@ -211,8 +211,8 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { |
63 | .visible = true, |
64 | .named = false, |
65 | }, |
66 | - [anon_sym_DASH_DASHgit] = { |
67 | - .visible = true, |
68 | + [aux_sym_command_token1] = { |
69 | + .visible = false, |
70 | .named = false, |
71 | }, |
72 | [aux_sym_file_change_token1] = { |
73 | @@ -561,533 +561,551 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { |
74 | eof = lexer->eof(lexer); |
75 | switch (state) { |
76 | case 0: |
77 | - if (eof) ADVANCE(89); |
78 | - if (lookahead == '\n') ADVANCE(90); |
79 | + if (eof) ADVANCE(85); |
80 | + if (lookahead == '\n') ADVANCE(86); |
81 | if (lookahead == '\r') ADVANCE(1); |
82 | - if (lookahead == '%') ADVANCE(150); |
83 | - if (lookahead == '+') ADVANCE(158); |
84 | - if (lookahead == '-') ADVANCE(161); |
85 | - if (lookahead == '.') ADVANCE(5); |
86 | - if (lookahead == '@') ADVANCE(6); |
87 | - if (lookahead == 'B') ADVANCE(39); |
88 | - if (lookahead == 'a') ADVANCE(55); |
89 | - if (lookahead == 'd') ADVANCE(18); |
90 | - if (lookahead == 'f') ADVANCE(37); |
91 | - if (lookahead == 'i') ADVANCE(57); |
92 | - if (lookahead == 'm') ADVANCE(62); |
93 | - if (lookahead == 'n') ADVANCE(19); |
94 | - if (lookahead == 'r') ADVANCE(29); |
95 | - if (lookahead == 's') ADVANCE(38); |
96 | - if (lookahead == 't') ADVANCE(60); |
97 | - if (('b' <= lookahead && lookahead <= 'e')) ADVANCE(82); |
98 | + if (lookahead == '%') ADVANCE(145); |
99 | + if (lookahead == '+') ADVANCE(153); |
100 | + if (lookahead == '-') ADVANCE(156); |
101 | + if (lookahead == '.') ADVANCE(4); |
102 | + if (lookahead == '@') ADVANCE(5); |
103 | + if (lookahead == 'B') ADVANCE(37); |
104 | + if (lookahead == 'a') ADVANCE(51); |
105 | + if (lookahead == 'd') ADVANCE(17); |
106 | + if (lookahead == 'f') ADVANCE(35); |
107 | + if (lookahead == 'i') ADVANCE(53); |
108 | + if (lookahead == 'm') ADVANCE(58); |
109 | + if (lookahead == 'n') ADVANCE(18); |
110 | + if (lookahead == 'r') ADVANCE(27); |
111 | + if (lookahead == 's') ADVANCE(36); |
112 | + if (lookahead == 't') ADVANCE(56); |
113 | + if (('b' <= lookahead && lookahead <= 'e')) ADVANCE(78); |
114 | if (('\t' <= lookahead && lookahead <= '\f') || |
115 | - lookahead == ' ') SKIP(83) |
116 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(120); |
117 | + lookahead == ' ') SKIP(79) |
118 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); |
119 | END_STATE(); |
120 | case 1: |
121 | - if (lookahead == '\n') ADVANCE(90); |
122 | + if (lookahead == '\n') ADVANCE(86); |
123 | END_STATE(); |
124 | case 2: |
125 | if (lookahead == '+') ADVANCE(3); |
126 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(200); |
127 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(195); |
128 | END_STATE(); |
129 | case 3: |
130 | - if (lookahead == '+') ADVANCE(152); |
131 | + if (lookahead == '+') ADVANCE(147); |
132 | END_STATE(); |
133 | case 4: |
134 | - if (lookahead == '-') ADVANCE(36); |
135 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(200); |
136 | + if (lookahead == '.') ADVANCE(102); |
137 | END_STATE(); |
138 | case 5: |
139 | - if (lookahead == '.') ADVANCE(107); |
140 | + if (lookahead == '@') ADVANCE(149); |
141 | END_STATE(); |
142 | case 6: |
143 | - if (lookahead == '@') ADVANCE(154); |
144 | + if (lookahead == '@') ADVANCE(150); |
145 | END_STATE(); |
146 | case 7: |
147 | - if (lookahead == '@') ADVANCE(155); |
148 | + if (lookahead == 'a') ADVANCE(59); |
149 | END_STATE(); |
150 | case 8: |
151 | - if (lookahead == 'a') ADVANCE(63); |
152 | - END_STATE(); |
153 | - case 9: |
154 | - if (lookahead == 'a') ADVANCE(209); |
155 | + if (lookahead == 'a') ADVANCE(204); |
156 | if (lookahead == '\t' || |
157 | - lookahead == ' ') SKIP(9) |
158 | + lookahead == ' ') SKIP(8) |
159 | if (lookahead == 11 || |
160 | - lookahead == '\f') ADVANCE(202); |
161 | + lookahead == '\f') ADVANCE(197); |
162 | if (lookahead != 0 && |
163 | - (lookahead < '\n' || '\r' < lookahead)) ADVANCE(212); |
164 | + (lookahead < '\n' || '\r' < lookahead)) ADVANCE(207); |
165 | + END_STATE(); |
166 | + case 9: |
167 | + if (lookahead == 'a') ADVANCE(61); |
168 | END_STATE(); |
169 | case 10: |
170 | - if (lookahead == 'a') ADVANCE(54); |
171 | + if (lookahead == 'a') ADVANCE(50); |
172 | END_STATE(); |
173 | case 11: |
174 | - if (lookahead == 'a') ADVANCE(65); |
175 | + if (lookahead == 'd') ADVANCE(97); |
176 | END_STATE(); |
177 | case 12: |
178 | - if (lookahead == 'd') ADVANCE(102); |
179 | + if (lookahead == 'd') ADVANCE(89); |
180 | END_STATE(); |
181 | case 13: |
182 | - if (lookahead == 'd') ADVANCE(94); |
183 | - END_STATE(); |
184 | - case 14: |
185 | - if (lookahead == 'd') ADVANCE(208); |
186 | + if (lookahead == 'd') ADVANCE(203); |
187 | if (lookahead == '\t' || |
188 | - lookahead == ' ') SKIP(14) |
189 | + lookahead == ' ') SKIP(13) |
190 | if (lookahead == 11 || |
191 | - lookahead == '\f') ADVANCE(203); |
192 | + lookahead == '\f') ADVANCE(198); |
193 | if (lookahead != 0 && |
194 | - (lookahead < '\n' || '\r' < lookahead)) ADVANCE(212); |
195 | + (lookahead < '\n' || '\r' < lookahead)) ADVANCE(207); |
196 | + END_STATE(); |
197 | + case 14: |
198 | + if (lookahead == 'd') ADVANCE(22); |
199 | END_STATE(); |
200 | case 15: |
201 | if (lookahead == 'd') ADVANCE(23); |
202 | END_STATE(); |
203 | case 16: |
204 | - if (lookahead == 'd') ADVANCE(24); |
205 | + if (lookahead == 'd') ADVANCE(26); |
206 | END_STATE(); |
207 | case 17: |
208 | - if (lookahead == 'd') ADVANCE(28); |
209 | - END_STATE(); |
210 | - case 18: |
211 | - if (lookahead == 'e') ADVANCE(47); |
212 | + if (lookahead == 'e') ADVANCE(43); |
213 | if (lookahead == 'i') ADVANCE(32); |
214 | if (('0' <= lookahead && lookahead <= '9') || |
215 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
216 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
217 | + END_STATE(); |
218 | + case 18: |
219 | + if (lookahead == 'e') ADVANCE(65); |
220 | END_STATE(); |
221 | case 19: |
222 | - if (lookahead == 'e') ADVANCE(70); |
223 | + if (lookahead == 'e') ADVANCE(89); |
224 | END_STATE(); |
225 | case 20: |
226 | - if (lookahead == 'e') ADVANCE(94); |
227 | + if (lookahead == 'e') ADVANCE(64); |
228 | END_STATE(); |
229 | case 21: |
230 | - if (lookahead == 'e') ADVANCE(69); |
231 | + if (lookahead == 'e') ADVANCE(91); |
232 | END_STATE(); |
233 | case 22: |
234 | - if (lookahead == 'e') ADVANCE(96); |
235 | + if (lookahead == 'e') ADVANCE(66); |
236 | END_STATE(); |
237 | case 23: |
238 | - if (lookahead == 'e') ADVANCE(71); |
239 | + if (lookahead == 'e') ADVANCE(92); |
240 | END_STATE(); |
241 | case 24: |
242 | - if (lookahead == 'e') ADVANCE(97); |
243 | + if (lookahead == 'e') ADVANCE(90); |
244 | END_STATE(); |
245 | case 25: |
246 | - if (lookahead == 'e') ADVANCE(95); |
247 | + if (lookahead == 'e') ADVANCE(62); |
248 | END_STATE(); |
249 | case 26: |
250 | - if (lookahead == 'e') ADVANCE(66); |
251 | + if (lookahead == 'e') ADVANCE(67); |
252 | END_STATE(); |
253 | case 27: |
254 | - if (lookahead == 'e') ADVANCE(64); |
255 | + if (lookahead == 'e') ADVANCE(54); |
256 | END_STATE(); |
257 | case 28: |
258 | - if (lookahead == 'e') ADVANCE(72); |
259 | + if (lookahead == 'e') ADVANCE(12); |
260 | END_STATE(); |
261 | case 29: |
262 | - if (lookahead == 'e') ADVANCE(58); |
263 | + if (lookahead == 'e') ADVANCE(60); |
264 | END_STATE(); |
265 | case 30: |
266 | - if (lookahead == 'e') ADVANCE(13); |
267 | + if (lookahead == 'f') ADVANCE(87); |
268 | END_STATE(); |
269 | case 31: |
270 | - if (lookahead == 'f') ADVANCE(92); |
271 | - END_STATE(); |
272 | - case 32: |
273 | - if (lookahead == 'f') ADVANCE(31); |
274 | - END_STATE(); |
275 | - case 33: |
276 | - if (lookahead == 'f') ADVANCE(46); |
277 | + if (lookahead == 'f') ADVANCE(42); |
278 | if (lookahead == '\t' || |
279 | lookahead == 11 || |
280 | lookahead == '\f' || |
281 | - lookahead == ' ') SKIP(33) |
282 | + lookahead == ' ') SKIP(31) |
283 | if (('0' <= lookahead && lookahead <= '9') || |
284 | - ('a' <= lookahead && lookahead <= 'e')) ADVANCE(82); |
285 | + ('a' <= lookahead && lookahead <= 'e')) ADVANCE(78); |
286 | + END_STATE(); |
287 | + case 32: |
288 | + if (lookahead == 'f') ADVANCE(30); |
289 | + END_STATE(); |
290 | + case 33: |
291 | + if (lookahead == 'f') ADVANCE(34); |
292 | END_STATE(); |
293 | case 34: |
294 | - if (lookahead == 'f') ADVANCE(35); |
295 | + if (lookahead == 'f') ADVANCE(29); |
296 | END_STATE(); |
297 | case 35: |
298 | - if (lookahead == 'f') ADVANCE(27); |
299 | + if (lookahead == 'i') ADVANCE(44); |
300 | + if (lookahead == 'r') ADVANCE(57); |
301 | + if (('0' <= lookahead && lookahead <= '9') || |
302 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
303 | END_STATE(); |
304 | case 36: |
305 | - if (lookahead == 'g') ADVANCE(42); |
306 | + if (lookahead == 'i') ADVANCE(49); |
307 | END_STATE(); |
308 | case 37: |
309 | - if (lookahead == 'i') ADVANCE(48); |
310 | - if (lookahead == 'r') ADVANCE(61); |
311 | - if (('0' <= lookahead && lookahead <= '9') || |
312 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
313 | + if (lookahead == 'i') ADVANCE(52); |
314 | END_STATE(); |
315 | case 38: |
316 | - if (lookahead == 'i') ADVANCE(53); |
317 | + if (lookahead == 'i') ADVANCE(47); |
318 | END_STATE(); |
319 | case 39: |
320 | - if (lookahead == 'i') ADVANCE(56); |
321 | + if (lookahead == 'i') ADVANCE(63); |
322 | END_STATE(); |
323 | case 40: |
324 | - if (lookahead == 'i') ADVANCE(51); |
325 | + if (lookahead == 'i') ADVANCE(33); |
326 | END_STATE(); |
327 | case 41: |
328 | - if (lookahead == 'i') ADVANCE(68); |
329 | + if (lookahead == 'i') ADVANCE(45); |
330 | + if (lookahead == 'r') ADVANCE(57); |
331 | END_STATE(); |
332 | case 42: |
333 | - if (lookahead == 'i') ADVANCE(67); |
334 | + if (lookahead == 'i') ADVANCE(46); |
335 | + if (('0' <= lookahead && lookahead <= '9') || |
336 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
337 | END_STATE(); |
338 | case 43: |
339 | - if (lookahead == 'i') ADVANCE(34); |
340 | + if (lookahead == 'l') ADVANCE(20); |
341 | + if (('0' <= lookahead && lookahead <= '9') || |
342 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(76); |
343 | END_STATE(); |
344 | case 44: |
345 | - if (lookahead == 'i') ADVANCE(34); |
346 | - if (('0' <= lookahead && lookahead <= '9') || |
347 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
348 | + if (lookahead == 'l') ADVANCE(21); |
349 | END_STATE(); |
350 | case 45: |
351 | - if (lookahead == 'i') ADVANCE(49); |
352 | - if (lookahead == 'r') ADVANCE(61); |
353 | + if (lookahead == 'l') ADVANCE(24); |
354 | END_STATE(); |
355 | case 46: |
356 | - if (lookahead == 'i') ADVANCE(50); |
357 | - if (('0' <= lookahead && lookahead <= '9') || |
358 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
359 | + if (lookahead == 'l') ADVANCE(25); |
360 | END_STATE(); |
361 | case 47: |
362 | - if (lookahead == 'l') ADVANCE(21); |
363 | - if (('0' <= lookahead && lookahead <= '9') || |
364 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(80); |
365 | + if (lookahead == 'l') ADVANCE(9); |
366 | END_STATE(); |
367 | case 48: |
368 | - if (lookahead == 'l') ADVANCE(22); |
369 | + if (lookahead == 'm') ADVANCE(93); |
370 | END_STATE(); |
371 | case 49: |
372 | - if (lookahead == 'l') ADVANCE(25); |
373 | + if (lookahead == 'm') ADVANCE(38); |
374 | END_STATE(); |
375 | case 50: |
376 | - if (lookahead == 'l') ADVANCE(26); |
377 | + if (lookahead == 'm') ADVANCE(19); |
378 | END_STATE(); |
379 | case 51: |
380 | - if (lookahead == 'l') ADVANCE(11); |
381 | + if (lookahead == 'n') ADVANCE(11); |
382 | + if (('0' <= lookahead && lookahead <= '9') || |
383 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
384 | END_STATE(); |
385 | case 52: |
386 | - if (lookahead == 'm') ADVANCE(98); |
387 | + if (lookahead == 'n') ADVANCE(7); |
388 | END_STATE(); |
389 | case 53: |
390 | - if (lookahead == 'm') ADVANCE(40); |
391 | + if (lookahead == 'n') ADVANCE(14); |
392 | END_STATE(); |
393 | case 54: |
394 | - if (lookahead == 'm') ADVANCE(20); |
395 | + if (lookahead == 'n') ADVANCE(10); |
396 | END_STATE(); |
397 | case 55: |
398 | - if (lookahead == 'n') ADVANCE(12); |
399 | - if (('0' <= lookahead && lookahead <= '9') || |
400 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
401 | + if (lookahead == 'n') ADVANCE(16); |
402 | END_STATE(); |
403 | case 56: |
404 | - if (lookahead == 'n') ADVANCE(8); |
405 | + if (lookahead == 'o') ADVANCE(94); |
406 | END_STATE(); |
407 | case 57: |
408 | - if (lookahead == 'n') ADVANCE(15); |
409 | + if (lookahead == 'o') ADVANCE(48); |
410 | END_STATE(); |
411 | case 58: |
412 | - if (lookahead == 'n') ADVANCE(10); |
413 | + if (lookahead == 'o') ADVANCE(15); |
414 | END_STATE(); |
415 | case 59: |
416 | - if (lookahead == 'n') ADVANCE(17); |
417 | + if (lookahead == 'r') ADVANCE(68); |
418 | END_STATE(); |
419 | case 60: |
420 | - if (lookahead == 'o') ADVANCE(99); |
421 | + if (lookahead == 'r') ADVANCE(99); |
422 | END_STATE(); |
423 | case 61: |
424 | - if (lookahead == 'o') ADVANCE(52); |
425 | + if (lookahead == 'r') ADVANCE(39); |
426 | END_STATE(); |
427 | case 62: |
428 | - if (lookahead == 'o') ADVANCE(16); |
429 | + if (lookahead == 's') ADVANCE(96); |
430 | END_STATE(); |
431 | case 63: |
432 | - if (lookahead == 'r') ADVANCE(73); |
433 | + if (lookahead == 't') ADVANCE(69); |
434 | END_STATE(); |
435 | case 64: |
436 | - if (lookahead == 'r') ADVANCE(104); |
437 | + if (lookahead == 't') ADVANCE(28); |
438 | END_STATE(); |
439 | case 65: |
440 | - if (lookahead == 'r') ADVANCE(41); |
441 | + if (lookahead == 'w') ADVANCE(89); |
442 | END_STATE(); |
443 | case 66: |
444 | - if (lookahead == 's') ADVANCE(101); |
445 | + if (lookahead == 'x') ADVANCE(101); |
446 | END_STATE(); |
447 | case 67: |
448 | - if (lookahead == 't') ADVANCE(93); |
449 | + if (lookahead == 'x') ADVANCE(104); |
450 | END_STATE(); |
451 | case 68: |
452 | - if (lookahead == 't') ADVANCE(74); |
453 | + if (lookahead == 'y') ADVANCE(95); |
454 | END_STATE(); |
455 | case 69: |
456 | - if (lookahead == 't') ADVANCE(30); |
457 | + if (lookahead == 'y') ADVANCE(103); |
458 | END_STATE(); |
459 | case 70: |
460 | - if (lookahead == 'w') ADVANCE(94); |
461 | + if (lookahead == '\t' || |
462 | + lookahead == 11 || |
463 | + lookahead == '\f' || |
464 | + lookahead == ' ') SKIP(70) |
465 | + if (lookahead == '-' || |
466 | + ('0' <= lookahead && lookahead <= '9') || |
467 | + ('A' <= lookahead && lookahead <= 'Z') || |
468 | + lookahead == '_' || |
469 | + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(88); |
470 | END_STATE(); |
471 | case 71: |
472 | - if (lookahead == 'x') ADVANCE(106); |
473 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(195); |
474 | END_STATE(); |
475 | case 72: |
476 | - if (lookahead == 'x') ADVANCE(109); |
477 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(196); |
478 | END_STATE(); |
479 | case 73: |
480 | - if (lookahead == 'y') ADVANCE(100); |
481 | + if (('0' <= lookahead && lookahead <= '9') || |
482 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(241); |
483 | END_STATE(); |
484 | case 74: |
485 | - if (lookahead == 'y') ADVANCE(108); |
486 | + if (('0' <= lookahead && lookahead <= '9') || |
487 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(73); |
488 | END_STATE(); |
489 | case 75: |
490 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(200); |
491 | + if (('0' <= lookahead && lookahead <= '9') || |
492 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(74); |
493 | END_STATE(); |
494 | case 76: |
495 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(201); |
496 | + if (('0' <= lookahead && lookahead <= '9') || |
497 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(75); |
498 | END_STATE(); |
499 | case 77: |
500 | if (('0' <= lookahead && lookahead <= '9') || |
501 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(246); |
502 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(76); |
503 | END_STATE(); |
504 | case 78: |
505 | if (('0' <= lookahead && lookahead <= '9') || |
506 | ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
507 | END_STATE(); |
508 | case 79: |
509 | - if (('0' <= lookahead && lookahead <= '9') || |
510 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(78); |
511 | - END_STATE(); |
512 | - case 80: |
513 | - if (('0' <= lookahead && lookahead <= '9') || |
514 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(79); |
515 | - END_STATE(); |
516 | - case 81: |
517 | - if (('0' <= lookahead && lookahead <= '9') || |
518 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(80); |
519 | - END_STATE(); |
520 | - case 82: |
521 | - if (('0' <= lookahead && lookahead <= '9') || |
522 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
523 | - END_STATE(); |
524 | - case 83: |
525 | - if (eof) ADVANCE(89); |
526 | - if (lookahead == '\n') ADVANCE(90); |
527 | + if (eof) ADVANCE(85); |
528 | + if (lookahead == '\n') ADVANCE(86); |
529 | if (lookahead == '\r') ADVANCE(1); |
530 | - if (lookahead == '%') ADVANCE(150); |
531 | - if (lookahead == '.') ADVANCE(5); |
532 | - if (lookahead == '@') ADVANCE(7); |
533 | - if (lookahead == 'a') ADVANCE(55); |
534 | - if (lookahead == 'd') ADVANCE(44); |
535 | - if (lookahead == 'f') ADVANCE(37); |
536 | - if (lookahead == 'i') ADVANCE(59); |
537 | - if (lookahead == 'm') ADVANCE(62); |
538 | - if (lookahead == 't') ADVANCE(60); |
539 | - if (('b' <= lookahead && lookahead <= 'e')) ADVANCE(82); |
540 | + if (lookahead == '%') ADVANCE(145); |
541 | + if (lookahead == '.') ADVANCE(4); |
542 | + if (lookahead == '@') ADVANCE(6); |
543 | + if (lookahead == 'a') ADVANCE(51); |
544 | + if (lookahead == 'f') ADVANCE(35); |
545 | + if (lookahead == 'i') ADVANCE(55); |
546 | + if (lookahead == 'm') ADVANCE(58); |
547 | + if (lookahead == 't') ADVANCE(56); |
548 | if (('\t' <= lookahead && lookahead <= '\f') || |
549 | - lookahead == ' ') SKIP(83) |
550 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(120); |
551 | + lookahead == ' ') SKIP(79) |
552 | + if (('b' <= lookahead && lookahead <= 'e')) ADVANCE(78); |
553 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); |
554 | END_STATE(); |
555 | - case 84: |
556 | - if (eof) ADVANCE(89); |
557 | - if (lookahead == '\n') ADVANCE(90); |
558 | + case 80: |
559 | + if (eof) ADVANCE(85); |
560 | + if (lookahead == '\n') ADVANCE(86); |
561 | if (lookahead == '\r') ADVANCE(1); |
562 | - if (lookahead == '+') ADVANCE(158); |
563 | - if (lookahead == '-') ADVANCE(161); |
564 | - if (lookahead == '@') ADVANCE(165); |
565 | - if (lookahead == 'B') ADVANCE(181); |
566 | - if (lookahead == 'd') ADVANCE(172); |
567 | - if (lookahead == 'i') ADVANCE(188); |
568 | - if (lookahead == 'n') ADVANCE(173); |
569 | - if (lookahead == 'r') ADVANCE(177); |
570 | - if (lookahead == 's') ADVANCE(180); |
571 | + if (lookahead == '+') ADVANCE(153); |
572 | + if (lookahead == '-') ADVANCE(156); |
573 | + if (lookahead == '@') ADVANCE(160); |
574 | + if (lookahead == 'B') ADVANCE(176); |
575 | + if (lookahead == 'd') ADVANCE(167); |
576 | + if (lookahead == 'i') ADVANCE(183); |
577 | + if (lookahead == 'n') ADVANCE(168); |
578 | + if (lookahead == 'r') ADVANCE(172); |
579 | + if (lookahead == 's') ADVANCE(175); |
580 | if (('\t' <= lookahead && lookahead <= '\f') || |
581 | - lookahead == ' ') ADVANCE(164); |
582 | - if (lookahead != 0) ADVANCE(199); |
583 | + lookahead == ' ') ADVANCE(159); |
584 | + if (lookahead != 0) ADVANCE(194); |
585 | END_STATE(); |
586 | - case 85: |
587 | - if (eof) ADVANCE(89); |
588 | - if (lookahead == '\n') ADVANCE(90); |
589 | + case 81: |
590 | + if (eof) ADVANCE(85); |
591 | + if (lookahead == '\n') ADVANCE(86); |
592 | if (lookahead == '\r') ADVANCE(1); |
593 | if (lookahead == '+') ADVANCE(2); |
594 | - if (lookahead == '-') ADVANCE(4); |
595 | - if (lookahead == '@') ADVANCE(7); |
596 | - if (lookahead == 'd') ADVANCE(43); |
597 | - if (lookahead == 'f') ADVANCE(45); |
598 | - if (lookahead == 'i') ADVANCE(59); |
599 | - if (lookahead == 't') ADVANCE(60); |
600 | + if (lookahead == '-') ADVANCE(71); |
601 | + if (lookahead == '@') ADVANCE(6); |
602 | + if (lookahead == 'd') ADVANCE(40); |
603 | + if (lookahead == 'f') ADVANCE(41); |
604 | + if (lookahead == 'i') ADVANCE(55); |
605 | + if (lookahead == 't') ADVANCE(56); |
606 | if (('\t' <= lookahead && lookahead <= '\f') || |
607 | - lookahead == ' ') SKIP(86) |
608 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(149); |
609 | + lookahead == ' ') SKIP(82) |
610 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(144); |
611 | END_STATE(); |
612 | - case 86: |
613 | - if (eof) ADVANCE(89); |
614 | - if (lookahead == '\n') ADVANCE(90); |
615 | + case 82: |
616 | + if (eof) ADVANCE(85); |
617 | + if (lookahead == '\n') ADVANCE(86); |
618 | if (lookahead == '\r') ADVANCE(1); |
619 | - if (lookahead == '+') ADVANCE(75); |
620 | - if (lookahead == '-') ADVANCE(4); |
621 | - if (lookahead == '@') ADVANCE(7); |
622 | - if (lookahead == 'd') ADVANCE(43); |
623 | - if (lookahead == 'f') ADVANCE(45); |
624 | - if (lookahead == 'i') ADVANCE(59); |
625 | - if (lookahead == 't') ADVANCE(60); |
626 | + if (lookahead == '@') ADVANCE(6); |
627 | + if (lookahead == 'd') ADVANCE(40); |
628 | + if (lookahead == 'f') ADVANCE(41); |
629 | + if (lookahead == 'i') ADVANCE(55); |
630 | + if (lookahead == 't') ADVANCE(56); |
631 | + if (lookahead == '+' || |
632 | + lookahead == '-') ADVANCE(71); |
633 | if (('\t' <= lookahead && lookahead <= '\f') || |
634 | - lookahead == ' ') SKIP(86) |
635 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(149); |
636 | + lookahead == ' ') SKIP(82) |
637 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(144); |
638 | END_STATE(); |
639 | - case 87: |
640 | - if (eof) ADVANCE(89); |
641 | - if (lookahead == '\n') ADVANCE(90); |
642 | + case 83: |
643 | + if (eof) ADVANCE(85); |
644 | + if (lookahead == '\n') ADVANCE(86); |
645 | if (lookahead == '\r') ADVANCE(1); |
646 | if (lookahead == '\t' || |
647 | - lookahead == ' ') SKIP(87) |
648 | + lookahead == ' ') SKIP(83) |
649 | if (lookahead == 11 || |
650 | - lookahead == '\f') ADVANCE(211); |
651 | - if (lookahead != 0) ADVANCE(212); |
652 | + lookahead == '\f') ADVANCE(206); |
653 | + if (lookahead != 0) ADVANCE(207); |
654 | END_STATE(); |
655 | - case 88: |
656 | - if (eof) ADVANCE(89); |
657 | - if (lookahead == '\n') ADVANCE(90); |
658 | + case 84: |
659 | + if (eof) ADVANCE(85); |
660 | + if (lookahead == '\n') ADVANCE(86); |
661 | if (lookahead == '\r') ADVANCE(1); |
662 | if (('\t' <= lookahead && lookahead <= '\f') || |
663 | - lookahead == ' ') ADVANCE(156); |
664 | - if (lookahead != 0) ADVANCE(157); |
665 | + lookahead == ' ') ADVANCE(151); |
666 | + if (lookahead != 0) ADVANCE(152); |
667 | END_STATE(); |
668 | - case 89: |
669 | + case 85: |
670 | ACCEPT_TOKEN(ts_builtin_sym_end); |
671 | END_STATE(); |
672 | - case 90: |
673 | + case 86: |
674 | ACCEPT_TOKEN(aux_sym_source_token1); |
675 | END_STATE(); |
676 | - case 91: |
677 | - ACCEPT_TOKEN(anon_sym_diff); |
678 | - END_STATE(); |
679 | - case 92: |
680 | + case 87: |
681 | ACCEPT_TOKEN(anon_sym_diff); |
682 | - if (lookahead == 'e') ADVANCE(64); |
683 | END_STATE(); |
684 | - case 93: |
685 | - ACCEPT_TOKEN(anon_sym_DASH_DASHgit); |
686 | + case 88: |
687 | + ACCEPT_TOKEN(aux_sym_command_token1); |
688 | + if (lookahead == '-' || |
689 | + ('0' <= lookahead && lookahead <= '9') || |
690 | + ('A' <= lookahead && lookahead <= 'Z') || |
691 | + lookahead == '_' || |
692 | + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(88); |
693 | END_STATE(); |
694 | - case 94: |
695 | + case 89: |
696 | ACCEPT_TOKEN(aux_sym_file_change_token1); |
697 | END_STATE(); |
698 | - case 95: |
699 | + case 90: |
700 | ACCEPT_TOKEN(anon_sym_file); |
701 | END_STATE(); |
702 | - case 96: |
703 | + case 91: |
704 | ACCEPT_TOKEN(anon_sym_file); |
705 | - if (lookahead == 's') ADVANCE(101); |
706 | + if (lookahead == 's') ADVANCE(96); |
707 | END_STATE(); |
708 | - case 97: |
709 | + case 92: |
710 | ACCEPT_TOKEN(anon_sym_mode); |
711 | END_STATE(); |
712 | - case 98: |
713 | + case 93: |
714 | ACCEPT_TOKEN(anon_sym_from); |
715 | END_STATE(); |
716 | - case 99: |
717 | + case 94: |
718 | ACCEPT_TOKEN(anon_sym_to); |
719 | END_STATE(); |
720 | - case 100: |
721 | + case 95: |
722 | ACCEPT_TOKEN(anon_sym_Binary); |
723 | END_STATE(); |
724 | - case 101: |
725 | + case 96: |
726 | ACCEPT_TOKEN(anon_sym_files); |
727 | END_STATE(); |
728 | - case 102: |
729 | + case 97: |
730 | ACCEPT_TOKEN(anon_sym_and); |
731 | END_STATE(); |
732 | - case 103: |
733 | + case 98: |
734 | ACCEPT_TOKEN(anon_sym_and); |
735 | if (lookahead != 0 && |
736 | lookahead != '\t' && |
737 | lookahead != '\n' && |
738 | lookahead != '\r' && |
739 | - lookahead != ' ') ADVANCE(212); |
740 | + lookahead != ' ') ADVANCE(207); |
741 | END_STATE(); |
742 | - case 104: |
743 | + case 99: |
744 | ACCEPT_TOKEN(anon_sym_differ); |
745 | END_STATE(); |
746 | - case 105: |
747 | + case 100: |
748 | ACCEPT_TOKEN(anon_sym_differ); |
749 | if (lookahead != 0 && |
750 | lookahead != '\t' && |
751 | lookahead != '\n' && |
752 | lookahead != '\r' && |
753 | - lookahead != ' ') ADVANCE(212); |
754 | + lookahead != ' ') ADVANCE(207); |
755 | END_STATE(); |
756 | - case 106: |
757 | + case 101: |
758 | ACCEPT_TOKEN(anon_sym_index); |
759 | END_STATE(); |
760 | - case 107: |
761 | + case 102: |
762 | ACCEPT_TOKEN(anon_sym_DOT_DOT); |
763 | END_STATE(); |
764 | - case 108: |
765 | + case 103: |
766 | ACCEPT_TOKEN(anon_sym_similarity); |
767 | END_STATE(); |
768 | - case 109: |
769 | + case 104: |
770 | ACCEPT_TOKEN(anon_sym_index2); |
771 | END_STATE(); |
772 | + case 105: |
773 | + ACCEPT_TOKEN(aux_sym_similarity_token1); |
774 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(241); |
775 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(143); |
776 | + END_STATE(); |
777 | + case 106: |
778 | + ACCEPT_TOKEN(aux_sym_similarity_token1); |
779 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(208); |
780 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(144); |
781 | + END_STATE(); |
782 | + case 107: |
783 | + ACCEPT_TOKEN(aux_sym_similarity_token1); |
784 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(73); |
785 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(105); |
786 | + END_STATE(); |
787 | + case 108: |
788 | + ACCEPT_TOKEN(aux_sym_similarity_token1); |
789 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(209); |
790 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(106); |
791 | + END_STATE(); |
792 | + case 109: |
793 | + ACCEPT_TOKEN(aux_sym_similarity_token1); |
794 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(74); |
795 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(107); |
796 | + END_STATE(); |
797 | case 110: |
798 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
799 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(246); |
800 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(148); |
801 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(210); |
802 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(108); |
803 | END_STATE(); |
804 | case 111: |
805 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
806 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(213); |
807 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(149); |
808 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(75); |
809 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(109); |
810 | END_STATE(); |
811 | case 112: |
812 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
813 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
814 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(211); |
815 | if (('0' <= lookahead && lookahead <= '9')) ADVANCE(110); |
816 | END_STATE(); |
817 | case 113: |
818 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
819 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(214); |
820 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(76); |
821 | if (('0' <= lookahead && lookahead <= '9')) ADVANCE(111); |
822 | END_STATE(); |
823 | case 114: |
824 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
825 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(78); |
826 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(212); |
827 | if (('0' <= lookahead && lookahead <= '9')) ADVANCE(112); |
828 | END_STATE(); |
829 | case 115: |
830 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
831 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(215); |
832 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); |
833 | if (('0' <= lookahead && lookahead <= '9')) ADVANCE(113); |
834 | END_STATE(); |
835 | case 116: |
836 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
837 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(79); |
838 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(213); |
839 | if (('0' <= lookahead && lookahead <= '9')) ADVANCE(114); |
840 | END_STATE(); |
841 | case 117: |
842 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
843 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(216); |
844 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); |
845 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(214); |
846 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(116); |
847 | END_STATE(); |
848 | case 118: |
849 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
850 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(80); |
851 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(116); |
852 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(215); |
853 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(117); |
854 | END_STATE(); |
855 | case 119: |
856 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
857 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(217); |
858 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(117); |
859 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(216); |
860 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(118); |
861 | END_STATE(); |
862 | case 120: |
863 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
864 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); |
865 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(118); |
866 | + if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(217); |
867 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(119); |
868 | END_STATE(); |
869 | case 121: |
870 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
871 | if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(218); |
872 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(119); |
873 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(120); |
874 | END_STATE(); |
875 | case 122: |
876 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
877 | @@ -1201,451 +1219,451 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { |
878 | END_STATE(); |
879 | case 144: |
880 | ACCEPT_TOKEN(aux_sym_similarity_token1); |
881 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(241); |
882 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(143); |
883 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(144); |
884 | END_STATE(); |
885 | case 145: |
886 | - ACCEPT_TOKEN(aux_sym_similarity_token1); |
887 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(242); |
888 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(144); |
889 | + ACCEPT_TOKEN(anon_sym_PERCENT); |
890 | END_STATE(); |
891 | case 146: |
892 | - ACCEPT_TOKEN(aux_sym_similarity_token1); |
893 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(243); |
894 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(145); |
895 | + ACCEPT_TOKEN(anon_sym_DASH_DASH_DASH); |
896 | + if (lookahead == '-') ADVANCE(158); |
897 | END_STATE(); |
898 | case 147: |
899 | - ACCEPT_TOKEN(aux_sym_similarity_token1); |
900 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(244); |
901 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(146); |
902 | + ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS); |
903 | END_STATE(); |
904 | case 148: |
905 | - ACCEPT_TOKEN(aux_sym_similarity_token1); |
906 | - if (('a' <= lookahead && lookahead <= 'f')) ADVANCE(245); |
907 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(147); |
908 | + ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS); |
909 | + if (lookahead == '+') ADVANCE(155); |
910 | END_STATE(); |
911 | case 149: |
912 | - ACCEPT_TOKEN(aux_sym_similarity_token1); |
913 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(149); |
914 | + ACCEPT_TOKEN(anon_sym_AT_AT); |
915 | END_STATE(); |
916 | case 150: |
917 | - ACCEPT_TOKEN(anon_sym_PERCENT); |
918 | + ACCEPT_TOKEN(anon_sym_AT_AT2); |
919 | END_STATE(); |
920 | case 151: |
921 | - ACCEPT_TOKEN(anon_sym_DASH_DASH_DASH); |
922 | - if (lookahead == '-') ADVANCE(163); |
923 | + ACCEPT_TOKEN(aux_sym_location_token1); |
924 | + if (lookahead == '\t' || |
925 | + lookahead == 11 || |
926 | + lookahead == '\f' || |
927 | + lookahead == ' ') ADVANCE(151); |
928 | + if (lookahead != 0 && |
929 | + (lookahead < '\n' || '\r' < lookahead)) ADVANCE(152); |
930 | END_STATE(); |
931 | case 152: |
932 | - ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS); |
933 | + ACCEPT_TOKEN(aux_sym_location_token1); |
934 | + if (lookahead != 0 && |
935 | + lookahead != '\n' && |
936 | + lookahead != '\r') ADVANCE(152); |
937 | END_STATE(); |
938 | case 153: |
939 | - ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS); |
940 | - if (lookahead == '+') ADVANCE(160); |
941 | + ACCEPT_TOKEN(anon_sym_PLUS); |
942 | + if (lookahead == '+') ADVANCE(154); |
943 | END_STATE(); |
944 | case 154: |
945 | - ACCEPT_TOKEN(anon_sym_AT_AT); |
946 | + ACCEPT_TOKEN(anon_sym_PLUS_PLUS); |
947 | + if (lookahead == '+') ADVANCE(148); |
948 | END_STATE(); |
949 | case 155: |
950 | - ACCEPT_TOKEN(anon_sym_AT_AT2); |
951 | + ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS_PLUS); |
952 | END_STATE(); |
953 | case 156: |
954 | - ACCEPT_TOKEN(aux_sym_location_token1); |
955 | - if (lookahead == '\t' || |
956 | - lookahead == 11 || |
957 | - lookahead == '\f' || |
958 | - lookahead == ' ') ADVANCE(156); |
959 | - if (lookahead != 0 && |
960 | - (lookahead < '\n' || '\r' < lookahead)) ADVANCE(157); |
961 | + ACCEPT_TOKEN(anon_sym_DASH); |
962 | + if (lookahead == '-') ADVANCE(157); |
963 | END_STATE(); |
964 | case 157: |
965 | - ACCEPT_TOKEN(aux_sym_location_token1); |
966 | - if (lookahead != 0 && |
967 | - lookahead != '\n' && |
968 | - lookahead != '\r') ADVANCE(157); |
969 | + ACCEPT_TOKEN(anon_sym_DASH_DASH); |
970 | + if (lookahead == '-') ADVANCE(146); |
971 | END_STATE(); |
972 | case 158: |
973 | - ACCEPT_TOKEN(anon_sym_PLUS); |
974 | - if (lookahead == '+') ADVANCE(159); |
975 | + ACCEPT_TOKEN(anon_sym_DASH_DASH_DASH_DASH); |
976 | END_STATE(); |
977 | case 159: |
978 | - ACCEPT_TOKEN(anon_sym_PLUS_PLUS); |
979 | - if (lookahead == '+') ADVANCE(153); |
980 | + ACCEPT_TOKEN(sym_context); |
981 | + if (lookahead == '\n') ADVANCE(86); |
982 | + if (lookahead == '\r') ADVANCE(1); |
983 | + if (('\t' <= lookahead && lookahead <= '\f') || |
984 | + lookahead == ' ') ADVANCE(159); |
985 | + if (lookahead != 0) ADVANCE(194); |
986 | END_STATE(); |
987 | case 160: |
988 | - ACCEPT_TOKEN(anon_sym_PLUS_PLUS_PLUS_PLUS); |
989 | + ACCEPT_TOKEN(sym_context); |
990 | + if (lookahead == '@') ADVANCE(149); |
991 | + if (lookahead != 0 && |
992 | + lookahead != '\n' && |
993 | + lookahead != '\r') ADVANCE(194); |
994 | END_STATE(); |
995 | case 161: |
996 | - ACCEPT_TOKEN(anon_sym_DASH); |
997 | - if (lookahead == '-') ADVANCE(162); |
998 | + ACCEPT_TOKEN(sym_context); |
999 | + if (lookahead == 'a') ADVANCE(186); |
1000 | + if (lookahead != 0 && |
1001 | + lookahead != '\n' && |
1002 | + lookahead != '\r') ADVANCE(194); |
1003 | END_STATE(); |
1004 | case 162: |
1005 | - ACCEPT_TOKEN(anon_sym_DASH_DASH); |
1006 | - if (lookahead == '-') ADVANCE(151); |
1007 | + ACCEPT_TOKEN(sym_context); |
1008 | + if (lookahead == 'a') ADVANCE(182); |
1009 | + if (lookahead != 0 && |
1010 | + lookahead != '\n' && |
1011 | + lookahead != '\r') ADVANCE(194); |
1012 | END_STATE(); |
1013 | case 163: |
1014 | - ACCEPT_TOKEN(anon_sym_DASH_DASH_DASH_DASH); |
1015 | + ACCEPT_TOKEN(sym_context); |
1016 | + if (lookahead == 'a') ADVANCE(187); |
1017 | + if (lookahead != 0 && |
1018 | + lookahead != '\n' && |
1019 | + lookahead != '\r') ADVANCE(194); |
1020 | END_STATE(); |
1021 | case 164: |
1022 | ACCEPT_TOKEN(sym_context); |
1023 | - if (lookahead == '\n') ADVANCE(90); |
1024 | - if (lookahead == '\r') ADVANCE(1); |
1025 | - if (('\t' <= lookahead && lookahead <= '\f') || |
1026 | - lookahead == ' ') ADVANCE(164); |
1027 | - if (lookahead != 0) ADVANCE(199); |
1028 | + if (lookahead == 'd') ADVANCE(89); |
1029 | + if (lookahead != 0 && |
1030 | + lookahead != '\n' && |
1031 | + lookahead != '\r') ADVANCE(194); |
1032 | END_STATE(); |
1033 | case 165: |
1034 | ACCEPT_TOKEN(sym_context); |
1035 | - if (lookahead == '@') ADVANCE(154); |
1036 | + if (lookahead == 'd') ADVANCE(170); |
1037 | if (lookahead != 0 && |
1038 | lookahead != '\n' && |
1039 | - lookahead != '\r') ADVANCE(199); |
1040 | + lookahead != '\r') ADVANCE(194); |
1041 | END_STATE(); |
1042 | case 166: |
1043 | ACCEPT_TOKEN(sym_context); |
1044 | - if (lookahead == 'a') ADVANCE(191); |
1045 | + if (lookahead == 'e') ADVANCE(89); |
1046 | if (lookahead != 0 && |
1047 | lookahead != '\n' && |
1048 | - lookahead != '\r') ADVANCE(199); |
1049 | + lookahead != '\r') ADVANCE(194); |
1050 | END_STATE(); |
1051 | case 167: |
1052 | ACCEPT_TOKEN(sym_context); |
1053 | - if (lookahead == 'a') ADVANCE(187); |
1054 | + if (lookahead == 'e') ADVANCE(179); |
1055 | + if (lookahead == 'i') ADVANCE(174); |
1056 | if (lookahead != 0 && |
1057 | lookahead != '\n' && |
1058 | - lookahead != '\r') ADVANCE(199); |
1059 | + lookahead != '\r') ADVANCE(194); |
1060 | END_STATE(); |
1061 | case 168: |
1062 | ACCEPT_TOKEN(sym_context); |
1063 | - if (lookahead == 'a') ADVANCE(192); |
1064 | + if (lookahead == 'e') ADVANCE(190); |
1065 | if (lookahead != 0 && |
1066 | lookahead != '\n' && |
1067 | - lookahead != '\r') ADVANCE(199); |
1068 | + lookahead != '\r') ADVANCE(194); |
1069 | END_STATE(); |
1070 | case 169: |
1071 | ACCEPT_TOKEN(sym_context); |
1072 | - if (lookahead == 'd') ADVANCE(94); |
1073 | + if (lookahead == 'e') ADVANCE(189); |
1074 | if (lookahead != 0 && |
1075 | lookahead != '\n' && |
1076 | - lookahead != '\r') ADVANCE(199); |
1077 | + lookahead != '\r') ADVANCE(194); |
1078 | END_STATE(); |
1079 | case 170: |
1080 | ACCEPT_TOKEN(sym_context); |
1081 | - if (lookahead == 'd') ADVANCE(175); |
1082 | + if (lookahead == 'e') ADVANCE(191); |
1083 | if (lookahead != 0 && |
1084 | lookahead != '\n' && |
1085 | - lookahead != '\r') ADVANCE(199); |
1086 | + lookahead != '\r') ADVANCE(194); |
1087 | END_STATE(); |
1088 | case 171: |
1089 | ACCEPT_TOKEN(sym_context); |
1090 | - if (lookahead == 'e') ADVANCE(94); |
1091 | + if (lookahead == 'e') ADVANCE(164); |
1092 | if (lookahead != 0 && |
1093 | lookahead != '\n' && |
1094 | - lookahead != '\r') ADVANCE(199); |
1095 | + lookahead != '\r') ADVANCE(194); |
1096 | END_STATE(); |
1097 | case 172: |
1098 | ACCEPT_TOKEN(sym_context); |
1099 | - if (lookahead == 'e') ADVANCE(184); |
1100 | - if (lookahead == 'i') ADVANCE(179); |
1101 | + if (lookahead == 'e') ADVANCE(185); |
1102 | if (lookahead != 0 && |
1103 | lookahead != '\n' && |
1104 | - lookahead != '\r') ADVANCE(199); |
1105 | + lookahead != '\r') ADVANCE(194); |
1106 | END_STATE(); |
1107 | case 173: |
1108 | ACCEPT_TOKEN(sym_context); |
1109 | - if (lookahead == 'e') ADVANCE(195); |
1110 | + if (lookahead == 'f') ADVANCE(87); |
1111 | if (lookahead != 0 && |
1112 | lookahead != '\n' && |
1113 | - lookahead != '\r') ADVANCE(199); |
1114 | + lookahead != '\r') ADVANCE(194); |
1115 | END_STATE(); |
1116 | case 174: |
1117 | ACCEPT_TOKEN(sym_context); |
1118 | - if (lookahead == 'e') ADVANCE(194); |
1119 | + if (lookahead == 'f') ADVANCE(173); |
1120 | if (lookahead != 0 && |
1121 | lookahead != '\n' && |
1122 | - lookahead != '\r') ADVANCE(199); |
1123 | + lookahead != '\r') ADVANCE(194); |
1124 | END_STATE(); |
1125 | case 175: |
1126 | ACCEPT_TOKEN(sym_context); |
1127 | - if (lookahead == 'e') ADVANCE(196); |
1128 | + if (lookahead == 'i') ADVANCE(181); |
1129 | if (lookahead != 0 && |
1130 | lookahead != '\n' && |
1131 | - lookahead != '\r') ADVANCE(199); |
1132 | + lookahead != '\r') ADVANCE(194); |
1133 | END_STATE(); |
1134 | case 176: |
1135 | ACCEPT_TOKEN(sym_context); |
1136 | - if (lookahead == 'e') ADVANCE(169); |
1137 | + if (lookahead == 'i') ADVANCE(184); |
1138 | if (lookahead != 0 && |
1139 | lookahead != '\n' && |
1140 | - lookahead != '\r') ADVANCE(199); |
1141 | + lookahead != '\r') ADVANCE(194); |
1142 | END_STATE(); |
1143 | case 177: |
1144 | ACCEPT_TOKEN(sym_context); |
1145 | - if (lookahead == 'e') ADVANCE(190); |
1146 | + if (lookahead == 'i') ADVANCE(180); |
1147 | if (lookahead != 0 && |
1148 | lookahead != '\n' && |
1149 | - lookahead != '\r') ADVANCE(199); |
1150 | + lookahead != '\r') ADVANCE(194); |
1151 | END_STATE(); |
1152 | case 178: |
1153 | ACCEPT_TOKEN(sym_context); |
1154 | - if (lookahead == 'f') ADVANCE(91); |
1155 | + if (lookahead == 'i') ADVANCE(188); |
1156 | if (lookahead != 0 && |
1157 | lookahead != '\n' && |
1158 | - lookahead != '\r') ADVANCE(199); |
1159 | + lookahead != '\r') ADVANCE(194); |
1160 | END_STATE(); |
1161 | case 179: |
1162 | ACCEPT_TOKEN(sym_context); |
1163 | - if (lookahead == 'f') ADVANCE(178); |
1164 | + if (lookahead == 'l') ADVANCE(169); |
1165 | if (lookahead != 0 && |
1166 | lookahead != '\n' && |
1167 | - lookahead != '\r') ADVANCE(199); |
1168 | + lookahead != '\r') ADVANCE(194); |
1169 | END_STATE(); |
1170 | case 180: |
1171 | ACCEPT_TOKEN(sym_context); |
1172 | - if (lookahead == 'i') ADVANCE(186); |
1173 | + if (lookahead == 'l') ADVANCE(163); |
1174 | if (lookahead != 0 && |
1175 | lookahead != '\n' && |
1176 | - lookahead != '\r') ADVANCE(199); |
1177 | + lookahead != '\r') ADVANCE(194); |
1178 | END_STATE(); |
1179 | case 181: |
1180 | ACCEPT_TOKEN(sym_context); |
1181 | - if (lookahead == 'i') ADVANCE(189); |
1182 | + if (lookahead == 'm') ADVANCE(177); |
1183 | if (lookahead != 0 && |
1184 | lookahead != '\n' && |
1185 | - lookahead != '\r') ADVANCE(199); |
1186 | + lookahead != '\r') ADVANCE(194); |
1187 | END_STATE(); |
1188 | case 182: |
1189 | ACCEPT_TOKEN(sym_context); |
1190 | - if (lookahead == 'i') ADVANCE(185); |
1191 | + if (lookahead == 'm') ADVANCE(166); |
1192 | if (lookahead != 0 && |
1193 | lookahead != '\n' && |
1194 | - lookahead != '\r') ADVANCE(199); |
1195 | + lookahead != '\r') ADVANCE(194); |
1196 | END_STATE(); |
1197 | case 183: |
1198 | ACCEPT_TOKEN(sym_context); |
1199 | - if (lookahead == 'i') ADVANCE(193); |
1200 | + if (lookahead == 'n') ADVANCE(165); |
1201 | if (lookahead != 0 && |
1202 | lookahead != '\n' && |
1203 | - lookahead != '\r') ADVANCE(199); |
1204 | + lookahead != '\r') ADVANCE(194); |
1205 | END_STATE(); |
1206 | case 184: |
1207 | ACCEPT_TOKEN(sym_context); |
1208 | - if (lookahead == 'l') ADVANCE(174); |
1209 | + if (lookahead == 'n') ADVANCE(161); |
1210 | if (lookahead != 0 && |
1211 | lookahead != '\n' && |
1212 | - lookahead != '\r') ADVANCE(199); |
1213 | + lookahead != '\r') ADVANCE(194); |
1214 | END_STATE(); |
1215 | case 185: |
1216 | ACCEPT_TOKEN(sym_context); |
1217 | - if (lookahead == 'l') ADVANCE(168); |
1218 | + if (lookahead == 'n') ADVANCE(162); |
1219 | if (lookahead != 0 && |
1220 | lookahead != '\n' && |
1221 | - lookahead != '\r') ADVANCE(199); |
1222 | + lookahead != '\r') ADVANCE(194); |
1223 | END_STATE(); |
1224 | case 186: |
1225 | ACCEPT_TOKEN(sym_context); |
1226 | - if (lookahead == 'm') ADVANCE(182); |
1227 | + if (lookahead == 'r') ADVANCE(192); |
1228 | if (lookahead != 0 && |
1229 | lookahead != '\n' && |
1230 | - lookahead != '\r') ADVANCE(199); |
1231 | + lookahead != '\r') ADVANCE(194); |
1232 | END_STATE(); |
1233 | case 187: |
1234 | ACCEPT_TOKEN(sym_context); |
1235 | - if (lookahead == 'm') ADVANCE(171); |
1236 | + if (lookahead == 'r') ADVANCE(178); |
1237 | if (lookahead != 0 && |
1238 | lookahead != '\n' && |
1239 | - lookahead != '\r') ADVANCE(199); |
1240 | + lookahead != '\r') ADVANCE(194); |
1241 | END_STATE(); |
1242 | case 188: |
1243 | ACCEPT_TOKEN(sym_context); |
1244 | - if (lookahead == 'n') ADVANCE(170); |
1245 | + if (lookahead == 't') ADVANCE(193); |
1246 | if (lookahead != 0 && |
1247 | lookahead != '\n' && |
1248 | - lookahead != '\r') ADVANCE(199); |
1249 | + lookahead != '\r') ADVANCE(194); |
1250 | END_STATE(); |
1251 | case 189: |
1252 | ACCEPT_TOKEN(sym_context); |
1253 | - if (lookahead == 'n') ADVANCE(166); |
1254 | + if (lookahead == 't') ADVANCE(171); |
1255 | if (lookahead != 0 && |
1256 | lookahead != '\n' && |
1257 | - lookahead != '\r') ADVANCE(199); |
1258 | + lookahead != '\r') ADVANCE(194); |
1259 | END_STATE(); |
1260 | case 190: |
1261 | ACCEPT_TOKEN(sym_context); |
1262 | - if (lookahead == 'n') ADVANCE(167); |
1263 | + if (lookahead == 'w') ADVANCE(89); |
1264 | if (lookahead != 0 && |
1265 | lookahead != '\n' && |
1266 | - lookahead != '\r') ADVANCE(199); |
1267 | + lookahead != '\r') ADVANCE(194); |
1268 | END_STATE(); |
1269 | case 191: |
1270 | ACCEPT_TOKEN(sym_context); |
1271 | - if (lookahead == 'r') ADVANCE(197); |
1272 | + if (lookahead == 'x') ADVANCE(101); |
1273 | if (lookahead != 0 && |
1274 | lookahead != '\n' && |
1275 | - lookahead != '\r') ADVANCE(199); |
1276 | + lookahead != '\r') ADVANCE(194); |
1277 | END_STATE(); |
1278 | case 192: |
1279 | ACCEPT_TOKEN(sym_context); |
1280 | - if (lookahead == 'r') ADVANCE(183); |
1281 | + if (lookahead == 'y') ADVANCE(95); |
1282 | if (lookahead != 0 && |
1283 | lookahead != '\n' && |
1284 | - lookahead != '\r') ADVANCE(199); |
1285 | + lookahead != '\r') ADVANCE(194); |
1286 | END_STATE(); |
1287 | case 193: |
1288 | ACCEPT_TOKEN(sym_context); |
1289 | - if (lookahead == 't') ADVANCE(198); |
1290 | + if (lookahead == 'y') ADVANCE(103); |
1291 | if (lookahead != 0 && |
1292 | lookahead != '\n' && |
1293 | - lookahead != '\r') ADVANCE(199); |
1294 | + lookahead != '\r') ADVANCE(194); |
1295 | END_STATE(); |
1296 | case 194: |
1297 | ACCEPT_TOKEN(sym_context); |
1298 | - if (lookahead == 't') ADVANCE(176); |
1299 | if (lookahead != 0 && |
1300 | lookahead != '\n' && |
1301 | - lookahead != '\r') ADVANCE(199); |
1302 | + lookahead != '\r') ADVANCE(194); |
1303 | END_STATE(); |
1304 | case 195: |
1305 | - ACCEPT_TOKEN(sym_context); |
1306 | - if (lookahead == 'w') ADVANCE(94); |
1307 | - if (lookahead != 0 && |
1308 | - lookahead != '\n' && |
1309 | - lookahead != '\r') ADVANCE(199); |
1310 | - END_STATE(); |
1311 | - case 196: |
1312 | - ACCEPT_TOKEN(sym_context); |
1313 | - if (lookahead == 'x') ADVANCE(106); |
1314 | - if (lookahead != 0 && |
1315 | - lookahead != '\n' && |
1316 | - lookahead != '\r') ADVANCE(199); |
1317 | - END_STATE(); |
1318 | - case 197: |
1319 | - ACCEPT_TOKEN(sym_context); |
1320 | - if (lookahead == 'y') ADVANCE(100); |
1321 | - if (lookahead != 0 && |
1322 | - lookahead != '\n' && |
1323 | - lookahead != '\r') ADVANCE(199); |
1324 | - END_STATE(); |
1325 | - case 198: |
1326 | - ACCEPT_TOKEN(sym_context); |
1327 | - if (lookahead == 'y') ADVANCE(108); |
1328 | - if (lookahead != 0 && |
1329 | - lookahead != '\n' && |
1330 | - lookahead != '\r') ADVANCE(199); |
1331 | - END_STATE(); |
1332 | - case 199: |
1333 | - ACCEPT_TOKEN(sym_context); |
1334 | - if (lookahead != 0 && |
1335 | - lookahead != '\n' && |
1336 | - lookahead != '\r') ADVANCE(199); |
1337 | - END_STATE(); |
1338 | - case 200: |
1339 | ACCEPT_TOKEN(sym_linerange); |
1340 | - if (lookahead == ',') ADVANCE(76); |
1341 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(200); |
1342 | + if (lookahead == ',') ADVANCE(72); |
1343 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(195); |
1344 | END_STATE(); |
1345 | - case 201: |
1346 | + case 196: |
1347 | ACCEPT_TOKEN(sym_linerange); |
1348 | - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(201); |
1349 | + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(196); |
1350 | END_STATE(); |
1351 | - case 202: |
1352 | + case 197: |
1353 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1354 | - if (lookahead == 'a') ADVANCE(209); |
1355 | + if (lookahead == 'a') ADVANCE(204); |
1356 | if (lookahead == 11 || |
1357 | - lookahead == '\f') ADVANCE(202); |
1358 | + lookahead == '\f') ADVANCE(197); |
1359 | if (lookahead != 0 && |
1360 | (lookahead < '\t' || '\r' < lookahead) && |
1361 | - lookahead != ' ') ADVANCE(212); |
1362 | + lookahead != ' ') ADVANCE(207); |
1363 | END_STATE(); |
1364 | - case 203: |
1365 | + case 198: |
1366 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1367 | - if (lookahead == 'd') ADVANCE(208); |
1368 | + if (lookahead == 'd') ADVANCE(203); |
1369 | if (lookahead == 11 || |
1370 | - lookahead == '\f') ADVANCE(203); |
1371 | + lookahead == '\f') ADVANCE(198); |
1372 | if (lookahead != 0 && |
1373 | (lookahead < '\t' || '\r' < lookahead) && |
1374 | - lookahead != ' ') ADVANCE(212); |
1375 | + lookahead != ' ') ADVANCE(207); |
1376 | END_STATE(); |
1377 | - case 204: |
1378 | + case 199: |
1379 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1380 | - if (lookahead == 'd') ADVANCE(103); |
1381 | + if (lookahead == 'd') ADVANCE(98); |
1382 | if (lookahead != 0 && |
1383 | lookahead != '\t' && |
1384 | lookahead != '\n' && |
1385 | lookahead != '\r' && |
1386 | - lookahead != ' ') ADVANCE(212); |
1387 | + lookahead != ' ') ADVANCE(207); |
1388 | END_STATE(); |
1389 | - case 205: |
1390 | + case 200: |
1391 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1392 | - if (lookahead == 'e') ADVANCE(210); |
1393 | + if (lookahead == 'e') ADVANCE(205); |
1394 | if (lookahead != 0 && |
1395 | lookahead != '\t' && |
1396 | lookahead != '\n' && |
1397 | lookahead != '\r' && |
1398 | - lookahead != ' ') ADVANCE(212); |
1399 | + lookahead != ' ') ADVANCE(207); |
1400 | END_STATE(); |
1401 | - case 206: |
1402 | + case 201: |
1403 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1404 | - if (lookahead == 'f') ADVANCE(205); |
1405 | + if (lookahead == 'f') ADVANCE(200); |
1406 | if (lookahead != 0 && |
1407 | lookahead != '\t' && |
1408 | lookahead != '\n' && |
1409 | lookahead != '\r' && |
1410 | - lookahead != ' ') ADVANCE(212); |
1411 | + lookahead != ' ') ADVANCE(207); |
1412 | END_STATE(); |
1413 | - case 207: |
1414 | + case 202: |
1415 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1416 | - if (lookahead == 'f') ADVANCE(206); |
1417 | + if (lookahead == 'f') ADVANCE(201); |
1418 | if (lookahead != 0 && |
1419 | lookahead != '\t' && |
1420 | lookahead != '\n' && |
1421 | lookahead != '\r' && |
1422 | - lookahead != ' ') ADVANCE(212); |
1423 | + lookahead != ' ') ADVANCE(207); |
1424 | END_STATE(); |
1425 | - case 208: |
1426 | + case 203: |
1427 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1428 | - if (lookahead == 'i') ADVANCE(207); |
1429 | + if (lookahead == 'i') ADVANCE(202); |
1430 | if (lookahead != 0 && |
1431 | lookahead != '\t' && |
1432 | lookahead != '\n' && |
1433 | lookahead != '\r' && |
1434 | - lookahead != ' ') ADVANCE(212); |
1435 | + lookahead != ' ') ADVANCE(207); |
1436 | END_STATE(); |
1437 | - case 209: |
1438 | + case 204: |
1439 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1440 | - if (lookahead == 'n') ADVANCE(204); |
1441 | + if (lookahead == 'n') ADVANCE(199); |
1442 | if (lookahead != 0 && |
1443 | lookahead != '\t' && |
1444 | lookahead != '\n' && |
1445 | lookahead != '\r' && |
1446 | - lookahead != ' ') ADVANCE(212); |
1447 | + lookahead != ' ') ADVANCE(207); |
1448 | END_STATE(); |
1449 | - case 210: |
1450 | + case 205: |
1451 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1452 | - if (lookahead == 'r') ADVANCE(105); |
1453 | + if (lookahead == 'r') ADVANCE(100); |
1454 | if (lookahead != 0 && |
1455 | lookahead != '\t' && |
1456 | lookahead != '\n' && |
1457 | lookahead != '\r' && |
1458 | - lookahead != ' ') ADVANCE(212); |
1459 | + lookahead != ' ') ADVANCE(207); |
1460 | END_STATE(); |
1461 | - case 211: |
1462 | + case 206: |
1463 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1464 | if (lookahead == 11 || |
1465 | - lookahead == '\f') ADVANCE(211); |
1466 | + lookahead == '\f') ADVANCE(206); |
1467 | if (lookahead != 0 && |
1468 | (lookahead < '\t' || '\r' < lookahead) && |
1469 | - lookahead != ' ') ADVANCE(212); |
1470 | + lookahead != ' ') ADVANCE(207); |
1471 | END_STATE(); |
1472 | - case 212: |
1473 | + case 207: |
1474 | ACCEPT_TOKEN(aux_sym_filename_token1); |
1475 | if (lookahead != 0 && |
1476 | lookahead != '\t' && |
1477 | lookahead != '\n' && |
1478 | lookahead != '\r' && |
1479 | - lookahead != ' ') ADVANCE(212); |
1480 | + lookahead != ' ') ADVANCE(207); |
1481 | + END_STATE(); |
1482 | + case 208: |
1483 | + ACCEPT_TOKEN(sym_commit); |
1484 | + END_STATE(); |
1485 | + case 209: |
1486 | + ACCEPT_TOKEN(sym_commit); |
1487 | + if (('0' <= lookahead && lookahead <= '9') || |
1488 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(208); |
1489 | + END_STATE(); |
1490 | + case 210: |
1491 | + ACCEPT_TOKEN(sym_commit); |
1492 | + if (('0' <= lookahead && lookahead <= '9') || |
1493 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(209); |
1494 | + END_STATE(); |
1495 | + case 211: |
1496 | + ACCEPT_TOKEN(sym_commit); |
1497 | + if (('0' <= lookahead && lookahead <= '9') || |
1498 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(210); |
1499 | + END_STATE(); |
1500 | + case 212: |
1501 | + ACCEPT_TOKEN(sym_commit); |
1502 | + if (('0' <= lookahead && lookahead <= '9') || |
1503 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(211); |
1504 | END_STATE(); |
1505 | case 213: |
1506 | ACCEPT_TOKEN(sym_commit); |
1507 | + if (('0' <= lookahead && lookahead <= '9') || |
1508 | + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(212); |
1509 | END_STATE(); |
1510 | case 214: |
1511 | ACCEPT_TOKEN(sym_commit); |
1512 | @@ -1787,31 +1805,6 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { |
1513 | if (('0' <= lookahead && lookahead <= '9') || |
1514 | ('a' <= lookahead && lookahead <= 'f')) ADVANCE(240); |
1515 | END_STATE(); |
1516 | - case 242: |
1517 | - ACCEPT_TOKEN(sym_commit); |
1518 | - if (('0' <= lookahead && lookahead <= '9') || |
1519 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(241); |
1520 | - END_STATE(); |
1521 | - case 243: |
1522 | - ACCEPT_TOKEN(sym_commit); |
1523 | - if (('0' <= lookahead && lookahead <= '9') || |
1524 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(242); |
1525 | - END_STATE(); |
1526 | - case 244: |
1527 | - ACCEPT_TOKEN(sym_commit); |
1528 | - if (('0' <= lookahead && lookahead <= '9') || |
1529 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(243); |
1530 | - END_STATE(); |
1531 | - case 245: |
1532 | - ACCEPT_TOKEN(sym_commit); |
1533 | - if (('0' <= lookahead && lookahead <= '9') || |
1534 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(244); |
1535 | - END_STATE(); |
1536 | - case 246: |
1537 | - ACCEPT_TOKEN(sym_commit); |
1538 | - if (('0' <= lookahead && lookahead <= '9') || |
1539 | - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(245); |
1540 | - END_STATE(); |
1541 | default: |
1542 | return false; |
1543 | } |
1544 | @@ -1819,48 +1812,48 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { |
1545 | |
1546 | static const TSLexMode ts_lex_modes[STATE_COUNT] = { |
1547 | [0] = {.lex_state = 0}, |
1548 | - [1] = {.lex_state = 84}, |
1549 | - [2] = {.lex_state = 84}, |
1550 | - [3] = {.lex_state = 84}, |
1551 | - [4] = {.lex_state = 84}, |
1552 | - [5] = {.lex_state = 84}, |
1553 | - [6] = {.lex_state = 84}, |
1554 | - [7] = {.lex_state = 84}, |
1555 | - [8] = {.lex_state = 84}, |
1556 | - [9] = {.lex_state = 84}, |
1557 | - [10] = {.lex_state = 84}, |
1558 | - [11] = {.lex_state = 84}, |
1559 | - [12] = {.lex_state = 84}, |
1560 | - [13] = {.lex_state = 84}, |
1561 | - [14] = {.lex_state = 84}, |
1562 | - [15] = {.lex_state = 84}, |
1563 | - [16] = {.lex_state = 84}, |
1564 | - [17] = {.lex_state = 84}, |
1565 | - [18] = {.lex_state = 84}, |
1566 | - [19] = {.lex_state = 87}, |
1567 | - [20] = {.lex_state = 84}, |
1568 | - [21] = {.lex_state = 87}, |
1569 | - [22] = {.lex_state = 84}, |
1570 | - [23] = {.lex_state = 85}, |
1571 | - [24] = {.lex_state = 87}, |
1572 | - [25] = {.lex_state = 87}, |
1573 | - [26] = {.lex_state = 87}, |
1574 | - [27] = {.lex_state = 88}, |
1575 | - [28] = {.lex_state = 87}, |
1576 | - [29] = {.lex_state = 85}, |
1577 | - [30] = {.lex_state = 87}, |
1578 | - [31] = {.lex_state = 14}, |
1579 | - [32] = {.lex_state = 88}, |
1580 | - [33] = {.lex_state = 14}, |
1581 | - [34] = {.lex_state = 87}, |
1582 | - [35] = {.lex_state = 88}, |
1583 | - [36] = {.lex_state = 9}, |
1584 | - [37] = {.lex_state = 87}, |
1585 | - [38] = {.lex_state = 87}, |
1586 | - [39] = {.lex_state = 9}, |
1587 | + [1] = {.lex_state = 80}, |
1588 | + [2] = {.lex_state = 80}, |
1589 | + [3] = {.lex_state = 80}, |
1590 | + [4] = {.lex_state = 80}, |
1591 | + [5] = {.lex_state = 80}, |
1592 | + [6] = {.lex_state = 80}, |
1593 | + [7] = {.lex_state = 80}, |
1594 | + [8] = {.lex_state = 80}, |
1595 | + [9] = {.lex_state = 80}, |
1596 | + [10] = {.lex_state = 80}, |
1597 | + [11] = {.lex_state = 80}, |
1598 | + [12] = {.lex_state = 80}, |
1599 | + [13] = {.lex_state = 80}, |
1600 | + [14] = {.lex_state = 80}, |
1601 | + [15] = {.lex_state = 80}, |
1602 | + [16] = {.lex_state = 80}, |
1603 | + [17] = {.lex_state = 80}, |
1604 | + [18] = {.lex_state = 80}, |
1605 | + [19] = {.lex_state = 83}, |
1606 | + [20] = {.lex_state = 80}, |
1607 | + [21] = {.lex_state = 83}, |
1608 | + [22] = {.lex_state = 80}, |
1609 | + [23] = {.lex_state = 81}, |
1610 | + [24] = {.lex_state = 83}, |
1611 | + [25] = {.lex_state = 83}, |
1612 | + [26] = {.lex_state = 83}, |
1613 | + [27] = {.lex_state = 84}, |
1614 | + [28] = {.lex_state = 83}, |
1615 | + [29] = {.lex_state = 81}, |
1616 | + [30] = {.lex_state = 83}, |
1617 | + [31] = {.lex_state = 13}, |
1618 | + [32] = {.lex_state = 84}, |
1619 | + [33] = {.lex_state = 13}, |
1620 | + [34] = {.lex_state = 83}, |
1621 | + [35] = {.lex_state = 84}, |
1622 | + [36] = {.lex_state = 8}, |
1623 | + [37] = {.lex_state = 83}, |
1624 | + [38] = {.lex_state = 83}, |
1625 | + [39] = {.lex_state = 8}, |
1626 | [40] = {.lex_state = 0}, |
1627 | [41] = {.lex_state = 0}, |
1628 | - [42] = {.lex_state = 85}, |
1629 | + [42] = {.lex_state = 81}, |
1630 | [43] = {.lex_state = 0}, |
1631 | [44] = {.lex_state = 0}, |
1632 | [45] = {.lex_state = 0}, |
1633 | @@ -1868,39 +1861,39 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { |
1634 | [47] = {.lex_state = 0}, |
1635 | [48] = {.lex_state = 0}, |
1636 | [49] = {.lex_state = 0}, |
1637 | - [50] = {.lex_state = 85}, |
1638 | + [50] = {.lex_state = 81}, |
1639 | [51] = {.lex_state = 0}, |
1640 | [52] = {.lex_state = 0}, |
1641 | [53] = {.lex_state = 0}, |
1642 | [54] = {.lex_state = 0}, |
1643 | - [55] = {.lex_state = 85}, |
1644 | + [55] = {.lex_state = 81}, |
1645 | [56] = {.lex_state = 0}, |
1646 | [57] = {.lex_state = 0}, |
1647 | [58] = {.lex_state = 0}, |
1648 | [59] = {.lex_state = 0}, |
1649 | - [60] = {.lex_state = 85}, |
1650 | + [60] = {.lex_state = 81}, |
1651 | [61] = {.lex_state = 0}, |
1652 | [62] = {.lex_state = 0}, |
1653 | [63] = {.lex_state = 0}, |
1654 | - [64] = {.lex_state = 85}, |
1655 | + [64] = {.lex_state = 70}, |
1656 | [65] = {.lex_state = 0}, |
1657 | [66] = {.lex_state = 0}, |
1658 | - [67] = {.lex_state = 85}, |
1659 | + [67] = {.lex_state = 81}, |
1660 | [68] = {.lex_state = 0}, |
1661 | - [69] = {.lex_state = 33}, |
1662 | + [69] = {.lex_state = 31}, |
1663 | [70] = {.lex_state = 0}, |
1664 | [71] = {.lex_state = 0}, |
1665 | [72] = {.lex_state = 0}, |
1666 | [73] = {.lex_state = 0}, |
1667 | - [74] = {.lex_state = 85}, |
1668 | - [75] = {.lex_state = 85}, |
1669 | + [74] = {.lex_state = 81}, |
1670 | + [75] = {.lex_state = 81}, |
1671 | [76] = {.lex_state = 0}, |
1672 | [77] = {.lex_state = 0}, |
1673 | [78] = {.lex_state = 0}, |
1674 | - [79] = {.lex_state = 85}, |
1675 | - [80] = {.lex_state = 85}, |
1676 | - [81] = {.lex_state = 33}, |
1677 | - [82] = {.lex_state = 33}, |
1678 | + [79] = {.lex_state = 81}, |
1679 | + [80] = {.lex_state = 81}, |
1680 | + [81] = {.lex_state = 31}, |
1681 | + [82] = {.lex_state = 31}, |
1682 | }; |
1683 | |
1684 | static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { |
1685 | @@ -1916,7 +1909,6 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { |
1686 | [anon_sym_Binary] = ACTIONS(1), |
1687 | [anon_sym_files] = ACTIONS(1), |
1688 | [anon_sym_and] = ACTIONS(1), |
1689 | - [anon_sym_differ] = ACTIONS(1), |
1690 | [anon_sym_index] = ACTIONS(1), |
1691 | [anon_sym_DOT_DOT] = ACTIONS(1), |
1692 | [anon_sym_similarity] = ACTIONS(1), |
1693 | @@ -2692,7 +2684,7 @@ static const uint16_t ts_small_parse_table[] = { |
1694 | aux_sym_source_token1, |
1695 | [845] = 1, |
1696 | ACTIONS(279), 1, |
1697 | - anon_sym_DASH_DASHgit, |
1698 | + aux_sym_command_token1, |
1699 | [849] = 1, |
1700 | ACTIONS(281), 1, |
1701 | aux_sym_source_token1, |