tree-sitter 0.20, --abi=14

This commit is contained in:
Shadowfacts 2022-05-28 10:47:57 -04:00
parent a03f1d2d1d
commit dab6d76f9c
3 changed files with 286 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-css"
description = "css grammar for the tree-sitter parsing library"
version = "0.19.0"
version = "0.20.0"
keywords = ["incremental", "parsing", "css"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-javascript"
@ -21,7 +21,7 @@ include = [
path = "bindings/rust/lib.rs"
[dependencies]
tree-sitter = "0.19"
tree-sitter = "0.20"
[build-dependencies]
cc = "1.0"

284
src/parser.c vendored
View File

@ -5,7 +5,7 @@
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 13
#define LANGUAGE_VERSION 14
#define STATE_COUNT 278
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 102
@ -854,6 +854,287 @@ 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] = 2,
[5] = 2,
[6] = 3,
[7] = 3,
[8] = 8,
[9] = 9,
[10] = 10,
[11] = 11,
[12] = 12,
[13] = 13,
[14] = 14,
[15] = 14,
[16] = 16,
[17] = 17,
[18] = 18,
[19] = 19,
[20] = 20,
[21] = 21,
[22] = 22,
[23] = 23,
[24] = 24,
[25] = 24,
[26] = 26,
[27] = 27,
[28] = 24,
[29] = 29,
[30] = 30,
[31] = 31,
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 29,
[40] = 35,
[41] = 41,
[42] = 42,
[43] = 43,
[44] = 44,
[45] = 45,
[46] = 46,
[47] = 47,
[48] = 48,
[49] = 49,
[50] = 50,
[51] = 30,
[52] = 52,
[53] = 53,
[54] = 54,
[55] = 55,
[56] = 56,
[57] = 57,
[58] = 52,
[59] = 48,
[60] = 60,
[61] = 49,
[62] = 45,
[63] = 44,
[64] = 42,
[65] = 43,
[66] = 34,
[67] = 38,
[68] = 53,
[69] = 33,
[70] = 31,
[71] = 32,
[72] = 60,
[73] = 36,
[74] = 47,
[75] = 50,
[76] = 54,
[77] = 55,
[78] = 56,
[79] = 79,
[80] = 80,
[81] = 81,
[82] = 82,
[83] = 83,
[84] = 84,
[85] = 85,
[86] = 84,
[87] = 84,
[88] = 88,
[89] = 85,
[90] = 90,
[91] = 91,
[92] = 92,
[93] = 93,
[94] = 94,
[95] = 95,
[96] = 96,
[97] = 97,
[98] = 98,
[99] = 99,
[100] = 100,
[101] = 101,
[102] = 102,
[103] = 103,
[104] = 104,
[105] = 105,
[106] = 106,
[107] = 107,
[108] = 108,
[109] = 101,
[110] = 110,
[111] = 101,
[112] = 112,
[113] = 103,
[114] = 114,
[115] = 115,
[116] = 116,
[117] = 102,
[118] = 112,
[119] = 102,
[120] = 115,
[121] = 107,
[122] = 122,
[123] = 123,
[124] = 124,
[125] = 125,
[126] = 126,
[127] = 127,
[128] = 128,
[129] = 129,
[130] = 130,
[131] = 131,
[132] = 132,
[133] = 133,
[134] = 57,
[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] = 147,
[151] = 151,
[152] = 148,
[153] = 153,
[154] = 154,
[155] = 155,
[156] = 82,
[157] = 157,
[158] = 80,
[159] = 149,
[160] = 160,
[161] = 79,
[162] = 93,
[163] = 94,
[164] = 92,
[165] = 83,
[166] = 96,
[167] = 90,
[168] = 88,
[169] = 169,
[170] = 95,
[171] = 57,
[172] = 79,
[173] = 80,
[174] = 94,
[175] = 95,
[176] = 176,
[177] = 177,
[178] = 178,
[179] = 178,
[180] = 180,
[181] = 83,
[182] = 88,
[183] = 82,
[184] = 90,
[185] = 92,
[186] = 186,
[187] = 186,
[188] = 96,
[189] = 93,
[190] = 190,
[191] = 180,
[192] = 192,
[193] = 193,
[194] = 192,
[195] = 195,
[196] = 196,
[197] = 197,
[198] = 198,
[199] = 199,
[200] = 200,
[201] = 201,
[202] = 200,
[203] = 203,
[204] = 204,
[205] = 205,
[206] = 206,
[207] = 207,
[208] = 208,
[209] = 206,
[210] = 204,
[211] = 205,
[212] = 201,
[213] = 201,
[214] = 214,
[215] = 215,
[216] = 216,
[217] = 217,
[218] = 34,
[219] = 45,
[220] = 50,
[221] = 221,
[222] = 222,
[223] = 214,
[224] = 224,
[225] = 217,
[226] = 216,
[227] = 214,
[228] = 228,
[229] = 229,
[230] = 230,
[231] = 228,
[232] = 232,
[233] = 233,
[234] = 234,
[235] = 235,
[236] = 235,
[237] = 237,
[238] = 238,
[239] = 239,
[240] = 79,
[241] = 241,
[242] = 242,
[243] = 241,
[244] = 244,
[245] = 245,
[246] = 237,
[247] = 247,
[248] = 248,
[249] = 249,
[250] = 250,
[251] = 251,
[252] = 252,
[253] = 252,
[254] = 254,
[255] = 255,
[256] = 256,
[257] = 257,
[258] = 258,
[259] = 259,
[260] = 260,
[261] = 261,
[262] = 248,
[263] = 247,
[264] = 264,
[265] = 256,
[266] = 260,
[267] = 248,
[268] = 268,
[269] = 269,
[270] = 257,
[271] = 251,
[272] = 272,
[273] = 247,
[274] = 256,
[275] = 254,
[276] = 276,
[277] = 277,
};
static inline bool sym_plain_value_character_set_1(int32_t c) {
return (c < ','
? (c < '\r'
@ -9352,6 +9633,7 @@ extern const TSLanguage *tree_sitter_css(void) {
tree_sitter_css_external_scanner_serialize,
tree_sitter_css_external_scanner_deserialize,
},
.primary_state_ids = ts_primary_state_ids,
};
return &language;
}

View File

@ -123,6 +123,7 @@ struct TSLanguage {
unsigned (*serialize)(void *, char *);
void (*deserialize)(void *, const char *, unsigned);
} external_scanner;
const TSStateId *primary_state_ids;
};
/*