diff --git a/src/parser.c b/src/parser.c index 79090c5..642991d 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif -#define LANGUAGE_VERSION 13 +#define LANGUAGE_VERSION 14 #define STATE_COUNT 190 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 89 @@ -707,6 +707,199 @@ static const uint16_t ts_non_terminal_alias_map[] = { 0, }; +static const TSStateId ts_primary_state_ids[STATE_COUNT] = { + [0] = 0, + [1] = 1, + [2] = 2, + [3] = 3, + [4] = 4, + [5] = 5, + [6] = 6, + [7] = 4, + [8] = 8, + [9] = 4, + [10] = 10, + [11] = 11, + [12] = 12, + [13] = 12, + [14] = 14, + [15] = 15, + [16] = 12, + [17] = 17, + [18] = 18, + [19] = 19, + [20] = 17, + [21] = 21, + [22] = 17, + [23] = 23, + [24] = 19, + [25] = 18, + [26] = 23, + [27] = 19, + [28] = 23, + [29] = 17, + [30] = 30, + [31] = 31, + [32] = 18, + [33] = 33, + [34] = 5, + [35] = 35, + [36] = 36, + [37] = 37, + [38] = 38, + [39] = 39, + [40] = 40, + [41] = 41, + [42] = 33, + [43] = 38, + [44] = 37, + [45] = 40, + [46] = 36, + [47] = 41, + [48] = 48, + [49] = 49, + [50] = 50, + [51] = 51, + [52] = 52, + [53] = 53, + [54] = 54, + [55] = 55, + [56] = 56, + [57] = 57, + [58] = 58, + [59] = 59, + [60] = 60, + [61] = 61, + [62] = 62, + [63] = 63, + [64] = 64, + [65] = 65, + [66] = 66, + [67] = 67, + [68] = 68, + [69] = 69, + [70] = 48, + [71] = 71, + [72] = 72, + [73] = 73, + [74] = 74, + [75] = 75, + [76] = 76, + [77] = 77, + [78] = 78, + [79] = 79, + [80] = 80, + [81] = 81, + [82] = 82, + [83] = 83, + [84] = 84, + [85] = 85, + [86] = 86, + [87] = 87, + [88] = 88, + [89] = 89, + [90] = 90, + [91] = 91, + [92] = 92, + [93] = 93, + [94] = 94, + [95] = 95, + [96] = 96, + [97] = 97, + [98] = 98, + [99] = 99, + [100] = 100, + [101] = 40, + [102] = 102, + [103] = 103, + [104] = 104, + [105] = 105, + [106] = 36, + [107] = 107, + [108] = 108, + [109] = 38, + [110] = 110, + [111] = 48, + [112] = 66, + [113] = 5, + [114] = 114, + [115] = 41, + [116] = 37, + [117] = 40, + [118] = 118, + [119] = 119, + [120] = 33, + [121] = 121, + [122] = 48, + [123] = 123, + [124] = 124, + [125] = 14, + [126] = 126, + [127] = 127, + [128] = 128, + [129] = 129, + [130] = 130, + [131] = 15, + [132] = 132, + [133] = 133, + [134] = 134, + [135] = 135, + [136] = 136, + [137] = 137, + [138] = 138, + [139] = 139, + [140] = 140, + [141] = 141, + [142] = 142, + [143] = 143, + [144] = 144, + [145] = 145, + [146] = 146, + [147] = 147, + [148] = 148, + [149] = 149, + [150] = 150, + [151] = 151, + [152] = 152, + [153] = 153, + [154] = 154, + [155] = 155, + [156] = 156, + [157] = 157, + [158] = 14, + [159] = 159, + [160] = 15, + [161] = 161, + [162] = 162, + [163] = 163, + [164] = 137, + [165] = 163, + [166] = 166, + [167] = 140, + [168] = 166, + [169] = 137, + [170] = 170, + [171] = 166, + [172] = 140, + [173] = 173, + [174] = 174, + [175] = 175, + [176] = 176, + [177] = 177, + [178] = 135, + [179] = 135, + [180] = 161, + [181] = 161, + [182] = 141, + [183] = 141, + [184] = 173, + [185] = 185, + [186] = 138, + [187] = 138, + [188] = 188, + [189] = 189, +}; + static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); eof = lexer->eof(lexer); @@ -4385,6 +4578,7 @@ extern const TSLanguage *tree_sitter_just(void) { tree_sitter_just_external_scanner_serialize, tree_sitter_just_external_scanner_deserialize, }, + .primary_state_ids = ts_primary_state_ids, }; return &language; } diff --git a/src/tree_sitter/parser.h b/src/tree_sitter/parser.h index cbbc7b4..2b14ac1 100644 --- a/src/tree_sitter/parser.h +++ b/src/tree_sitter/parser.h @@ -123,6 +123,7 @@ struct TSLanguage { unsigned (*serialize)(void *, char *); void (*deserialize)(void *, const char *, unsigned); } external_scanner; + const TSStateId *primary_state_ids; }; /*