tree-sitter-clojure-orchard 0.2.8 → 0.2.9
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.
- package/README.md +2 -1
- package/package.json +2 -2
- package/src/parser.c +91 -102
- package/tree-sitter-clojure_orchard.wasm +0 -0
- package/tree-sitter.json +3 -2
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ You can obtain this parser in various formats:
|
|
|
13
13
|
* as a Rust crate: `cargo add tree-sitter-clojure-orchard`
|
|
14
14
|
* as a Python package: `pip install tree-sitter-clojure-orchard`
|
|
15
15
|
* as an NPM package: `npm install tree-sitter-clojure-orchard`
|
|
16
|
+
* As a Git repository with check-in generated files, via the [GitHub mirror](https://github.com/grammar-orchard/tree-sitter-clojure-orchard)
|
|
16
17
|
|
|
17
18
|
### Contributing
|
|
18
19
|
|
|
@@ -24,7 +25,7 @@ If you want to use it via bindings, you'll also need to run `tree-sitter init`.
|
|
|
24
25
|
|
|
25
26
|
### Origin
|
|
26
27
|
|
|
27
|
-
This project was forked from https://github.com/sogaiu/tree-sitter-clojure, to [ease the use and collaboration](https://codeberg.org/grammar-orchard)
|
|
28
|
+
This project was forked from https://github.com/sogaiu/tree-sitter-clojure, to [ease the use of and collaboration on this grammar](https://codeberg.org/grammar-orchard#for-contributors).
|
|
28
29
|
|
|
29
30
|
[crates]: https://img.shields.io/crates/v/tree-sitter-clojure-orchard?logo=rust
|
|
30
31
|
[pypi]: https://img.shields.io/pypi/v/tree-sitter-clojure-orchard?logo=pypi&logoColor=ffd242
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tree-sitter-clojure-orchard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Parser for Clojure files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"prebuildify": "^6.0.1",
|
|
38
38
|
"tree-sitter": "^0.25.0",
|
|
39
|
-
"tree-sitter-cli": "^0.26.
|
|
39
|
+
"tree-sitter-cli": "^0.26.12"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"tree-sitter": "^0.25.0"
|
package/src/parser.c
CHANGED
|
@@ -1334,26 +1334,26 @@ static const TSCharacterRange sym__ws_character_set_1[] = {
|
|
|
1334
1334
|
|
|
1335
1335
|
static const TSCharacterRange aux_sym__kwd_leading_slash_token1_character_set_1[] = {
|
|
1336
1336
|
{0, 0x08}, {0x0e, 0x1b}, {'!', '!'}, {'#', '\''}, {'*', '+'}, {'-', ':'}, {'<', '?'}, {'A', 'Z'},
|
|
1337
|
-
{'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f,
|
|
1338
|
-
{
|
|
1337
|
+
{'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f, 0x167f}, {0x1681, 0x1fff}, {0x2007, 0x2007}, {0x200b, 0x2027}, {0x202a, 0x205e},
|
|
1338
|
+
{0x2060, 0x2fff}, {0x3001, 0x10ffff},
|
|
1339
1339
|
};
|
|
1340
1340
|
|
|
1341
1341
|
static const TSCharacterRange aux_sym__kwd_qualified_token1_character_set_1[] = {
|
|
1342
1342
|
{0, 0x08}, {0x0e, 0x1b}, {'!', '!'}, {'#', '\''}, {'*', '+'}, {'-', '.'}, {'0', '9'}, {'<', '?'},
|
|
1343
|
-
{'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f,
|
|
1344
|
-
{
|
|
1343
|
+
{'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f, 0x167f}, {0x1681, 0x1fff}, {0x2007, 0x2007}, {0x200b, 0x2027},
|
|
1344
|
+
{0x202a, 0x205e}, {0x2060, 0x2fff}, {0x3001, 0x10ffff},
|
|
1345
1345
|
};
|
|
1346
1346
|
|
|
1347
1347
|
static const TSCharacterRange aux_sym__kwd_qualified_token1_character_set_2[] = {
|
|
1348
1348
|
{0, 0x08}, {0x0e, 0x1b}, {'!', '!'}, {'#', '\''}, {'*', '+'}, {'-', '.'}, {'0', ':'}, {'<', '?'},
|
|
1349
|
-
{'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f,
|
|
1350
|
-
{
|
|
1349
|
+
{'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f, 0x167f}, {0x1681, 0x1fff}, {0x2007, 0x2007}, {0x200b, 0x2027},
|
|
1350
|
+
{0x202a, 0x205e}, {0x2060, 0x2fff}, {0x3001, 0x10ffff},
|
|
1351
1351
|
};
|
|
1352
1352
|
|
|
1353
1353
|
static const TSCharacterRange aux_sym__sym_qualified_token1_character_set_1[] = {
|
|
1354
1354
|
{0, 0x08}, {0x0e, 0x1b}, {'!', '!'}, {'$', '&'}, {'*', '+'}, {'-', '.'}, {'<', '?'}, {'A', 'Z'},
|
|
1355
|
-
{'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f,
|
|
1356
|
-
{
|
|
1355
|
+
{'_', '_'}, {'a', 'z'}, {'|', '|'}, {0x7f, 0x167f}, {0x1681, 0x1fff}, {0x2007, 0x2007}, {0x200b, 0x2027}, {0x202a, 0x205e},
|
|
1356
|
+
{0x2060, 0x2fff}, {0x3001, 0x10ffff},
|
|
1357
1357
|
};
|
|
1358
1358
|
|
|
1359
1359
|
static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
@@ -1389,9 +1389,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1389
1389
|
);
|
|
1390
1390
|
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(57);
|
|
1391
1391
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1392
|
-
if (lookahead != 0
|
|
1393
|
-
lookahead != 0x17f &&
|
|
1394
|
-
lookahead != 0x212a) ADVANCE(93);
|
|
1392
|
+
if (lookahead != 0) ADVANCE(93);
|
|
1395
1393
|
END_STATE();
|
|
1396
1394
|
case 1:
|
|
1397
1395
|
ADVANCE_MAP(
|
|
@@ -1415,16 +1413,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1415
1413
|
(lookahead < '/' || ';' < lookahead) &&
|
|
1416
1414
|
(lookahead < '[' || '^' < lookahead) &&
|
|
1417
1415
|
lookahead != '}' &&
|
|
1418
|
-
lookahead != '~'
|
|
1419
|
-
lookahead != 0x17f &&
|
|
1420
|
-
lookahead != 0x212a) ADVANCE(134);
|
|
1416
|
+
lookahead != '~') ADVANCE(134);
|
|
1421
1417
|
END_STATE();
|
|
1422
1418
|
case 2:
|
|
1423
1419
|
if (lookahead == '"') ADVANCE(106);
|
|
1424
1420
|
if (lookahead == '\\') ADVANCE(43);
|
|
1425
|
-
if (lookahead != 0
|
|
1426
|
-
lookahead != 0x17f &&
|
|
1427
|
-
lookahead != 0x212a) ADVANCE(2);
|
|
1421
|
+
if (lookahead != 0) ADVANCE(2);
|
|
1428
1422
|
END_STATE();
|
|
1429
1423
|
case 3:
|
|
1430
1424
|
ADVANCE_MAP(
|
|
@@ -1439,7 +1433,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1439
1433
|
'{', 140,
|
|
1440
1434
|
'~', 164,
|
|
1441
1435
|
);
|
|
1442
|
-
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1,
|
|
1436
|
+
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1, 18, lookahead))) ADVANCE(134);
|
|
1443
1437
|
END_STATE();
|
|
1444
1438
|
case 4:
|
|
1445
1439
|
ADVANCE_MAP(
|
|
@@ -1463,9 +1457,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1463
1457
|
(lookahead < '\'' || ')' < lookahead) &&
|
|
1464
1458
|
(lookahead < '[' || '^' < lookahead) &&
|
|
1465
1459
|
lookahead != '}' &&
|
|
1466
|
-
lookahead != '~'
|
|
1467
|
-
lookahead != 0x17f &&
|
|
1468
|
-
lookahead != 0x212a) ADVANCE(93);
|
|
1460
|
+
lookahead != '~') ADVANCE(93);
|
|
1469
1461
|
END_STATE();
|
|
1470
1462
|
case 5:
|
|
1471
1463
|
if (lookahead == '#') ADVANCE(77);
|
|
@@ -1476,7 +1468,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1476
1468
|
if (lookahead == '\'' ||
|
|
1477
1469
|
('0' <= lookahead && lookahead <= ':')) ADVANCE(99);
|
|
1478
1470
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1479
|
-
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1,
|
|
1471
|
+
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1, 18, lookahead))) ADVANCE(93);
|
|
1480
1472
|
END_STATE();
|
|
1481
1473
|
case 6:
|
|
1482
1474
|
if (lookahead == '#') ADVANCE(78);
|
|
@@ -1486,7 +1478,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1486
1478
|
if (lookahead == '\'' ||
|
|
1487
1479
|
('0' <= lookahead && lookahead <= ':')) ADVANCE(99);
|
|
1488
1480
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1489
|
-
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1,
|
|
1481
|
+
if ((!eof && set_contains(aux_sym__sym_qualified_token1_character_set_1, 18, lookahead))) ADVANCE(93);
|
|
1490
1482
|
END_STATE();
|
|
1491
1483
|
case 7:
|
|
1492
1484
|
if (lookahead == '#') ADVANCE(100);
|
|
@@ -1494,18 +1486,27 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1494
1486
|
if (lookahead == ';') ADVANCE(50);
|
|
1495
1487
|
if (lookahead == '{') ADVANCE(140);
|
|
1496
1488
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1497
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_1,
|
|
1489
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_1, 19, lookahead))) ADVANCE(101);
|
|
1498
1490
|
END_STATE();
|
|
1499
1491
|
case 8:
|
|
1500
1492
|
if (lookahead == '#') ADVANCE(79);
|
|
1501
1493
|
if (lookahead == ';') ADVANCE(50);
|
|
1502
1494
|
if (lookahead == '{') ADVANCE(140);
|
|
1503
1495
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1504
|
-
if (
|
|
1496
|
+
if (lookahead != 0 &&
|
|
1497
|
+
lookahead != '"' &&
|
|
1498
|
+
lookahead != '#' &&
|
|
1499
|
+
lookahead != '(' &&
|
|
1500
|
+
lookahead != ')' &&
|
|
1501
|
+
lookahead != '@' &&
|
|
1502
|
+
(lookahead < '[' || '^' < lookahead) &&
|
|
1503
|
+
lookahead != '`' &&
|
|
1504
|
+
lookahead != '}' &&
|
|
1505
|
+
lookahead != '~') ADVANCE(99);
|
|
1505
1506
|
END_STATE();
|
|
1506
1507
|
case 9:
|
|
1507
1508
|
if (lookahead == '/') ADVANCE(75);
|
|
1508
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_1,
|
|
1509
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_1, 19, lookahead))) ADVANCE(101);
|
|
1509
1510
|
END_STATE();
|
|
1510
1511
|
case 10:
|
|
1511
1512
|
if (lookahead == 'a') ADVANCE(14);
|
|
@@ -1521,9 +1522,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1521
1522
|
't', 109,
|
|
1522
1523
|
'u', 117,
|
|
1523
1524
|
);
|
|
1524
|
-
if (lookahead != 0
|
|
1525
|
-
lookahead != 0x17f &&
|
|
1526
|
-
lookahead != 0x212a) ADVANCE(107);
|
|
1525
|
+
if (lookahead != 0) ADVANCE(107);
|
|
1527
1526
|
END_STATE();
|
|
1528
1527
|
case 12:
|
|
1529
1528
|
if (lookahead == 'b') ADVANCE(107);
|
|
@@ -1625,16 +1624,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1625
1624
|
('a' <= lookahead && lookahead <= 'z')) ADVANCE(74);
|
|
1626
1625
|
END_STATE();
|
|
1627
1626
|
case 41:
|
|
1628
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1627
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
1629
1628
|
END_STATE();
|
|
1630
1629
|
case 42:
|
|
1631
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1630
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(135);
|
|
1632
1631
|
END_STATE();
|
|
1633
1632
|
case 43:
|
|
1634
1633
|
if (lookahead != 0 &&
|
|
1635
|
-
lookahead != '\n'
|
|
1636
|
-
lookahead != 0x17f &&
|
|
1637
|
-
lookahead != 0x212a) ADVANCE(2);
|
|
1634
|
+
lookahead != '\n') ADVANCE(2);
|
|
1638
1635
|
END_STATE();
|
|
1639
1636
|
case 44:
|
|
1640
1637
|
if (eof) ADVANCE(45);
|
|
@@ -1665,9 +1662,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1665
1662
|
);
|
|
1666
1663
|
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(63);
|
|
1667
1664
|
if (set_contains(sym__ws_character_set_1, 9, lookahead)) ADVANCE(46);
|
|
1668
|
-
if (lookahead != 0
|
|
1669
|
-
lookahead != 0x17f &&
|
|
1670
|
-
lookahead != 0x212a) ADVANCE(134);
|
|
1665
|
+
if (lookahead != 0) ADVANCE(134);
|
|
1671
1666
|
END_STATE();
|
|
1672
1667
|
case 45:
|
|
1673
1668
|
ACCEPT_TOKEN(ts_builtin_sym_end);
|
|
@@ -1693,9 +1688,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1693
1688
|
lookahead == '{' ||
|
|
1694
1689
|
lookahead == '}' ||
|
|
1695
1690
|
lookahead == '~') ADVANCE(50);
|
|
1696
|
-
if (lookahead != 0
|
|
1697
|
-
lookahead != 0x17f &&
|
|
1698
|
-
lookahead != 0x212a) ADVANCE(48);
|
|
1691
|
+
if (lookahead != 0) ADVANCE(48);
|
|
1699
1692
|
END_STATE();
|
|
1700
1693
|
case 49:
|
|
1701
1694
|
ACCEPT_TOKEN(sym_comment);
|
|
@@ -1712,27 +1705,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1712
1705
|
lookahead == '{' ||
|
|
1713
1706
|
lookahead == '}' ||
|
|
1714
1707
|
lookahead == '~') ADVANCE(50);
|
|
1715
|
-
if (lookahead != 0
|
|
1716
|
-
lookahead != 0x17f &&
|
|
1717
|
-
lookahead != 0x212a) ADVANCE(49);
|
|
1708
|
+
if (lookahead != 0) ADVANCE(49);
|
|
1718
1709
|
END_STATE();
|
|
1719
1710
|
case 50:
|
|
1720
1711
|
ACCEPT_TOKEN(sym_comment);
|
|
1721
1712
|
if (lookahead == '\n') ADVANCE(47);
|
|
1722
|
-
if (lookahead != 0
|
|
1723
|
-
lookahead != 0x17f &&
|
|
1724
|
-
lookahead != 0x212a) ADVANCE(50);
|
|
1713
|
+
if (lookahead != 0) ADVANCE(50);
|
|
1725
1714
|
END_STATE();
|
|
1726
1715
|
case 51:
|
|
1727
1716
|
ACCEPT_TOKEN(anon_sym_POUND_);
|
|
1728
1717
|
END_STATE();
|
|
1729
1718
|
case 52:
|
|
1730
1719
|
ACCEPT_TOKEN(anon_sym_POUND_);
|
|
1731
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
1720
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(101);
|
|
1732
1721
|
END_STATE();
|
|
1733
1722
|
case 53:
|
|
1734
1723
|
ACCEPT_TOKEN(anon_sym_POUND_);
|
|
1735
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1724
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
1736
1725
|
END_STATE();
|
|
1737
1726
|
case 54:
|
|
1738
1727
|
ACCEPT_TOKEN(sym_num_lit);
|
|
@@ -1976,7 +1965,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1976
1965
|
END_STATE();
|
|
1977
1966
|
case 76:
|
|
1978
1967
|
ACCEPT_TOKEN(anon_sym_SLASH);
|
|
1979
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1968
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
1980
1969
|
END_STATE();
|
|
1981
1970
|
case 77:
|
|
1982
1971
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
@@ -1984,75 +1973,75 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
1984
1973
|
if (lookahead == '?') ADVANCE(151);
|
|
1985
1974
|
if (lookahead == '^') ADVANCE(137);
|
|
1986
1975
|
if (lookahead == '_') ADVANCE(53);
|
|
1987
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1976
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
1988
1977
|
END_STATE();
|
|
1989
1978
|
case 78:
|
|
1990
1979
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
1991
1980
|
if (lookahead == '!') ADVANCE(48);
|
|
1992
1981
|
if (lookahead == '^') ADVANCE(137);
|
|
1993
1982
|
if (lookahead == '_') ADVANCE(53);
|
|
1994
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1983
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
1995
1984
|
END_STATE();
|
|
1996
1985
|
case 79:
|
|
1997
1986
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
1998
1987
|
if (lookahead == '!') ADVANCE(48);
|
|
1999
1988
|
if (lookahead == '_') ADVANCE(53);
|
|
2000
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
1989
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2001
1990
|
END_STATE();
|
|
2002
1991
|
case 80:
|
|
2003
1992
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2004
1993
|
if (lookahead == '/') ADVANCE(99);
|
|
2005
1994
|
if (lookahead == '0') ADVANCE(58);
|
|
2006
1995
|
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(60);
|
|
2007
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
1996
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2008
1997
|
END_STATE();
|
|
2009
1998
|
case 81:
|
|
2010
1999
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2011
2000
|
if (lookahead == '/') ADVANCE(99);
|
|
2012
2001
|
if (lookahead == 'a') ADVANCE(84);
|
|
2013
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2002
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2014
2003
|
END_STATE();
|
|
2015
2004
|
case 82:
|
|
2016
2005
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2017
2006
|
if (lookahead == '/') ADVANCE(99);
|
|
2018
2007
|
if (lookahead == 'e') ADVANCE(93);
|
|
2019
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2008
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2020
2009
|
END_STATE();
|
|
2021
2010
|
case 83:
|
|
2022
2011
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2023
2012
|
if (lookahead == '/') ADVANCE(99);
|
|
2024
2013
|
if (lookahead == 'i') ADVANCE(85);
|
|
2025
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2014
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2026
2015
|
END_STATE();
|
|
2027
2016
|
case 84:
|
|
2028
2017
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2029
2018
|
if (lookahead == '/') ADVANCE(99);
|
|
2030
2019
|
if (lookahead == 'l') ADVANCE(87);
|
|
2031
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2020
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2032
2021
|
END_STATE();
|
|
2033
2022
|
case 85:
|
|
2034
2023
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2035
2024
|
if (lookahead == '/') ADVANCE(99);
|
|
2036
2025
|
if (lookahead == 'l') ADVANCE(118);
|
|
2037
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2026
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2038
2027
|
END_STATE();
|
|
2039
2028
|
case 86:
|
|
2040
2029
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2041
2030
|
if (lookahead == '/') ADVANCE(99);
|
|
2042
2031
|
if (lookahead == 'r') ADVANCE(88);
|
|
2043
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2032
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2044
2033
|
END_STATE();
|
|
2045
2034
|
case 87:
|
|
2046
2035
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2047
2036
|
if (lookahead == '/') ADVANCE(99);
|
|
2048
2037
|
if (lookahead == 's') ADVANCE(82);
|
|
2049
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2038
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2050
2039
|
END_STATE();
|
|
2051
2040
|
case 88:
|
|
2052
2041
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2053
2042
|
if (lookahead == '/') ADVANCE(99);
|
|
2054
2043
|
if (lookahead == 'u') ADVANCE(82);
|
|
2055
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2044
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2056
2045
|
END_STATE();
|
|
2057
2046
|
case 89:
|
|
2058
2047
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
@@ -2060,13 +2049,13 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2060
2049
|
if (lookahead == '+' ||
|
|
2061
2050
|
lookahead == '-') ADVANCE(90);
|
|
2062
2051
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2063
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2052
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2064
2053
|
END_STATE();
|
|
2065
2054
|
case 90:
|
|
2066
2055
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2067
2056
|
if (lookahead == '/') ADVANCE(99);
|
|
2068
2057
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2069
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2058
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2070
2059
|
END_STATE();
|
|
2071
2060
|
case 91:
|
|
2072
2061
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
@@ -2074,7 +2063,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2074
2063
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2075
2064
|
('A' <= lookahead && lookahead <= 'F') ||
|
|
2076
2065
|
('a' <= lookahead && lookahead <= 'f')) ADVANCE(72);
|
|
2077
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2066
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2078
2067
|
END_STATE();
|
|
2079
2068
|
case 92:
|
|
2080
2069
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
@@ -2082,62 +2071,62 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2082
2071
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2083
2072
|
('A' <= lookahead && lookahead <= 'Z') ||
|
|
2084
2073
|
('a' <= lookahead && lookahead <= 'z')) ADVANCE(74);
|
|
2085
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2074
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2086
2075
|
END_STATE();
|
|
2087
2076
|
case 93:
|
|
2088
2077
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2089
2078
|
if (lookahead == '/') ADVANCE(99);
|
|
2090
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2079
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2091
2080
|
END_STATE();
|
|
2092
2081
|
case 94:
|
|
2093
2082
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2094
2083
|
if (lookahead == '+' ||
|
|
2095
2084
|
lookahead == '-') ADVANCE(96);
|
|
2096
2085
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2097
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2086
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2098
2087
|
END_STATE();
|
|
2099
2088
|
case 95:
|
|
2100
2089
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2101
2090
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(73);
|
|
2102
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2091
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2103
2092
|
END_STATE();
|
|
2104
2093
|
case 96:
|
|
2105
2094
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2106
2095
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2107
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2096
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2108
2097
|
END_STATE();
|
|
2109
2098
|
case 97:
|
|
2110
2099
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2111
2100
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2112
2101
|
('A' <= lookahead && lookahead <= 'F') ||
|
|
2113
2102
|
('a' <= lookahead && lookahead <= 'f')) ADVANCE(72);
|
|
2114
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2103
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2115
2104
|
END_STATE();
|
|
2116
2105
|
case 98:
|
|
2117
2106
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2118
2107
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2119
2108
|
('A' <= lookahead && lookahead <= 'Z') ||
|
|
2120
2109
|
('a' <= lookahead && lookahead <= 'z')) ADVANCE(74);
|
|
2121
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2110
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2122
2111
|
END_STATE();
|
|
2123
2112
|
case 99:
|
|
2124
2113
|
ACCEPT_TOKEN(aux_sym__kwd_leading_slash_token1);
|
|
2125
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2114
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2126
2115
|
END_STATE();
|
|
2127
2116
|
case 100:
|
|
2128
2117
|
ACCEPT_TOKEN(aux_sym__kwd_qualified_token1);
|
|
2129
2118
|
if (lookahead == '!') ADVANCE(49);
|
|
2130
2119
|
if (lookahead == '_') ADVANCE(52);
|
|
2131
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2120
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(101);
|
|
2132
2121
|
END_STATE();
|
|
2133
2122
|
case 101:
|
|
2134
2123
|
ACCEPT_TOKEN(aux_sym__kwd_qualified_token1);
|
|
2135
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2124
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(101);
|
|
2136
2125
|
END_STATE();
|
|
2137
2126
|
case 102:
|
|
2138
2127
|
ACCEPT_TOKEN(anon_sym_COLON);
|
|
2139
2128
|
if (lookahead == ':') ADVANCE(105);
|
|
2140
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2129
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2141
2130
|
END_STATE();
|
|
2142
2131
|
case 103:
|
|
2143
2132
|
ACCEPT_TOKEN(anon_sym_COLON);
|
|
@@ -2148,7 +2137,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2148
2137
|
END_STATE();
|
|
2149
2138
|
case 105:
|
|
2150
2139
|
ACCEPT_TOKEN(anon_sym_COLON_COLON);
|
|
2151
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2140
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2152
2141
|
END_STATE();
|
|
2153
2142
|
case 106:
|
|
2154
2143
|
ACCEPT_TOKEN(aux_sym_str_lit_token1);
|
|
@@ -2201,95 +2190,95 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2201
2190
|
case 118:
|
|
2202
2191
|
ACCEPT_TOKEN(sym_nil_lit);
|
|
2203
2192
|
if (lookahead == '/') ADVANCE(99);
|
|
2204
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2193
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(93);
|
|
2205
2194
|
END_STATE();
|
|
2206
2195
|
case 119:
|
|
2207
2196
|
ACCEPT_TOKEN(sym_nil_lit);
|
|
2208
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2197
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2209
2198
|
END_STATE();
|
|
2210
2199
|
case 120:
|
|
2211
2200
|
ACCEPT_TOKEN(sym_bool_lit);
|
|
2212
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2201
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2213
2202
|
END_STATE();
|
|
2214
2203
|
case 121:
|
|
2215
2204
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2216
2205
|
if (lookahead == '0') ADVANCE(64);
|
|
2217
2206
|
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(66);
|
|
2218
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2207
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2219
2208
|
END_STATE();
|
|
2220
2209
|
case 122:
|
|
2221
2210
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2222
2211
|
if (lookahead == 'a') ADVANCE(125);
|
|
2223
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2212
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2224
2213
|
END_STATE();
|
|
2225
2214
|
case 123:
|
|
2226
2215
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2227
2216
|
if (lookahead == 'e') ADVANCE(120);
|
|
2228
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2217
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2229
2218
|
END_STATE();
|
|
2230
2219
|
case 124:
|
|
2231
2220
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2232
2221
|
if (lookahead == 'i') ADVANCE(126);
|
|
2233
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2222
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2234
2223
|
END_STATE();
|
|
2235
2224
|
case 125:
|
|
2236
2225
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2237
2226
|
if (lookahead == 'l') ADVANCE(128);
|
|
2238
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2227
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2239
2228
|
END_STATE();
|
|
2240
2229
|
case 126:
|
|
2241
2230
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2242
2231
|
if (lookahead == 'l') ADVANCE(119);
|
|
2243
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2232
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2244
2233
|
END_STATE();
|
|
2245
2234
|
case 127:
|
|
2246
2235
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2247
2236
|
if (lookahead == 'r') ADVANCE(129);
|
|
2248
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2237
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2249
2238
|
END_STATE();
|
|
2250
2239
|
case 128:
|
|
2251
2240
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2252
2241
|
if (lookahead == 's') ADVANCE(123);
|
|
2253
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2242
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2254
2243
|
END_STATE();
|
|
2255
2244
|
case 129:
|
|
2256
2245
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2257
2246
|
if (lookahead == 'u') ADVANCE(123);
|
|
2258
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2247
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2259
2248
|
END_STATE();
|
|
2260
2249
|
case 130:
|
|
2261
2250
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2262
2251
|
if (lookahead == '+' ||
|
|
2263
2252
|
lookahead == '-') ADVANCE(131);
|
|
2264
2253
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2265
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2254
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2266
2255
|
END_STATE();
|
|
2267
2256
|
case 131:
|
|
2268
2257
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2269
2258
|
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(71);
|
|
2270
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2259
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2271
2260
|
END_STATE();
|
|
2272
2261
|
case 132:
|
|
2273
2262
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2274
2263
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2275
2264
|
('A' <= lookahead && lookahead <= 'F') ||
|
|
2276
2265
|
('a' <= lookahead && lookahead <= 'f')) ADVANCE(72);
|
|
2277
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2266
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2278
2267
|
END_STATE();
|
|
2279
2268
|
case 133:
|
|
2280
2269
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2281
2270
|
if (('0' <= lookahead && lookahead <= '9') ||
|
|
2282
2271
|
('A' <= lookahead && lookahead <= 'Z') ||
|
|
2283
2272
|
('a' <= lookahead && lookahead <= 'z')) ADVANCE(74);
|
|
2284
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2273
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2285
2274
|
END_STATE();
|
|
2286
2275
|
case 134:
|
|
2287
2276
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token1);
|
|
2288
|
-
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2,
|
|
2277
|
+
if ((!eof && set_contains(aux_sym__kwd_qualified_token1_character_set_2, 19, lookahead))) ADVANCE(134);
|
|
2289
2278
|
END_STATE();
|
|
2290
2279
|
case 135:
|
|
2291
2280
|
ACCEPT_TOKEN(aux_sym__sym_qualified_token2);
|
|
2292
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2281
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(135);
|
|
2293
2282
|
END_STATE();
|
|
2294
2283
|
case 136:
|
|
2295
2284
|
ACCEPT_TOKEN(anon_sym_CARET);
|
|
@@ -2343,7 +2332,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2343
2332
|
if (lookahead == '?') ADVANCE(150);
|
|
2344
2333
|
if (lookahead == '^') ADVANCE(137);
|
|
2345
2334
|
if (lookahead == '_') ADVANCE(53);
|
|
2346
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2335
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2347
2336
|
END_STATE();
|
|
2348
2337
|
case 147:
|
|
2349
2338
|
ACCEPT_TOKEN(anon_sym_POUND);
|
|
@@ -2353,7 +2342,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2353
2342
|
if (lookahead == '?') ADVANCE(150);
|
|
2354
2343
|
if (lookahead == '^') ADVANCE(137);
|
|
2355
2344
|
if (lookahead == '_') ADVANCE(53);
|
|
2356
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2345
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2357
2346
|
END_STATE();
|
|
2358
2347
|
case 148:
|
|
2359
2348
|
ACCEPT_TOKEN(anon_sym_POUND);
|
|
@@ -2369,11 +2358,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2369
2358
|
case 150:
|
|
2370
2359
|
ACCEPT_TOKEN(anon_sym_POUND_QMARK);
|
|
2371
2360
|
if (lookahead == '@') ADVANCE(152);
|
|
2372
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2361
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2373
2362
|
END_STATE();
|
|
2374
2363
|
case 151:
|
|
2375
2364
|
ACCEPT_TOKEN(anon_sym_POUND_QMARK);
|
|
2376
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2365
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2377
2366
|
END_STATE();
|
|
2378
2367
|
case 152:
|
|
2379
2368
|
ACCEPT_TOKEN(anon_sym_POUND_QMARK_AT);
|
|
@@ -2383,21 +2372,21 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2383
2372
|
END_STATE();
|
|
2384
2373
|
case 154:
|
|
2385
2374
|
ACCEPT_TOKEN(anon_sym_POUND_SQUOTE);
|
|
2386
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2375
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2387
2376
|
END_STATE();
|
|
2388
2377
|
case 155:
|
|
2389
2378
|
ACCEPT_TOKEN(anon_sym_POUND_POUND);
|
|
2390
2379
|
END_STATE();
|
|
2391
2380
|
case 156:
|
|
2392
2381
|
ACCEPT_TOKEN(anon_sym_POUND_POUND);
|
|
2393
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2382
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2394
2383
|
END_STATE();
|
|
2395
2384
|
case 157:
|
|
2396
2385
|
ACCEPT_TOKEN(anon_sym_POUND_EQ);
|
|
2397
2386
|
END_STATE();
|
|
2398
2387
|
case 158:
|
|
2399
2388
|
ACCEPT_TOKEN(anon_sym_POUND_EQ);
|
|
2400
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2389
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2401
2390
|
END_STATE();
|
|
2402
2391
|
case 159:
|
|
2403
2392
|
ACCEPT_TOKEN(anon_sym_AT);
|
|
@@ -2407,7 +2396,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
2407
2396
|
END_STATE();
|
|
2408
2397
|
case 161:
|
|
2409
2398
|
ACCEPT_TOKEN(anon_sym_SQUOTE);
|
|
2410
|
-
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1,
|
|
2399
|
+
if ((!eof && set_contains(aux_sym__kwd_leading_slash_token1_character_set_1, 18, lookahead))) ADVANCE(99);
|
|
2411
2400
|
END_STATE();
|
|
2412
2401
|
case 162:
|
|
2413
2402
|
ACCEPT_TOKEN(anon_sym_BQUOTE);
|
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
16
|
"metadata": {
|
|
17
|
-
"version": "0.2.
|
|
17
|
+
"version": "0.2.9",
|
|
18
18
|
"license": "CC0-1.0",
|
|
19
19
|
"description": "Parser for Clojure files",
|
|
20
20
|
"authors": [
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"links": {
|
|
26
26
|
"repository": "https://codeberg.org/grammar-orchard/tree-sitter-clojure-orchard",
|
|
27
|
-
"upstream": "https://github.com/sogaiu/tree-sitter-clojure"
|
|
27
|
+
"upstream": "https://github.com/sogaiu/tree-sitter-clojure",
|
|
28
|
+
"github_mirror": "https://github.com/grammar-orchard/tree-sitter-clojure-orchard"
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
"bindings": {
|