diff --git a/src/grammar.json b/src/grammar.json index 68286a0..50559d5 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1005,8 +1005,13 @@ "type": "SEQ", "members": [ { - "type": "SYMBOL", - "name": "_quoted_atom_start" + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "_quoted_atom_start" + }, + "named": false, + "value": ":" }, { "type": "CHOICE", @@ -3522,8 +3527,13 @@ "value": "in" }, { - "type": "SYMBOL", - "name": "_not_in" + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "_not_in" + }, + "named": false, + "value": "not in" } ] } @@ -3992,8 +4002,13 @@ "value": "in" }, { - "type": "SYMBOL", - "name": "_not_in" + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "_not_in" + }, + "named": false, + "value": "not in" }, { "type": "STRING", diff --git a/src/node-types.json b/src/node-types.json index 3f5d9a6..a699ddc 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -692,6 +692,10 @@ "type": "in", "named": false }, + { + "type": "not in", + "named": false + }, { "type": "or", "named": false @@ -3149,6 +3153,10 @@ "type": "//", "named": false }, + { + "type": ":", + "named": false + }, { "type": "::", "named": false @@ -3337,6 +3345,10 @@ "type": "not", "named": false }, + { + "type": "not in", + "named": false + }, { "type": "or", "named": false diff --git a/src/parser.c b/src/parser.c index 43d9c02..769fef3 100644 --- a/src/parser.c +++ b/src/parser.c @@ -385,8 +385,8 @@ static const char * const ts_symbol_names[] = { [sym__newline_before_binary_operator] = "_newline_before_binary_operator", [sym__newline_before_comment] = "_newline_before_comment", [sym__before_unary_op] = "_before_unary_op", - [sym__not_in] = "_not_in", - [sym__quoted_atom_start] = "_quoted_atom_start", + [sym__not_in] = "not in", + [sym__quoted_atom_start] = ":", [sym_source] = "source", [sym__terminator] = "_terminator", [sym__expression] = "_expression", @@ -1231,12 +1231,12 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .named = true, }, [sym__not_in] = { - .visible = false, - .named = true, + .visible = true, + .named = false, }, [sym__quoted_atom_start] = { - .visible = false, - .named = true, + .visible = true, + .named = false, }, [sym_source] = { .visible = true,