#include "tree_sitter/parser.h"
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 15
#define STATE_COUNT 171
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 86
#define ALIAS_COUNT 0
#define TOKEN_COUNT 41
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 16
#define MAX_ALIAS_SEQUENCE_LENGTH 5
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 26
#define SUPERTYPE_COUNT 0
enum ts_symbol_identifiers {
anon_sym_LBRACK = 1,
anon_sym_PIPE = 2,
anon_sym_RBRACK = 3,
anon_sym_COMMA = 4,
anon_sym_AT = 5,
anon_sym_LPAREN = 6,
anon_sym_RPAREN = 7,
anon_sym_COLON = 8,
anon_sym_COLON_COLON = 9,
anon_sym_LBRACE = 10,
anon_sym_RBRACE = 11,
sym_symbol = 12,
anon_sym_DOT_DOT = 13,
anon_sym_DOT_DOT_DOT = 14,
anon_sym_true = 15,
anon_sym_false = 16,
sym_integer = 17,
sym_decimal = 18,
sym_hexadecimal = 19,
sym_octal = 20,
sym_measurement = 21,
anon_sym_SQUOTE = 22,
sym__single_quoted_text = 23,
anon_sym_DQUOTE = 24,
sym__double_quoted_text = 25,
anon_sym_BQUOTE = 26,
sym__backticked_text = 27,
anon_sym_BQUOTE_BQUOTE_BQUOTE = 28,
anon_sym_LF = 29,
sym__fenced_string_content = 30,
anon_sym_DASH = 31,
anon_sym_EQ = 32,
anon_sym_TILDE = 33,
anon_sym_DASH_GT = 34,
anon_sym_EQ_GT = 35,
anon_sym_TILDE_GT = 36,
anon_sym_LT_DASH = 37,
anon_sym_LT_EQ = 38,
anon_sym_LT_TILDE = 39,
sym_comment = 40,
sym_gram_pattern = 41,
sym__top_level_pattern = 42,
sym_annotated_pattern = 43,
sym_subject_pattern = 44,
sym_subject_pattern_elements = 45,
sym__subject_pattern_element = 46,
sym_annotations = 47,
sym_annotation = 48,
sym__path_pattern = 49,
sym_node_pattern = 50,
sym_relationship_pattern = 51,
sym_pattern_reference = 52,
sym__identifier = 53,
sym__subject = 54,
sym__value = 55,
sym__scalar_value = 56,
sym_array = 57,
sym_labels = 58,
sym__label = 59,
sym_record = 60,
sym_record_property = 61,
sym_map = 62,
sym_map_entry = 63,
sym_range = 64,
sym_boolean_literal = 65,
sym__numeric_literal = 66,
sym_string_literal = 67,
sym__single_quoted_string = 68,
sym__double_quoted_string = 69,
sym__backticked_string = 70,
sym__fenced_string = 71,
sym__fenced_string_body = 72,
sym_tagged_string = 73,
sym__relationship_kind = 74,
sym_undirected_arrow = 75,
sym_right_arrow = 76,
sym_left_arrow = 77,
sym_bidirectional_arrow = 78,
aux_sym_gram_pattern_repeat1 = 79,
aux_sym_subject_pattern_elements_repeat1 = 80,
aux_sym_annotations_repeat1 = 81,
aux_sym_array_repeat1 = 82,
aux_sym_labels_repeat1 = 83,
aux_sym_record_repeat1 = 84,
aux_sym_map_repeat1 = 85,
};
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[anon_sym_LBRACK] = "[",
[anon_sym_PIPE] = "|",
[anon_sym_RBRACK] = "]",
[anon_sym_COMMA] = ",",
[anon_sym_AT] = "@",
[anon_sym_LPAREN] = "(",
[anon_sym_RPAREN] = ")",
[anon_sym_COLON] = ":",
[anon_sym_COLON_COLON] = "::",
[anon_sym_LBRACE] = "{",
[anon_sym_RBRACE] = "}",
[sym_symbol] = "symbol",
[anon_sym_DOT_DOT] = "..",
[anon_sym_DOT_DOT_DOT] = "...",
[anon_sym_true] = "true",
[anon_sym_false] = "false",
[sym_integer] = "integer",
[sym_decimal] = "decimal",
[sym_hexadecimal] = "hexadecimal",
[sym_octal] = "octal",
[sym_measurement] = "measurement",
[anon_sym_SQUOTE] = "'",
[sym__single_quoted_text] = "string_content",
[anon_sym_DQUOTE] = "\"",
[sym__double_quoted_text] = "string_content",
[anon_sym_BQUOTE] = "`",
[sym__backticked_text] = "string_content",
[anon_sym_BQUOTE_BQUOTE_BQUOTE] = "```",
[anon_sym_LF] = "\n",
[sym__fenced_string_content] = "string_content",
[anon_sym_DASH] = "-",
[anon_sym_EQ] = "=",
[anon_sym_TILDE] = "~",
[anon_sym_DASH_GT] = "->",
[anon_sym_EQ_GT] = "=>",
[anon_sym_TILDE_GT] = "~>",
[anon_sym_LT_DASH] = "<-",
[anon_sym_LT_EQ] = "<=",
[anon_sym_LT_TILDE] = "<~",
[sym_comment] = "comment",
[sym_gram_pattern] = "gram_pattern",
[sym__top_level_pattern] = "_top_level_pattern",
[sym_annotated_pattern] = "annotated_pattern",
[sym_subject_pattern] = "subject_pattern",
[sym_subject_pattern_elements] = "subject_pattern_elements",
[sym__subject_pattern_element] = "_subject_pattern_element",
[sym_annotations] = "annotations",
[sym_annotation] = "annotation",
[sym__path_pattern] = "_path_pattern",
[sym_node_pattern] = "node_pattern",
[sym_relationship_pattern] = "relationship_pattern",
[sym_pattern_reference] = "pattern_reference",
[sym__identifier] = "_identifier",
[sym__subject] = "_subject",
[sym__value] = "_value",
[sym__scalar_value] = "_scalar_value",
[sym_array] = "array",
[sym_labels] = "labels",
[sym__label] = "_label",
[sym_record] = "record",
[sym_record_property] = "record_property",
[sym_map] = "map",
[sym_map_entry] = "map_entry",
[sym_range] = "range",
[sym_boolean_literal] = "boolean_literal",
[sym__numeric_literal] = "_numeric_literal",
[sym_string_literal] = "string_literal",
[sym__single_quoted_string] = "_single_quoted_string",
[sym__double_quoted_string] = "_double_quoted_string",
[sym__backticked_string] = "_backticked_string",
[sym__fenced_string] = "_fenced_string",
[sym__fenced_string_body] = "_fenced_string_body",
[sym_tagged_string] = "tagged_string",
[sym__relationship_kind] = "_relationship_kind",
[sym_undirected_arrow] = "undirected_arrow",
[sym_right_arrow] = "right_arrow",
[sym_left_arrow] = "left_arrow",
[sym_bidirectional_arrow] = "bidirectional_arrow",
[aux_sym_gram_pattern_repeat1] = "gram_pattern_repeat1",
[aux_sym_subject_pattern_elements_repeat1] = "subject_pattern_elements_repeat1",
[aux_sym_annotations_repeat1] = "annotations_repeat1",
[aux_sym_array_repeat1] = "array_repeat1",
[aux_sym_labels_repeat1] = "labels_repeat1",
[aux_sym_record_repeat1] = "record_repeat1",
[aux_sym_map_repeat1] = "map_repeat1",
};
static const TSSymbol ts_symbol_map[] = {
[ts_builtin_sym_end] = ts_builtin_sym_end,
[anon_sym_LBRACK] = anon_sym_LBRACK,
[anon_sym_PIPE] = anon_sym_PIPE,
[anon_sym_RBRACK] = anon_sym_RBRACK,
[anon_sym_COMMA] = anon_sym_COMMA,
[anon_sym_AT] = anon_sym_AT,
[anon_sym_LPAREN] = anon_sym_LPAREN,
[anon_sym_RPAREN] = anon_sym_RPAREN,
[anon_sym_COLON] = anon_sym_COLON,
[anon_sym_COLON_COLON] = anon_sym_COLON_COLON,
[anon_sym_LBRACE] = anon_sym_LBRACE,
[anon_sym_RBRACE] = anon_sym_RBRACE,
[sym_symbol] = sym_symbol,
[anon_sym_DOT_DOT] = anon_sym_DOT_DOT,
[anon_sym_DOT_DOT_DOT] = anon_sym_DOT_DOT_DOT,
[anon_sym_true] = anon_sym_true,
[anon_sym_false] = anon_sym_false,
[sym_integer] = sym_integer,
[sym_decimal] = sym_decimal,
[sym_hexadecimal] = sym_hexadecimal,
[sym_octal] = sym_octal,
[sym_measurement] = sym_measurement,
[anon_sym_SQUOTE] = anon_sym_SQUOTE,
[sym__single_quoted_text] = sym__single_quoted_text,
[anon_sym_DQUOTE] = anon_sym_DQUOTE,
[sym__double_quoted_text] = sym__single_quoted_text,
[anon_sym_BQUOTE] = anon_sym_BQUOTE,
[sym__backticked_text] = sym__single_quoted_text,
[anon_sym_BQUOTE_BQUOTE_BQUOTE] = anon_sym_BQUOTE_BQUOTE_BQUOTE,
[anon_sym_LF] = anon_sym_LF,
[sym__fenced_string_content] = sym__single_quoted_text,
[anon_sym_DASH] = anon_sym_DASH,
[anon_sym_EQ] = anon_sym_EQ,
[anon_sym_TILDE] = anon_sym_TILDE,
[anon_sym_DASH_GT] = anon_sym_DASH_GT,
[anon_sym_EQ_GT] = anon_sym_EQ_GT,
[anon_sym_TILDE_GT] = anon_sym_TILDE_GT,
[anon_sym_LT_DASH] = anon_sym_LT_DASH,
[anon_sym_LT_EQ] = anon_sym_LT_EQ,
[anon_sym_LT_TILDE] = anon_sym_LT_TILDE,
[sym_comment] = sym_comment,
[sym_gram_pattern] = sym_gram_pattern,
[sym__top_level_pattern] = sym__top_level_pattern,
[sym_annotated_pattern] = sym_annotated_pattern,
[sym_subject_pattern] = sym_subject_pattern,
[sym_subject_pattern_elements] = sym_subject_pattern_elements,
[sym__subject_pattern_element] = sym__subject_pattern_element,
[sym_annotations] = sym_annotations,
[sym_annotation] = sym_annotation,
[sym__path_pattern] = sym__path_pattern,
[sym_node_pattern] = sym_node_pattern,
[sym_relationship_pattern] = sym_relationship_pattern,
[sym_pattern_reference] = sym_pattern_reference,
[sym__identifier] = sym__identifier,
[sym__subject] = sym__subject,
[sym__value] = sym__value,
[sym__scalar_value] = sym__scalar_value,
[sym_array] = sym_array,
[sym_labels] = sym_labels,
[sym__label] = sym__label,
[sym_record] = sym_record,
[sym_record_property] = sym_record_property,
[sym_map] = sym_map,
[sym_map_entry] = sym_map_entry,
[sym_range] = sym_range,
[sym_boolean_literal] = sym_boolean_literal,
[sym__numeric_literal] = sym__numeric_literal,
[sym_string_literal] = sym_string_literal,
[sym__single_quoted_string] = sym__single_quoted_string,
[sym__double_quoted_string] = sym__double_quoted_string,
[sym__backticked_string] = sym__backticked_string,
[sym__fenced_string] = sym__fenced_string,
[sym__fenced_string_body] = sym__fenced_string_body,
[sym_tagged_string] = sym_tagged_string,
[sym__relationship_kind] = sym__relationship_kind,
[sym_undirected_arrow] = sym_undirected_arrow,
[sym_right_arrow] = sym_right_arrow,
[sym_left_arrow] = sym_left_arrow,
[sym_bidirectional_arrow] = sym_bidirectional_arrow,
[aux_sym_gram_pattern_repeat1] = aux_sym_gram_pattern_repeat1,
[aux_sym_subject_pattern_elements_repeat1] = aux_sym_subject_pattern_elements_repeat1,
[aux_sym_annotations_repeat1] = aux_sym_annotations_repeat1,
[aux_sym_array_repeat1] = aux_sym_array_repeat1,
[aux_sym_labels_repeat1] = aux_sym_labels_repeat1,
[aux_sym_record_repeat1] = aux_sym_record_repeat1,
[aux_sym_map_repeat1] = aux_sym_map_repeat1,
};
static const TSSymbolMetadata ts_symbol_metadata[] = {
[ts_builtin_sym_end] = {
.visible = false,
.named = true,
},
[anon_sym_LBRACK] = {
.visible = true,
.named = false,
},
[anon_sym_PIPE] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACK] = {
.visible = true,
.named = false,
},
[anon_sym_COMMA] = {
.visible = true,
.named = false,
},
[anon_sym_AT] = {
.visible = true,
.named = false,
},
[anon_sym_LPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_RPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_COLON] = {
.visible = true,
.named = false,
},
[anon_sym_COLON_COLON] = {
.visible = true,
.named = false,
},
[anon_sym_LBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACE] = {
.visible = true,
.named = false,
},
[sym_symbol] = {
.visible = true,
.named = true,
},
[anon_sym_DOT_DOT] = {
.visible = true,
.named = false,
},
[anon_sym_DOT_DOT_DOT] = {
.visible = true,
.named = false,
},
[anon_sym_true] = {
.visible = true,
.named = false,
},
[anon_sym_false] = {
.visible = true,
.named = false,
},
[sym_integer] = {
.visible = true,
.named = true,
},
[sym_decimal] = {
.visible = true,
.named = true,
},
[sym_hexadecimal] = {
.visible = true,
.named = true,
},
[sym_octal] = {
.visible = true,
.named = true,
},
[sym_measurement] = {
.visible = true,
.named = true,
},
[anon_sym_SQUOTE] = {
.visible = true,
.named = false,
},
[sym__single_quoted_text] = {
.visible = true,
.named = true,
},
[anon_sym_DQUOTE] = {
.visible = true,
.named = false,
},
[sym__double_quoted_text] = {
.visible = true,
.named = true,
},
[anon_sym_BQUOTE] = {
.visible = true,
.named = false,
},
[sym__backticked_text] = {
.visible = true,
.named = true,
},
[anon_sym_BQUOTE_BQUOTE_BQUOTE] = {
.visible = true,
.named = false,
},
[anon_sym_LF] = {
.visible = true,
.named = false,
},
[sym__fenced_string_content] = {
.visible = true,
.named = true,
},
[anon_sym_DASH] = {
.visible = true,
.named = false,
},
[anon_sym_EQ] = {
.visible = true,
.named = false,
},
[anon_sym_TILDE] = {
.visible = true,
.named = false,
},
[anon_sym_DASH_GT] = {
.visible = true,
.named = false,
},
[anon_sym_EQ_GT] = {
.visible = true,
.named = false,
},
[anon_sym_TILDE_GT] = {
.visible = true,
.named = false,
},
[anon_sym_LT_DASH] = {
.visible = true,
.named = false,
},
[anon_sym_LT_EQ] = {
.visible = true,
.named = false,
},
[anon_sym_LT_TILDE] = {
.visible = true,
.named = false,
},
[sym_comment] = {
.visible = true,
.named = true,
},
[sym_gram_pattern] = {
.visible = true,
.named = true,
},
[sym__top_level_pattern] = {
.visible = false,
.named = true,
},
[sym_annotated_pattern] = {
.visible = true,
.named = true,
},
[sym_subject_pattern] = {
.visible = true,
.named = true,
},
[sym_subject_pattern_elements] = {
.visible = true,
.named = true,
},
[sym__subject_pattern_element] = {
.visible = false,
.named = true,
},
[sym_annotations] = {
.visible = true,
.named = true,
},
[sym_annotation] = {
.visible = true,
.named = true,
},
[sym__path_pattern] = {
.visible = false,
.named = true,
},
[sym_node_pattern] = {
.visible = true,
.named = true,
},
[sym_relationship_pattern] = {
.visible = true,
.named = true,
},
[sym_pattern_reference] = {
.visible = true,
.named = true,
},
[sym__identifier] = {
.visible = false,
.named = true,
},
[sym__subject] = {
.visible = false,
.named = true,
},
[sym__value] = {
.visible = false,
.named = true,
},
[sym__scalar_value] = {
.visible = false,
.named = true,
},
[sym_array] = {
.visible = true,
.named = true,
},
[sym_labels] = {
.visible = true,
.named = true,
},
[sym__label] = {
.visible = false,
.named = true,
},
[sym_record] = {
.visible = true,
.named = true,
},
[sym_record_property] = {
.visible = true,
.named = true,
},
[sym_map] = {
.visible = true,
.named = true,
},
[sym_map_entry] = {
.visible = true,
.named = true,
},
[sym_range] = {
.visible = true,
.named = true,
},
[sym_boolean_literal] = {
.visible = true,
.named = true,
},
[sym__numeric_literal] = {
.visible = false,
.named = true,
},
[sym_string_literal] = {
.visible = true,
.named = true,
},
[sym__single_quoted_string] = {
.visible = false,
.named = true,
},
[sym__double_quoted_string] = {
.visible = false,
.named = true,
},
[sym__backticked_string] = {
.visible = false,
.named = true,
},
[sym__fenced_string] = {
.visible = false,
.named = true,
},
[sym__fenced_string_body] = {
.visible = false,
.named = true,
},
[sym_tagged_string] = {
.visible = true,
.named = true,
},
[sym__relationship_kind] = {
.visible = false,
.named = true,
},
[sym_undirected_arrow] = {
.visible = true,
.named = true,
},
[sym_right_arrow] = {
.visible = true,
.named = true,
},
[sym_left_arrow] = {
.visible = true,
.named = true,
},
[sym_bidirectional_arrow] = {
.visible = true,
.named = true,
},
[aux_sym_gram_pattern_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_subject_pattern_elements_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_annotations_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_array_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_labels_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_record_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_map_repeat1] = {
.visible = false,
.named = false,
},
};
enum ts_field_identifiers {
field_annotations = 1,
field_content = 2,
field_elements = 3,
field_identifier = 4,
field_key = 5,
field_kind = 6,
field_labels = 7,
field_left = 8,
field_lower = 9,
field_record = 10,
field_right = 11,
field_root = 12,
field_subject = 13,
field_tag = 14,
field_upper = 15,
field_value = 16,
};
static const char * const ts_field_names[] = {
[0] = NULL,
[field_annotations] = "annotations",
[field_content] = "content",
[field_elements] = "elements",
[field_identifier] = "identifier",
[field_key] = "key",
[field_kind] = "kind",
[field_labels] = "labels",
[field_left] = "left",
[field_lower] = "lower",
[field_record] = "record",
[field_right] = "right",
[field_root] = "root",
[field_subject] = "subject",
[field_tag] = "tag",
[field_upper] = "upper",
[field_value] = "value",
};
static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
[1] = {.index = 0, .length = 1},
[2] = {.index = 1, .length = 1},
[3] = {.index = 2, .length = 1},
[4] = {.index = 3, .length = 1},
[5] = {.index = 4, .length = 1},
[6] = {.index = 5, .length = 2},
[7] = {.index = 7, .length = 1},
[8] = {.index = 8, .length = 2},
[9] = {.index = 10, .length = 2},
[10] = {.index = 12, .length = 4},
[11] = {.index = 16, .length = 2},
[12] = {.index = 18, .length = 3},
[13] = {.index = 21, .length = 2},
[14] = {.index = 23, .length = 1},
[15] = {.index = 24, .length = 3},
[16] = {.index = 27, .length = 2},
[17] = {.index = 29, .length = 6},
[18] = {.index = 35, .length = 1},
[19] = {.index = 36, .length = 2},
[20] = {.index = 38, .length = 1},
[21] = {.index = 39, .length = 2},
[22] = {.index = 41, .length = 4},
[23] = {.index = 45, .length = 2},
[24] = {.index = 47, .length = 1},
[25] = {.index = 48, .length = 2},
};
static const TSFieldMapEntry ts_field_map_entries[] = {
[0] =
{field_root, 0},
[1] =
{field_identifier, 0},
[2] =
{field_labels, 0},
[3] =
{field_record, 0},
[4] =
{field_content, 0, .inherited = true},
[5] =
{field_annotations, 0},
{field_elements, 1},
[7] =
{field_content, 1, .inherited = true},
[8] =
{field_identifier, 0},
{field_labels, 1},
[10] =
{field_identifier, 0},
{field_record, 1},
[12] =
{field_identifier, 1, .inherited = true},
{field_labels, 1, .inherited = true},
{field_record, 1, .inherited = true},
{field_subject, 1},
[16] =
{field_labels, 0},
{field_record, 1},
[18] =
{field_kind, 1},
{field_left, 0},
{field_right, 2},
[21] =
{field_elements, 1},
{field_elements, 2},
[23] =
{field_content, 1},
[24] =
{field_identifier, 0},
{field_labels, 1},
{field_record, 2},
[27] =
{field_key, 0},
{field_value, 2},
[29] =
{field_elements, 2},
{field_elements, 3},
{field_identifier, 1, .inherited = true},
{field_labels, 1, .inherited = true},
{field_record, 1, .inherited = true},
{field_subject, 1},
[35] =
{field_upper, 1},
[36] =
{field_key, 1},
{field_value, 3},
[38] =
{field_lower, 0},
[39] =
{field_lower, 0},
{field_upper, 2},
[41] =
{field_identifier, 2, .inherited = true},
{field_labels, 2, .inherited = true},
{field_record, 2, .inherited = true},
{field_subject, 2},
[45] =
{field_content, 2},
{field_tag, 0},
[47] =
{field_tag, 1},
[48] =
{field_content, 3},
{field_tag, 1},
};
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
[0] = {0},
};
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] = 7,
[8] = 8,
[9] = 9,
[10] = 10,
[11] = 11,
[12] = 12,
[13] = 13,
[14] = 14,
[15] = 15,
[16] = 16,
[17] = 17,
[18] = 18,
[19] = 19,
[20] = 20,
[21] = 21,
[22] = 22,
[23] = 23,
[24] = 24,
[25] = 25,
[26] = 26,
[27] = 27,
[28] = 28,
[29] = 29,
[30] = 30,
[31] = 31,
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 39,
[40] = 40,
[41] = 41,
[42] = 42,
[43] = 43,
[44] = 44,
[45] = 45,
[46] = 46,
[47] = 47,
[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] = 70,
[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] = 101,
[102] = 102,
[103] = 103,
[104] = 104,
[105] = 105,
[106] = 106,
[107] = 107,
[108] = 108,
[109] = 109,
[110] = 110,
[111] = 111,
[112] = 112,
[113] = 113,
[114] = 114,
[115] = 115,
[116] = 116,
[117] = 117,
[118] = 118,
[119] = 119,
[120] = 120,
[121] = 121,
[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] = 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] = 158,
[159] = 159,
[160] = 160,
[161] = 161,
[162] = 162,
[163] = 163,
[164] = 164,
[165] = 165,
[166] = 166,
[167] = 167,
[168] = 168,
[169] = 169,
[170] = 170,
};
static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(22);
ADVANCE_MAP(
'"', 62,
'\'', 57,
'(', 28,
')', 29,
',', 26,
'-', 78,
'.', 5,
'/', 8,
'0', 47,
':', 30,
'<', 4,
'=', 81,
'@', 27,
'[', 23,
']', 25,
'`', 67,
'f', 34,
't', 38,
'{', 32,
'|', 24,
'}', 33,
'~', 83,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(0);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(48);
if (('A' <= lookahead && lookahead <= 'Z') ||
('_' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 1:
if (lookahead == '\n') ADVANCE(73);
if (lookahead == '/') ADVANCE(8);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(1);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 2:
ADVANCE_MAP(
'"', 62,
'\'', 57,
'(', 28,
')', 29,
'-', 11,
'/', 8,
'0', 46,
':', 30,
'[', 23,
']', 25,
'`', 67,
'{', 32,
'|', 24,
'}', 33,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(2);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(50);
if (('A' <= lookahead && lookahead <= 'Z') ||
('_' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 3:
ADVANCE_MAP(
'"', 62,
'\'', 57,
'-', 10,
'.', 7,
'/', 8,
'0', 47,
'[', 23,
'`', 67,
'f', 34,
't', 38,
'{', 32,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(3);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(48);
if (('A' <= lookahead && lookahead <= 'Z') ||
('_' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 4:
if (lookahead == '-') ADVANCE(87);
if (lookahead == '=') ADVANCE(88);
if (lookahead == '~') ADVANCE(89);
END_STATE();
case 5:
if (lookahead == '.') ADVANCE(42);
END_STATE();
case 6:
if (lookahead == '.') ADVANCE(43);
END_STATE();
case 7:
if (lookahead == '.') ADVANCE(6);
END_STATE();
case 8:
if (lookahead == '/') ADVANCE(95);
END_STATE();
case 9:
if (lookahead == '/') ADVANCE(76);
if (lookahead == '`') ADVANCE(15);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(75);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 10:
if (lookahead == '0') ADVANCE(49);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(48);
END_STATE();
case 11:
if (lookahead == '0') ADVANCE(46);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(50);
END_STATE();
case 12:
if (lookahead == '`') ADVANCE(72);
END_STATE();
case 13:
if (lookahead == '`') ADVANCE(72);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 14:
if (lookahead == '`') ADVANCE(20);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 15:
if (lookahead == '`') ADVANCE(13);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 16:
ADVANCE_MAP(
'"', 66,
'/', 66,
'\\', 66,
'b', 66,
'f', 66,
'n', 66,
'r', 66,
't', 66,
);
END_STATE();
case 17:
ADVANCE_MAP(
'\'', 61,
'/', 61,
'\\', 61,
'b', 61,
'f', 61,
'n', 61,
'r', 61,
't', 61,
);
END_STATE();
case 18:
ADVANCE_MAP(
'/', 70,
'\\', 70,
'`', 70,
'b', 70,
'f', 70,
'n', 70,
'r', 70,
't', 70,
);
END_STATE();
case 19:
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
END_STATE();
case 20:
if (lookahead != 0 &&
lookahead != '`') ADVANCE(77);
END_STATE();
case 21:
if (eof) ADVANCE(22);
ADVANCE_MAP(
'(', 28,
',', 26,
'-', 79,
'/', 8,
'<', 4,
'=', 80,
'@', 27,
'[', 23,
']', 25,
'~', 82,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') SKIP(21);
END_STATE();
case 22:
ACCEPT_TOKEN(ts_builtin_sym_end);
END_STATE();
case 23:
ACCEPT_TOKEN(anon_sym_LBRACK);
END_STATE();
case 24:
ACCEPT_TOKEN(anon_sym_PIPE);
END_STATE();
case 25:
ACCEPT_TOKEN(anon_sym_RBRACK);
END_STATE();
case 26:
ACCEPT_TOKEN(anon_sym_COMMA);
END_STATE();
case 27:
ACCEPT_TOKEN(anon_sym_AT);
END_STATE();
case 28:
ACCEPT_TOKEN(anon_sym_LPAREN);
END_STATE();
case 29:
ACCEPT_TOKEN(anon_sym_RPAREN);
END_STATE();
case 30:
ACCEPT_TOKEN(anon_sym_COLON);
if (lookahead == ':') ADVANCE(31);
END_STATE();
case 31:
ACCEPT_TOKEN(anon_sym_COLON_COLON);
END_STATE();
case 32:
ACCEPT_TOKEN(anon_sym_LBRACE);
END_STATE();
case 33:
ACCEPT_TOKEN(anon_sym_RBRACE);
END_STATE();
case 34:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'a') ADVANCE(37);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('b' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 35:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'e') ADVANCE(44);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 36:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'e') ADVANCE(45);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 37:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'l') ADVANCE(39);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 38:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'r') ADVANCE(40);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 39:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 's') ADVANCE(36);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 40:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == 'u') ADVANCE(35);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 41:
ACCEPT_TOKEN(sym_symbol);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 42:
ACCEPT_TOKEN(anon_sym_DOT_DOT);
if (lookahead == '.') ADVANCE(43);
END_STATE();
case 43:
ACCEPT_TOKEN(anon_sym_DOT_DOT_DOT);
END_STATE();
case 44:
ACCEPT_TOKEN(anon_sym_true);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 45:
ACCEPT_TOKEN(anon_sym_false);
if (lookahead == '-' ||
lookahead == '.' ||
('0' <= lookahead && lookahead <= '9') ||
('@' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(41);
END_STATE();
case 46:
ACCEPT_TOKEN(sym_integer);
END_STATE();
case 47:
ACCEPT_TOKEN(sym_integer);
if (lookahead == '.') ADVANCE(19);
if (lookahead == 'x') ADVANCE(55);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(54);
if (('A' <= lookahead && lookahead <= 'Z') ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 48:
ACCEPT_TOKEN(sym_integer);
if (lookahead == '.') ADVANCE(19);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(48);
if (('A' <= lookahead && lookahead <= 'Z') ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 49:
ACCEPT_TOKEN(sym_integer);
if (lookahead == '.') ADVANCE(19);
if (('A' <= lookahead && lookahead <= 'Z') ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 50:
ACCEPT_TOKEN(sym_integer);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(50);
END_STATE();
case 51:
ACCEPT_TOKEN(sym_decimal);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
END_STATE();
case 52:
ACCEPT_TOKEN(sym_hexadecimal);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(53);
if (('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(52);
if (('G' <= lookahead && lookahead <= 'Z') ||
('g' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 53:
ACCEPT_TOKEN(sym_hexadecimal);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(53);
END_STATE();
case 54:
ACCEPT_TOKEN(sym_octal);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(54);
END_STATE();
case 55:
ACCEPT_TOKEN(sym_measurement);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(53);
if (('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(52);
if (('G' <= lookahead && lookahead <= 'Z') ||
('g' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 56:
ACCEPT_TOKEN(sym_measurement);
if (('A' <= lookahead && lookahead <= 'Z') ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 57:
ACCEPT_TOKEN(anon_sym_SQUOTE);
END_STATE();
case 58:
ACCEPT_TOKEN(sym__single_quoted_text);
if (lookahead == '\'') ADVANCE(95);
if (lookahead == '\\') ADVANCE(93);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(58);
END_STATE();
case 59:
ACCEPT_TOKEN(sym__single_quoted_text);
if (lookahead == '/') ADVANCE(60);
if (lookahead == '\\') ADVANCE(17);
if (lookahead == '\t' ||
(0x0b <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(59);
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead) &&
lookahead != '\'') ADVANCE(61);
END_STATE();
case 60:
ACCEPT_TOKEN(sym__single_quoted_text);
if (lookahead == '/') ADVANCE(58);
if (lookahead == '\\') ADVANCE(17);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\'') ADVANCE(61);
END_STATE();
case 61:
ACCEPT_TOKEN(sym__single_quoted_text);
if (lookahead == '\\') ADVANCE(17);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\'') ADVANCE(61);
END_STATE();
case 62:
ACCEPT_TOKEN(anon_sym_DQUOTE);
END_STATE();
case 63:
ACCEPT_TOKEN(sym__double_quoted_text);
if (lookahead == '"') ADVANCE(95);
if (lookahead == '\\') ADVANCE(92);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(63);
END_STATE();
case 64:
ACCEPT_TOKEN(sym__double_quoted_text);
if (lookahead == '/') ADVANCE(65);
if (lookahead == '\\') ADVANCE(16);
if (lookahead == '\t' ||
(0x0b <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(64);
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead) &&
lookahead != '"') ADVANCE(66);
END_STATE();
case 65:
ACCEPT_TOKEN(sym__double_quoted_text);
if (lookahead == '/') ADVANCE(63);
if (lookahead == '\\') ADVANCE(16);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '"') ADVANCE(66);
END_STATE();
case 66:
ACCEPT_TOKEN(sym__double_quoted_text);
if (lookahead == '\\') ADVANCE(16);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '"') ADVANCE(66);
END_STATE();
case 67:
ACCEPT_TOKEN(anon_sym_BQUOTE);
if (lookahead == '`') ADVANCE(12);
END_STATE();
case 68:
ACCEPT_TOKEN(sym__backticked_text);
if (lookahead == '/') ADVANCE(69);
if (lookahead == '\\') ADVANCE(18);
if (lookahead == '\t' ||
(0x0b <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(68);
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead) &&
lookahead != '`') ADVANCE(70);
END_STATE();
case 69:
ACCEPT_TOKEN(sym__backticked_text);
if (lookahead == '/') ADVANCE(71);
if (lookahead == '\\') ADVANCE(18);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '`') ADVANCE(70);
END_STATE();
case 70:
ACCEPT_TOKEN(sym__backticked_text);
if (lookahead == '\\') ADVANCE(18);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '`') ADVANCE(70);
END_STATE();
case 71:
ACCEPT_TOKEN(sym__backticked_text);
if (lookahead == '\\') ADVANCE(94);
if (lookahead == '`') ADVANCE(95);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(71);
END_STATE();
case 72:
ACCEPT_TOKEN(anon_sym_BQUOTE_BQUOTE_BQUOTE);
END_STATE();
case 73:
ACCEPT_TOKEN(anon_sym_LF);
if (lookahead == '\n') ADVANCE(73);
END_STATE();
case 74:
ACCEPT_TOKEN(sym__fenced_string_content);
if (lookahead == '\n') ADVANCE(77);
if (lookahead == '`') ADVANCE(91);
if (lookahead != 0) ADVANCE(74);
END_STATE();
case 75:
ACCEPT_TOKEN(sym__fenced_string_content);
if (lookahead == '/') ADVANCE(76);
if (lookahead == '`') ADVANCE(15);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(75);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 76:
ACCEPT_TOKEN(sym__fenced_string_content);
if (lookahead == '/') ADVANCE(74);
if (lookahead == '`') ADVANCE(14);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 77:
ACCEPT_TOKEN(sym__fenced_string_content);
if (lookahead == '`') ADVANCE(14);
if (lookahead != 0) ADVANCE(77);
END_STATE();
case 78:
ACCEPT_TOKEN(anon_sym_DASH);
if (lookahead == '0') ADVANCE(49);
if (lookahead == '>') ADVANCE(84);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(48);
END_STATE();
case 79:
ACCEPT_TOKEN(anon_sym_DASH);
if (lookahead == '>') ADVANCE(84);
END_STATE();
case 80:
ACCEPT_TOKEN(anon_sym_EQ);
END_STATE();
case 81:
ACCEPT_TOKEN(anon_sym_EQ);
if (lookahead == '>') ADVANCE(85);
END_STATE();
case 82:
ACCEPT_TOKEN(anon_sym_TILDE);
END_STATE();
case 83:
ACCEPT_TOKEN(anon_sym_TILDE);
if (lookahead == '>') ADVANCE(86);
END_STATE();
case 84:
ACCEPT_TOKEN(anon_sym_DASH_GT);
END_STATE();
case 85:
ACCEPT_TOKEN(anon_sym_EQ_GT);
END_STATE();
case 86:
ACCEPT_TOKEN(anon_sym_TILDE_GT);
END_STATE();
case 87:
ACCEPT_TOKEN(anon_sym_LT_DASH);
END_STATE();
case 88:
ACCEPT_TOKEN(anon_sym_LT_EQ);
END_STATE();
case 89:
ACCEPT_TOKEN(anon_sym_LT_TILDE);
END_STATE();
case 90:
ACCEPT_TOKEN(sym_comment);
if (lookahead == '\n') ADVANCE(77);
if (lookahead == '`') ADVANCE(95);
if (lookahead != 0) ADVANCE(74);
END_STATE();
case 91:
ACCEPT_TOKEN(sym_comment);
if (lookahead == '\n') ADVANCE(77);
if (lookahead == '`') ADVANCE(90);
if (lookahead != 0) ADVANCE(74);
END_STATE();
case 92:
ACCEPT_TOKEN(sym_comment);
ADVANCE_MAP(
'"', 63,
'/', 63,
'\\', 63,
'b', 63,
'f', 63,
'n', 63,
'r', 63,
't', 63,
);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(95);
END_STATE();
case 93:
ACCEPT_TOKEN(sym_comment);
ADVANCE_MAP(
'\'', 58,
'/', 58,
'\\', 58,
'b', 58,
'f', 58,
'n', 58,
'r', 58,
't', 58,
);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(95);
END_STATE();
case 94:
ACCEPT_TOKEN(sym_comment);
ADVANCE_MAP(
'/', 71,
'\\', 71,
'`', 71,
'b', 71,
'f', 71,
'n', 71,
'r', 71,
't', 71,
);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(95);
END_STATE();
case 95:
ACCEPT_TOKEN(sym_comment);
if (lookahead != 0 &&
lookahead != '\n') ADVANCE(95);
END_STATE();
default:
return false;
}
}
static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0},
[1] = {.lex_state = 0},
[2] = {.lex_state = 3},
[3] = {.lex_state = 3},
[4] = {.lex_state = 3},
[5] = {.lex_state = 3},
[6] = {.lex_state = 3},
[7] = {.lex_state = 2},
[8] = {.lex_state = 2},
[9] = {.lex_state = 2},
[10] = {.lex_state = 2},
[11] = {.lex_state = 2},
[12] = {.lex_state = 2},
[13] = {.lex_state = 2},
[14] = {.lex_state = 2},
[15] = {.lex_state = 2},
[16] = {.lex_state = 2},
[17] = {.lex_state = 2},
[18] = {.lex_state = 21},
[19] = {.lex_state = 21},
[20] = {.lex_state = 2},
[21] = {.lex_state = 2},
[22] = {.lex_state = 0},
[23] = {.lex_state = 0},
[24] = {.lex_state = 0},
[25] = {.lex_state = 0},
[26] = {.lex_state = 2},
[27] = {.lex_state = 2},
[28] = {.lex_state = 21},
[29] = {.lex_state = 21},
[30] = {.lex_state = 0},
[31] = {.lex_state = 0},
[32] = {.lex_state = 0},
[33] = {.lex_state = 0},
[34] = {.lex_state = 0},
[35] = {.lex_state = 0},
[36] = {.lex_state = 0},
[37] = {.lex_state = 0},
[38] = {.lex_state = 0},
[39] = {.lex_state = 0},
[40] = {.lex_state = 0},
[41] = {.lex_state = 0},
[42] = {.lex_state = 0},
[43] = {.lex_state = 0},
[44] = {.lex_state = 0},
[45] = {.lex_state = 0},
[46] = {.lex_state = 3},
[47] = {.lex_state = 0},
[48] = {.lex_state = 0},
[49] = {.lex_state = 0},
[50] = {.lex_state = 0},
[51] = {.lex_state = 0},
[52] = {.lex_state = 0},
[53] = {.lex_state = 3},
[54] = {.lex_state = 0},
[55] = {.lex_state = 0},
[56] = {.lex_state = 0},
[57] = {.lex_state = 0},
[58] = {.lex_state = 0},
[59] = {.lex_state = 0},
[60] = {.lex_state = 0},
[61] = {.lex_state = 0},
[62] = {.lex_state = 0},
[63] = {.lex_state = 0},
[64] = {.lex_state = 0},
[65] = {.lex_state = 0},
[66] = {.lex_state = 0},
[67] = {.lex_state = 0},
[68] = {.lex_state = 0},
[69] = {.lex_state = 0},
[70] = {.lex_state = 0},
[71] = {.lex_state = 0},
[72] = {.lex_state = 0},
[73] = {.lex_state = 0},
[74] = {.lex_state = 0},
[75] = {.lex_state = 0},
[76] = {.lex_state = 0},
[77] = {.lex_state = 21},
[78] = {.lex_state = 0},
[79] = {.lex_state = 0},
[80] = {.lex_state = 0},
[81] = {.lex_state = 0},
[82] = {.lex_state = 0},
[83] = {.lex_state = 0},
[84] = {.lex_state = 0},
[85] = {.lex_state = 0},
[86] = {.lex_state = 0},
[87] = {.lex_state = 0},
[88] = {.lex_state = 0},
[89] = {.lex_state = 0},
[90] = {.lex_state = 0},
[91] = {.lex_state = 0},
[92] = {.lex_state = 0},
[93] = {.lex_state = 0},
[94] = {.lex_state = 0},
[95] = {.lex_state = 0},
[96] = {.lex_state = 0},
[97] = {.lex_state = 0},
[98] = {.lex_state = 1},
[99] = {.lex_state = 0},
[100] = {.lex_state = 21},
[101] = {.lex_state = 1},
[102] = {.lex_state = 21},
[103] = {.lex_state = 0},
[104] = {.lex_state = 21},
[105] = {.lex_state = 0},
[106] = {.lex_state = 0},
[107] = {.lex_state = 0},
[108] = {.lex_state = 9},
[109] = {.lex_state = 0},
[110] = {.lex_state = 0},
[111] = {.lex_state = 0},
[112] = {.lex_state = 21},
[113] = {.lex_state = 0},
[114] = {.lex_state = 0},
[115] = {.lex_state = 21},
[116] = {.lex_state = 0},
[117] = {.lex_state = 0},
[118] = {.lex_state = 9},
[119] = {.lex_state = 0},
[120] = {.lex_state = 0},
[121] = {.lex_state = 0},
[122] = {.lex_state = 0},
[123] = {.lex_state = 0},
[124] = {.lex_state = 0},
[125] = {.lex_state = 0},
[126] = {.lex_state = 0},
[127] = {.lex_state = 0},
[128] = {.lex_state = 0},
[129] = {.lex_state = 0},
[130] = {.lex_state = 0},
[131] = {.lex_state = 0},
[132] = {.lex_state = 0},
[133] = {.lex_state = 0},
[134] = {.lex_state = 0},
[135] = {.lex_state = 0},
[136] = {.lex_state = 0},
[137] = {.lex_state = 0},
[138] = {.lex_state = 0},
[139] = {.lex_state = 0},
[140] = {.lex_state = 2},
[141] = {.lex_state = 68},
[142] = {.lex_state = 0},
[143] = {.lex_state = 59},
[144] = {.lex_state = 0},
[145] = {.lex_state = 0},
[146] = {.lex_state = 0},
[147] = {.lex_state = 0},
[148] = {.lex_state = 0},
[149] = {.lex_state = 0},
[150] = {.lex_state = 0},
[151] = {.lex_state = 0},
[152] = {.lex_state = 0},
[153] = {.lex_state = 0},
[154] = {.lex_state = 0},
[155] = {.lex_state = 0},
[156] = {.lex_state = 0},
[157] = {.lex_state = 0},
[158] = {.lex_state = 0},
[159] = {.lex_state = 0},
[160] = {.lex_state = 0},
[161] = {.lex_state = 64},
[162] = {.lex_state = 68},
[163] = {.lex_state = 0},
[164] = {.lex_state = 1},
[165] = {.lex_state = 0},
[166] = {.lex_state = 0},
[167] = {.lex_state = 0},
[168] = {.lex_state = 0},
[169] = {.lex_state = 0},
[170] = {.lex_state = 2},
};
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[STATE(0)] = {
[ts_builtin_sym_end] = ACTIONS(1),
[anon_sym_LBRACK] = ACTIONS(1),
[anon_sym_PIPE] = ACTIONS(1),
[anon_sym_RBRACK] = ACTIONS(1),
[anon_sym_COMMA] = ACTIONS(1),
[anon_sym_AT] = ACTIONS(1),
[anon_sym_LPAREN] = ACTIONS(1),
[anon_sym_RPAREN] = ACTIONS(1),
[anon_sym_COLON] = ACTIONS(1),
[anon_sym_COLON_COLON] = ACTIONS(1),
[anon_sym_LBRACE] = ACTIONS(1),
[anon_sym_RBRACE] = ACTIONS(1),
[sym_symbol] = ACTIONS(1),
[anon_sym_DOT_DOT] = ACTIONS(1),
[anon_sym_DOT_DOT_DOT] = ACTIONS(1),
[anon_sym_true] = ACTIONS(1),
[anon_sym_false] = ACTIONS(1),
[sym_integer] = ACTIONS(1),
[sym_decimal] = ACTIONS(1),
[sym_hexadecimal] = ACTIONS(1),
[sym_octal] = ACTIONS(1),
[sym_measurement] = ACTIONS(1),
[anon_sym_SQUOTE] = ACTIONS(1),
[anon_sym_DQUOTE] = ACTIONS(1),
[anon_sym_BQUOTE] = ACTIONS(1),
[anon_sym_BQUOTE_BQUOTE_BQUOTE] = ACTIONS(1),
[anon_sym_DASH] = ACTIONS(1),
[anon_sym_EQ] = ACTIONS(1),
[anon_sym_TILDE] = ACTIONS(1),
[anon_sym_DASH_GT] = ACTIONS(1),
[anon_sym_EQ_GT] = ACTIONS(1),
[anon_sym_TILDE_GT] = ACTIONS(1),
[anon_sym_LT_DASH] = ACTIONS(1),
[anon_sym_LT_EQ] = ACTIONS(1),
[anon_sym_LT_TILDE] = ACTIONS(1),
[sym_comment] = ACTIONS(3),
},
[STATE(1)] = {
[sym_gram_pattern] = STATE(135),
[sym__top_level_pattern] = STATE(22),
[sym_annotated_pattern] = STATE(22),
[sym_subject_pattern] = STATE(22),
[sym_annotations] = STATE(47),
[sym_annotation] = STATE(56),
[sym_node_pattern] = STATE(19),
[sym_relationship_pattern] = STATE(22),
[sym_record] = STATE(23),
[aux_sym_gram_pattern_repeat1] = STATE(22),
[aux_sym_annotations_repeat1] = STATE(56),
[ts_builtin_sym_end] = ACTIONS(5),
[anon_sym_LBRACK] = ACTIONS(7),
[anon_sym_AT] = ACTIONS(9),
[anon_sym_LPAREN] = ACTIONS(11),
[anon_sym_LBRACE] = ACTIONS(13),
[sym_comment] = ACTIONS(3),
},
};
static const uint16_t ts_small_parse_table[] = {
[0] = 18,
ACTIONS(3), 1,
sym_comment,
ACTIONS(15), 1,
anon_sym_LBRACK,
ACTIONS(17), 1,
anon_sym_LBRACE,
ACTIONS(19), 1,
sym_symbol,
ACTIONS(21), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(35), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(60), 1,
sym__numeric_literal,
ACTIONS(23), 2,
anon_sym_true,
anon_sym_false,
ACTIONS(27), 2,
sym_decimal,
sym_octal,
ACTIONS(25), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
STATE(146), 7,
sym__value,
sym_array,
sym_map,
sym_range,
sym_boolean_literal,
sym_string_literal,
sym_tagged_string,
[65] = 18,
ACTIONS(3), 1,
sym_comment,
ACTIONS(15), 1,
anon_sym_LBRACK,
ACTIONS(17), 1,
anon_sym_LBRACE,
ACTIONS(19), 1,
sym_symbol,
ACTIONS(21), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(35), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(60), 1,
sym__numeric_literal,
ACTIONS(23), 2,
anon_sym_true,
anon_sym_false,
ACTIONS(27), 2,
sym_decimal,
sym_octal,
ACTIONS(25), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
STATE(120), 7,
sym__value,
sym_array,
sym_map,
sym_range,
sym_boolean_literal,
sym_string_literal,
sym_tagged_string,
[130] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(21), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(35), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(37), 1,
sym_symbol,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(58), 1,
sym__numeric_literal,
ACTIONS(23), 2,
anon_sym_true,
anon_sym_false,
ACTIONS(41), 2,
sym_decimal,
sym_octal,
ACTIONS(39), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
STATE(79), 5,
sym__scalar_value,
sym_range,
sym_boolean_literal,
sym_string_literal,
sym_tagged_string,
[187] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(21), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(35), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(37), 1,
sym_symbol,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(58), 1,
sym__numeric_literal,
ACTIONS(23), 2,
anon_sym_true,
anon_sym_false,
ACTIONS(41), 2,
sym_decimal,
sym_octal,
ACTIONS(39), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
STATE(119), 5,
sym__scalar_value,
sym_range,
sym_boolean_literal,
sym_string_literal,
sym_tagged_string,
[244] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(21), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(35), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(37), 1,
sym_symbol,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(58), 1,
sym__numeric_literal,
ACTIONS(23), 2,
anon_sym_true,
anon_sym_false,
ACTIONS(41), 2,
sym_decimal,
sym_octal,
ACTIONS(39), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
STATE(121), 5,
sym__scalar_value,
sym_range,
sym_boolean_literal,
sym_string_literal,
sym_tagged_string,
[301] = 20,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(43), 1,
anon_sym_PIPE,
ACTIONS(45), 1,
anon_sym_RBRACK,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(111), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[365] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(55), 1,
anon_sym_RPAREN,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(166), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[426] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(18), 1,
sym_node_pattern,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(163), 1,
sym_subject_pattern_elements,
ACTIONS(57), 2,
sym_symbol,
sym_integer,
STATE(110), 2,
sym__identifier,
sym_string_literal,
STATE(76), 5,
sym_subject_pattern,
sym__subject_pattern_element,
sym__path_pattern,
sym_relationship_pattern,
sym_pattern_reference,
[481] = 16,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(18), 1,
sym_node_pattern,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(126), 1,
sym_subject_pattern_elements,
ACTIONS(57), 2,
sym_symbol,
sym_integer,
STATE(110), 2,
sym__identifier,
sym_string_literal,
STATE(76), 5,
sym_subject_pattern,
sym__subject_pattern_element,
sym__path_pattern,
sym_relationship_pattern,
sym_pattern_reference,
[536] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(59), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(145), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[597] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(61), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(134), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[658] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(63), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(131), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[719] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(65), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(136), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[780] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(67), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(144), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[841] = 19,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(69), 1,
anon_sym_RBRACK,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(57), 1,
sym_labels,
STATE(99), 1,
sym_record,
STATE(169), 1,
sym__subject,
ACTIONS(51), 2,
sym_symbol,
sym_integer,
STATE(30), 2,
sym__identifier,
sym_string_literal,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
[902] = 15,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(18), 1,
sym_node_pattern,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
ACTIONS(57), 2,
sym_symbol,
sym_integer,
STATE(110), 2,
sym__identifier,
sym_string_literal,
STATE(107), 5,
sym_subject_pattern,
sym__subject_pattern_element,
sym__path_pattern,
sym_relationship_pattern,
sym_pattern_reference,
[954] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(73), 1,
anon_sym_DASH,
ACTIONS(75), 1,
anon_sym_EQ,
ACTIONS(77), 1,
anon_sym_TILDE,
ACTIONS(79), 1,
anon_sym_LT_DASH,
ACTIONS(81), 1,
anon_sym_LT_EQ,
ACTIONS(83), 1,
anon_sym_LT_TILDE,
STATE(68), 5,
sym__relationship_kind,
sym_undirected_arrow,
sym_right_arrow,
sym_left_arrow,
sym_bidirectional_arrow,
ACTIONS(71), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[991] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(73), 1,
anon_sym_DASH,
ACTIONS(75), 1,
anon_sym_EQ,
ACTIONS(77), 1,
anon_sym_TILDE,
ACTIONS(79), 1,
anon_sym_LT_DASH,
ACTIONS(81), 1,
anon_sym_LT_EQ,
ACTIONS(83), 1,
anon_sym_LT_TILDE,
ACTIONS(85), 4,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_AT,
anon_sym_LPAREN,
STATE(68), 5,
sym__relationship_kind,
sym_undirected_arrow,
sym_right_arrow,
sym_left_arrow,
sym_bidirectional_arrow,
[1026] = 13,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(87), 1,
anon_sym_RBRACE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(93), 1,
sym_record_property,
ACTIONS(89), 2,
sym_symbol,
sym_integer,
STATE(109), 2,
sym__identifier,
sym_string_literal,
[1068] = 13,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(91), 1,
anon_sym_RBRACE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(82), 1,
sym_map_entry,
ACTIONS(93), 2,
sym_symbol,
sym_integer,
STATE(159), 2,
sym__identifier,
sym_string_literal,
[1110] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(9), 1,
anon_sym_AT,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(95), 1,
ts_builtin_sym_end,
STATE(19), 1,
sym_node_pattern,
STATE(47), 1,
sym_annotations,
STATE(56), 2,
sym_annotation,
aux_sym_annotations_repeat1,
STATE(24), 5,
sym__top_level_pattern,
sym_annotated_pattern,
sym_subject_pattern,
sym_relationship_pattern,
aux_sym_gram_pattern_repeat1,
[1143] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(9), 1,
anon_sym_AT,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(97), 1,
ts_builtin_sym_end,
STATE(19), 1,
sym_node_pattern,
STATE(47), 1,
sym_annotations,
STATE(56), 2,
sym_annotation,
aux_sym_annotations_repeat1,
STATE(25), 5,
sym__top_level_pattern,
sym_annotated_pattern,
sym_subject_pattern,
sym_relationship_pattern,
aux_sym_gram_pattern_repeat1,
[1176] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(99), 1,
ts_builtin_sym_end,
ACTIONS(101), 1,
anon_sym_LBRACK,
ACTIONS(104), 1,
anon_sym_AT,
ACTIONS(107), 1,
anon_sym_LPAREN,
STATE(19), 1,
sym_node_pattern,
STATE(47), 1,
sym_annotations,
STATE(56), 2,
sym_annotation,
aux_sym_annotations_repeat1,
STATE(24), 5,
sym__top_level_pattern,
sym_annotated_pattern,
sym_subject_pattern,
sym_relationship_pattern,
aux_sym_gram_pattern_repeat1,
[1209] = 9,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(9), 1,
anon_sym_AT,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(110), 1,
ts_builtin_sym_end,
STATE(19), 1,
sym_node_pattern,
STATE(47), 1,
sym_annotations,
STATE(56), 2,
sym_annotation,
aux_sym_annotations_repeat1,
STATE(24), 5,
sym__top_level_pattern,
sym_annotated_pattern,
sym_subject_pattern,
sym_relationship_pattern,
aux_sym_gram_pattern_repeat1,
[1242] = 12,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(123), 1,
sym_record_property,
ACTIONS(89), 2,
sym_symbol,
sym_integer,
STATE(109), 2,
sym__identifier,
sym_string_literal,
[1281] = 12,
ACTIONS(3), 1,
sym_comment,
ACTIONS(29), 1,
anon_sym_SQUOTE,
ACTIONS(31), 1,
anon_sym_DQUOTE,
ACTIONS(33), 1,
anon_sym_BQUOTE,
ACTIONS(53), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
STATE(38), 1,
sym__single_quoted_string,
STATE(40), 1,
sym__double_quoted_string,
STATE(41), 1,
sym__backticked_string,
STATE(42), 1,
sym__fenced_string,
STATE(122), 1,
sym_map_entry,
ACTIONS(93), 2,
sym_symbol,
sym_integer,
STATE(159), 2,
sym__identifier,
sym_string_literal,
[1320] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(112), 12,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
anon_sym_DASH,
anon_sym_EQ,
anon_sym_TILDE,
anon_sym_LT_DASH,
anon_sym_LT_EQ,
anon_sym_LT_TILDE,
[1338] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(114), 12,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
anon_sym_DASH,
anon_sym_EQ,
anon_sym_TILDE,
anon_sym_LT_DASH,
anon_sym_LT_EQ,
anon_sym_LT_TILDE,
[1356] = 8,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
STATE(59), 1,
sym_labels,
STATE(86), 1,
sym_record,
STATE(36), 2,
sym__label,
aux_sym_labels_repeat1,
ACTIONS(116), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[1384] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(120), 1,
anon_sym_COLON,
ACTIONS(118), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1400] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(124), 1,
anon_sym_COLON,
ACTIONS(122), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1416] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(128), 1,
anon_sym_COLON,
ACTIONS(126), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1432] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(132), 1,
anon_sym_COLON,
ACTIONS(130), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1448] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(136), 1,
anon_sym_COLON,
ACTIONS(134), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1464] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(47), 1,
anon_sym_COLON,
ACTIONS(49), 1,
anon_sym_COLON_COLON,
STATE(37), 2,
sym__label,
aux_sym_labels_repeat1,
ACTIONS(138), 4,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
anon_sym_LBRACE,
[1484] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(142), 1,
anon_sym_COLON,
ACTIONS(145), 1,
anon_sym_COLON_COLON,
STATE(37), 2,
sym__label,
aux_sym_labels_repeat1,
ACTIONS(140), 4,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
anon_sym_LBRACE,
[1504] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(150), 1,
anon_sym_COLON,
ACTIONS(148), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1520] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(154), 1,
anon_sym_COLON,
ACTIONS(152), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1536] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(150), 1,
anon_sym_COLON,
ACTIONS(148), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1552] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(150), 1,
anon_sym_COLON,
ACTIONS(148), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1568] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(150), 1,
anon_sym_COLON,
ACTIONS(148), 7,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
anon_sym_RBRACE,
[1584] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(156), 7,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_AT,
anon_sym_LPAREN,
anon_sym_RPAREN,
[1597] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(158), 7,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_AT,
anon_sym_LPAREN,
anon_sym_RPAREN,
[1610] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(160), 7,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_AT,
anon_sym_LPAREN,
anon_sym_RPAREN,
[1623] = 4,
ACTIONS(3), 1,
sym_comment,
STATE(69), 1,
sym__numeric_literal,
ACTIONS(164), 2,
sym_decimal,
sym_octal,
ACTIONS(162), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
[1639] = 5,
ACTIONS(3), 1,
sym_comment,
ACTIONS(7), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
STATE(18), 1,
sym_node_pattern,
STATE(65), 3,
sym_subject_pattern,
sym__path_pattern,
sym_relationship_pattern,
[1657] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(168), 1,
anon_sym_COLON,
ACTIONS(166), 5,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
anon_sym_COLON_COLON,
anon_sym_LBRACE,
[1671] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(170), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[1683] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(172), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[1695] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(174), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[1707] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(176), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[1719] = 4,
ACTIONS(3), 1,
sym_comment,
STATE(66), 1,
sym__numeric_literal,
ACTIONS(180), 2,
sym_decimal,
sym_octal,
ACTIONS(178), 3,
sym_integer,
sym_hexadecimal,
sym_measurement,
[1735] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(182), 6,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_AT,
anon_sym_LPAREN,
[1747] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(186), 1,
anon_sym_AT,
ACTIONS(184), 2,
anon_sym_LBRACK,
anon_sym_LPAREN,
STATE(55), 2,
sym_annotation,
aux_sym_annotations_repeat1,
[1762] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(9), 1,
anon_sym_AT,
ACTIONS(189), 2,
anon_sym_LBRACK,
anon_sym_LPAREN,
STATE(55), 2,
sym_annotation,
aux_sym_annotations_repeat1,
[1777] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
STATE(73), 1,
sym_record,
ACTIONS(191), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[1792] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(195), 1,
anon_sym_DOT_DOT,
ACTIONS(197), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(193), 3,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RBRACE,
[1807] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(13), 1,
anon_sym_LBRACE,
STATE(78), 1,
sym_record,
ACTIONS(199), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[1822] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(195), 1,
anon_sym_DOT_DOT,
ACTIONS(197), 1,
anon_sym_DOT_DOT_DOT,
ACTIONS(201), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1837] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(203), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1847] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(205), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1857] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(207), 1,
anon_sym_BQUOTE,
ACTIONS(201), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1869] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(207), 1,
anon_sym_BQUOTE,
ACTIONS(193), 3,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RBRACE,
[1881] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(209), 4,
ts_builtin_sym_end,
anon_sym_LBRACK,
anon_sym_AT,
anon_sym_LPAREN,
[1891] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(211), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1901] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(213), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1911] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(11), 1,
anon_sym_LPAREN,
STATE(18), 1,
sym_node_pattern,
STATE(51), 2,
sym__path_pattern,
sym_relationship_pattern,
[1925] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(215), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1935] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(217), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1945] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(219), 4,
anon_sym_RBRACK,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[1955] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(221), 1,
anon_sym_LBRACK,
ACTIONS(223), 1,
anon_sym_EQ,
ACTIONS(225), 1,
anon_sym_EQ_GT,
[1968] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(227), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[1977] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(229), 1,
anon_sym_COMMA,
ACTIONS(232), 1,
anon_sym_RBRACE,
STATE(74), 1,
aux_sym_record_repeat1,
[1990] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(234), 1,
anon_sym_RBRACK,
ACTIONS(236), 1,
anon_sym_COMMA,
STATE(75), 1,
aux_sym_subject_pattern_elements_repeat1,
[2003] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(239), 1,
anon_sym_RBRACK,
ACTIONS(241), 1,
anon_sym_COMMA,
STATE(90), 1,
aux_sym_subject_pattern_elements_repeat1,
[2016] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(243), 1,
anon_sym_LBRACK,
ACTIONS(245), 1,
anon_sym_DASH,
ACTIONS(247), 1,
anon_sym_DASH_GT,
[2029] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(249), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[2038] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(251), 1,
anon_sym_RBRACK,
ACTIONS(253), 1,
anon_sym_COMMA,
STATE(89), 1,
aux_sym_array_repeat1,
[2051] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(245), 1,
anon_sym_EQ,
ACTIONS(247), 1,
anon_sym_EQ_GT,
ACTIONS(255), 1,
anon_sym_LBRACK,
[2064] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(257), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[2073] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(259), 1,
anon_sym_COMMA,
ACTIONS(261), 1,
anon_sym_RBRACE,
STATE(92), 1,
aux_sym_map_repeat1,
[2086] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(245), 1,
anon_sym_TILDE,
ACTIONS(247), 1,
anon_sym_TILDE_GT,
ACTIONS(263), 1,
anon_sym_LBRACK,
[2099] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(265), 3,
anon_sym_LBRACK,
anon_sym_AT,
anon_sym_LPAREN,
[2108] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(267), 1,
anon_sym_COMMA,
ACTIONS(269), 1,
anon_sym_RBRACE,
STATE(74), 1,
aux_sym_record_repeat1,
[2121] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(271), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[2130] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(273), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[2139] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(223), 1,
anon_sym_TILDE,
ACTIONS(225), 1,
anon_sym_TILDE_GT,
ACTIONS(275), 1,
anon_sym_LBRACK,
[2152] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(253), 1,
anon_sym_COMMA,
ACTIONS(277), 1,
anon_sym_RBRACK,
STATE(95), 1,
aux_sym_array_repeat1,
[2165] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(241), 1,
anon_sym_COMMA,
ACTIONS(279), 1,
anon_sym_RBRACK,
STATE(75), 1,
aux_sym_subject_pattern_elements_repeat1,
[2178] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(281), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[2187] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(259), 1,
anon_sym_COMMA,
ACTIONS(283), 1,
anon_sym_RBRACE,
STATE(97), 1,
aux_sym_map_repeat1,
[2200] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(267), 1,
anon_sym_COMMA,
ACTIONS(285), 1,
anon_sym_RBRACE,
STATE(85), 1,
aux_sym_record_repeat1,
[2213] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(287), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[2222] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(289), 1,
anon_sym_RBRACK,
ACTIONS(291), 1,
anon_sym_COMMA,
STATE(95), 1,
aux_sym_array_repeat1,
[2235] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(294), 3,
anon_sym_COMMA,
anon_sym_RPAREN,
anon_sym_RBRACE,
[2244] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(296), 1,
anon_sym_COMMA,
ACTIONS(299), 1,
anon_sym_RBRACE,
STATE(97), 1,
aux_sym_map_repeat1,
[2257] = 4,
ACTIONS(301), 1,
sym_symbol,
ACTIONS(303), 1,
anon_sym_LF,
ACTIONS(305), 1,
sym_comment,
STATE(35), 1,
sym__fenced_string_body,
[2270] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(307), 3,
anon_sym_PIPE,
anon_sym_RBRACK,
anon_sym_RPAREN,
[2279] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(223), 1,
anon_sym_DASH,
ACTIONS(225), 1,
anon_sym_DASH_GT,
ACTIONS(309), 1,
anon_sym_LBRACK,
[2292] = 3,
ACTIONS(303), 1,
anon_sym_LF,
ACTIONS(305), 1,
sym_comment,
STATE(35), 1,
sym__fenced_string_body,
[2302] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(311), 1,
anon_sym_DASH,
ACTIONS(313), 1,
anon_sym_DASH_GT,
[2312] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(311), 1,
anon_sym_TILDE,
ACTIONS(313), 1,
anon_sym_TILDE_GT,
[2322] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(315), 1,
anon_sym_DASH,
ACTIONS(317), 1,
anon_sym_DASH_GT,
[2332] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(315), 1,
anon_sym_EQ,
ACTIONS(317), 1,
anon_sym_EQ_GT,
[2342] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(315), 1,
anon_sym_TILDE,
ACTIONS(317), 1,
anon_sym_TILDE_GT,
[2352] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(234), 2,
anon_sym_RBRACK,
anon_sym_COMMA,
[2360] = 3,
ACTIONS(305), 1,
sym_comment,
ACTIONS(319), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(321), 1,
sym__fenced_string_content,
[2370] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(323), 1,
anon_sym_COLON,
ACTIONS(325), 1,
anon_sym_COLON_COLON,
[2380] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(327), 2,
anon_sym_RBRACK,
anon_sym_COMMA,
[2388] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(329), 1,
anon_sym_PIPE,
ACTIONS(331), 1,
anon_sym_RBRACK,
[2398] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(333), 1,
anon_sym_DASH,
ACTIONS(335), 1,
anon_sym_DASH_GT,
[2408] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(337), 1,
anon_sym_EQ,
ACTIONS(339), 1,
anon_sym_EQ_GT,
[2418] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(341), 1,
anon_sym_TILDE,
ACTIONS(343), 1,
anon_sym_TILDE_GT,
[2428] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(345), 1,
anon_sym_DASH,
ACTIONS(347), 1,
anon_sym_DASH_GT,
[2438] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(349), 1,
anon_sym_EQ,
ACTIONS(351), 1,
anon_sym_EQ_GT,
[2448] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(353), 1,
anon_sym_TILDE,
ACTIONS(355), 1,
anon_sym_TILDE_GT,
[2458] = 3,
ACTIONS(305), 1,
sym_comment,
ACTIONS(357), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
ACTIONS(359), 1,
sym__fenced_string_content,
[2468] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(289), 2,
anon_sym_RBRACK,
anon_sym_COMMA,
[2476] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(361), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[2484] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(363), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[2492] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(299), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[2500] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(232), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[2508] = 3,
ACTIONS(3), 1,
sym_comment,
ACTIONS(311), 1,
anon_sym_EQ,
ACTIONS(313), 1,
anon_sym_EQ_GT,
[2518] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(365), 1,
anon_sym_BQUOTE,
[2525] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(367), 1,
anon_sym_RBRACK,
[2532] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(369), 1,
anon_sym_LPAREN,
[2539] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(371), 1,
anon_sym_LPAREN,
[2546] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(373), 1,
anon_sym_DQUOTE,
[2553] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(375), 1,
anon_sym_BQUOTE,
[2560] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(377), 1,
anon_sym_RBRACK,
[2567] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(379), 1,
anon_sym_LPAREN,
[2574] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(381), 1,
anon_sym_LPAREN,
[2581] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(383), 1,
anon_sym_RBRACK,
[2588] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(385), 1,
ts_builtin_sym_end,
[2595] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(387), 1,
anon_sym_RBRACK,
[2602] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(389), 1,
anon_sym_SQUOTE,
[2609] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(391), 1,
anon_sym_LPAREN,
[2616] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(393), 1,
anon_sym_LPAREN,
[2623] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(395), 1,
sym_symbol,
[2630] = 2,
ACTIONS(305), 1,
sym_comment,
ACTIONS(397), 1,
sym__backticked_text,
[2637] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(399), 1,
anon_sym_LPAREN,
[2644] = 2,
ACTIONS(305), 1,
sym_comment,
ACTIONS(401), 1,
sym__single_quoted_text,
[2651] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(403), 1,
anon_sym_RBRACK,
[2658] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(405), 1,
anon_sym_RBRACK,
[2665] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(407), 1,
anon_sym_RPAREN,
[2672] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(409), 1,
anon_sym_LPAREN,
[2679] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(411), 1,
anon_sym_LPAREN,
[2686] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(409), 1,
anon_sym_LPAREN,
[2693] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(411), 1,
anon_sym_LPAREN,
[2700] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(409), 1,
anon_sym_LPAREN,
[2707] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(411), 1,
anon_sym_LPAREN,
[2714] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(413), 1,
anon_sym_LPAREN,
[2721] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(415), 1,
anon_sym_LPAREN,
[2728] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(413), 1,
anon_sym_LPAREN,
[2735] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(415), 1,
anon_sym_LPAREN,
[2742] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(413), 1,
anon_sym_LPAREN,
[2749] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(415), 1,
anon_sym_LPAREN,
[2756] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(417), 1,
anon_sym_COLON,
[2763] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(419), 1,
anon_sym_LPAREN,
[2770] = 2,
ACTIONS(305), 1,
sym_comment,
ACTIONS(421), 1,
sym__double_quoted_text,
[2777] = 2,
ACTIONS(305), 1,
sym_comment,
ACTIONS(423), 1,
sym__backticked_text,
[2784] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(425), 1,
anon_sym_RBRACK,
[2791] = 2,
ACTIONS(305), 1,
sym_comment,
ACTIONS(427), 1,
anon_sym_LF,
[2798] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(429), 1,
anon_sym_LPAREN,
[2805] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(431), 1,
anon_sym_RPAREN,
[2812] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(433), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
[2819] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(435), 1,
anon_sym_BQUOTE_BQUOTE_BQUOTE,
[2826] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(437), 1,
anon_sym_RBRACK,
[2833] = 2,
ACTIONS(3), 1,
sym_comment,
ACTIONS(439), 1,
sym_symbol,
};
static const uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(2)] = 0,
[SMALL_STATE(3)] = 65,
[SMALL_STATE(4)] = 130,
[SMALL_STATE(5)] = 187,
[SMALL_STATE(6)] = 244,
[SMALL_STATE(7)] = 301,
[SMALL_STATE(8)] = 365,
[SMALL_STATE(9)] = 426,
[SMALL_STATE(10)] = 481,
[SMALL_STATE(11)] = 536,
[SMALL_STATE(12)] = 597,
[SMALL_STATE(13)] = 658,
[SMALL_STATE(14)] = 719,
[SMALL_STATE(15)] = 780,
[SMALL_STATE(16)] = 841,
[SMALL_STATE(17)] = 902,
[SMALL_STATE(18)] = 954,
[SMALL_STATE(19)] = 991,
[SMALL_STATE(20)] = 1026,
[SMALL_STATE(21)] = 1068,
[SMALL_STATE(22)] = 1110,
[SMALL_STATE(23)] = 1143,
[SMALL_STATE(24)] = 1176,
[SMALL_STATE(25)] = 1209,
[SMALL_STATE(26)] = 1242,
[SMALL_STATE(27)] = 1281,
[SMALL_STATE(28)] = 1320,
[SMALL_STATE(29)] = 1338,
[SMALL_STATE(30)] = 1356,
[SMALL_STATE(31)] = 1384,
[SMALL_STATE(32)] = 1400,
[SMALL_STATE(33)] = 1416,
[SMALL_STATE(34)] = 1432,
[SMALL_STATE(35)] = 1448,
[SMALL_STATE(36)] = 1464,
[SMALL_STATE(37)] = 1484,
[SMALL_STATE(38)] = 1504,
[SMALL_STATE(39)] = 1520,
[SMALL_STATE(40)] = 1536,
[SMALL_STATE(41)] = 1552,
[SMALL_STATE(42)] = 1568,
[SMALL_STATE(43)] = 1584,
[SMALL_STATE(44)] = 1597,
[SMALL_STATE(45)] = 1610,
[SMALL_STATE(46)] = 1623,
[SMALL_STATE(47)] = 1639,
[SMALL_STATE(48)] = 1657,
[SMALL_STATE(49)] = 1671,
[SMALL_STATE(50)] = 1683,
[SMALL_STATE(51)] = 1695,
[SMALL_STATE(52)] = 1707,
[SMALL_STATE(53)] = 1719,
[SMALL_STATE(54)] = 1735,
[SMALL_STATE(55)] = 1747,
[SMALL_STATE(56)] = 1762,
[SMALL_STATE(57)] = 1777,
[SMALL_STATE(58)] = 1792,
[SMALL_STATE(59)] = 1807,
[SMALL_STATE(60)] = 1822,
[SMALL_STATE(61)] = 1837,
[SMALL_STATE(62)] = 1847,
[SMALL_STATE(63)] = 1857,
[SMALL_STATE(64)] = 1869,
[SMALL_STATE(65)] = 1881,
[SMALL_STATE(66)] = 1891,
[SMALL_STATE(67)] = 1901,
[SMALL_STATE(68)] = 1911,
[SMALL_STATE(69)] = 1925,
[SMALL_STATE(70)] = 1935,
[SMALL_STATE(71)] = 1945,
[SMALL_STATE(72)] = 1955,
[SMALL_STATE(73)] = 1968,
[SMALL_STATE(74)] = 1977,
[SMALL_STATE(75)] = 1990,
[SMALL_STATE(76)] = 2003,
[SMALL_STATE(77)] = 2016,
[SMALL_STATE(78)] = 2029,
[SMALL_STATE(79)] = 2038,
[SMALL_STATE(80)] = 2051,
[SMALL_STATE(81)] = 2064,
[SMALL_STATE(82)] = 2073,
[SMALL_STATE(83)] = 2086,
[SMALL_STATE(84)] = 2099,
[SMALL_STATE(85)] = 2108,
[SMALL_STATE(86)] = 2121,
[SMALL_STATE(87)] = 2130,
[SMALL_STATE(88)] = 2139,
[SMALL_STATE(89)] = 2152,
[SMALL_STATE(90)] = 2165,
[SMALL_STATE(91)] = 2178,
[SMALL_STATE(92)] = 2187,
[SMALL_STATE(93)] = 2200,
[SMALL_STATE(94)] = 2213,
[SMALL_STATE(95)] = 2222,
[SMALL_STATE(96)] = 2235,
[SMALL_STATE(97)] = 2244,
[SMALL_STATE(98)] = 2257,
[SMALL_STATE(99)] = 2270,
[SMALL_STATE(100)] = 2279,
[SMALL_STATE(101)] = 2292,
[SMALL_STATE(102)] = 2302,
[SMALL_STATE(103)] = 2312,
[SMALL_STATE(104)] = 2322,
[SMALL_STATE(105)] = 2332,
[SMALL_STATE(106)] = 2342,
[SMALL_STATE(107)] = 2352,
[SMALL_STATE(108)] = 2360,
[SMALL_STATE(109)] = 2370,
[SMALL_STATE(110)] = 2380,
[SMALL_STATE(111)] = 2388,
[SMALL_STATE(112)] = 2398,
[SMALL_STATE(113)] = 2408,
[SMALL_STATE(114)] = 2418,
[SMALL_STATE(115)] = 2428,
[SMALL_STATE(116)] = 2438,
[SMALL_STATE(117)] = 2448,
[SMALL_STATE(118)] = 2458,
[SMALL_STATE(119)] = 2468,
[SMALL_STATE(120)] = 2476,
[SMALL_STATE(121)] = 2484,
[SMALL_STATE(122)] = 2492,
[SMALL_STATE(123)] = 2500,
[SMALL_STATE(124)] = 2508,
[SMALL_STATE(125)] = 2518,
[SMALL_STATE(126)] = 2525,
[SMALL_STATE(127)] = 2532,
[SMALL_STATE(128)] = 2539,
[SMALL_STATE(129)] = 2546,
[SMALL_STATE(130)] = 2553,
[SMALL_STATE(131)] = 2560,
[SMALL_STATE(132)] = 2567,
[SMALL_STATE(133)] = 2574,
[SMALL_STATE(134)] = 2581,
[SMALL_STATE(135)] = 2588,
[SMALL_STATE(136)] = 2595,
[SMALL_STATE(137)] = 2602,
[SMALL_STATE(138)] = 2609,
[SMALL_STATE(139)] = 2616,
[SMALL_STATE(140)] = 2623,
[SMALL_STATE(141)] = 2630,
[SMALL_STATE(142)] = 2637,
[SMALL_STATE(143)] = 2644,
[SMALL_STATE(144)] = 2651,
[SMALL_STATE(145)] = 2658,
[SMALL_STATE(146)] = 2665,
[SMALL_STATE(147)] = 2672,
[SMALL_STATE(148)] = 2679,
[SMALL_STATE(149)] = 2686,
[SMALL_STATE(150)] = 2693,
[SMALL_STATE(151)] = 2700,
[SMALL_STATE(152)] = 2707,
[SMALL_STATE(153)] = 2714,
[SMALL_STATE(154)] = 2721,
[SMALL_STATE(155)] = 2728,
[SMALL_STATE(156)] = 2735,
[SMALL_STATE(157)] = 2742,
[SMALL_STATE(158)] = 2749,
[SMALL_STATE(159)] = 2756,
[SMALL_STATE(160)] = 2763,
[SMALL_STATE(161)] = 2770,
[SMALL_STATE(162)] = 2777,
[SMALL_STATE(163)] = 2784,
[SMALL_STATE(164)] = 2791,
[SMALL_STATE(165)] = 2798,
[SMALL_STATE(166)] = 2805,
[SMALL_STATE(167)] = 2812,
[SMALL_STATE(168)] = 2819,
[SMALL_STATE(169)] = 2826,
[SMALL_STATE(170)] = 2833,
};
static const TSParseActionEntry ts_parse_actions[] = {
[0] = {.entry = {.count = 0, .reusable = false}},
[1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
[3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
[5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 0, 0, 0),
[7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170),
[11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
[13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
[15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
[17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
[19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63),
[21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
[23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61),
[25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(60),
[27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
[29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143),
[31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
[33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(141),
[35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
[37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64),
[39] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58),
[41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
[43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
[45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
[47] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140),
[49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140),
[51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
[55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
[57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
[59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103),
[61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
[63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
[65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106),
[67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
[69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
[71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__path_pattern, 1, 0, 0),
[73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
[75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
[77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83),
[79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100),
[81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72),
[83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
[85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__top_level_pattern, 1, 0, 0),
[87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
[89] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109),
[91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81),
[93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(159),
[95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 1, 0, 0),
[97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 1, 0, 1),
[99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0),
[101] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(7),
[104] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(170),
[107] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(8),
[110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 2, 0, 1),
[112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node_pattern, 2, 0, 0),
[114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node_pattern, 3, 0, 10),
[116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 2),
[118] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 2, 0, 0),
[120] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string_body, 2, 0, 0),
[122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__single_quoted_string, 3, 0, 14),
[124] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__single_quoted_string, 3, 0, 14),
[126] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__double_quoted_string, 3, 0, 14),
[128] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__double_quoted_string, 3, 0, 14),
[130] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__backticked_string, 3, 0, 14),
[132] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__backticked_string, 3, 0, 14),
[134] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string, 2, 0, 7),
[136] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string, 2, 0, 7),
[138] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labels, 1, 0, 0),
[140] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0),
[142] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(140),
[145] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(140),
[148] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string_literal, 1, 0, 5),
[150] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string_literal, 1, 0, 5),
[152] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 3, 0, 14),
[154] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string_body, 3, 0, 14),
[156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 4, 0, 0),
[158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 3, 0, 0),
[160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 2, 0, 0),
[162] = {.entry = {.count = 1, .reusable = false}}, SHIFT(69),
[164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
[166] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__label, 2, 0, 0),
[168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__label, 2, 0, 0),
[170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 3, 0, 10),
[172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 2, 0, 0),
[174] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_relationship_pattern, 3, 0, 12),
[176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 4, 0, 13),
[178] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66),
[180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66),
[182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 5, 0, 17),
[184] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0),
[186] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0), SHIFT_REPEAT(170),
[189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotations, 1, 0, 0),
[191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 3),
[193] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__scalar_value, 1, 0, 0),
[195] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46),
[197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
[199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 8),
[201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__value, 1, 0, 0),
[203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1, 0, 0),
[205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 5, 0, 25),
[207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
[209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotated_pattern, 2, 0, 6),
[211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 18),
[213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 20),
[215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 3, 0, 21),
[217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 23),
[219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 24),
[221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[223] = {.entry = {.count = 1, .reusable = false}}, SHIFT(160),
[225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165),
[227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 11),
[229] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0), SHIFT_REPEAT(26),
[232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0),
[234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_subject_pattern_elements_repeat1, 2, 0, 0),
[236] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_subject_pattern_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(17),
[239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern_elements, 1, 0, 0),
[241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
[243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[245] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138),
[247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139),
[249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 3, 0, 15),
[251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
[253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
[255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
[257] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 2, 0, 0),
[259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
[261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
[263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
[265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotation, 5, 0, 19),
[267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
[269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
[271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 9),
[273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0),
[275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
[277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94),
[279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern_elements, 2, 0, 0),
[281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 3, 0, 0),
[283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
[285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
[287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4, 0, 0),
[289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0),
[291] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(5),
[294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 4, 0, 0),
[296] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(27),
[299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0),
[301] = {.entry = {.count = 1, .reusable = false}}, SHIFT(164),
[303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
[305] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
[307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 4),
[309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[311] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127),
[313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
[315] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132),
[317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133),
[319] = {.entry = {.count = 1, .reusable = false}}, SHIFT(31),
[321] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
[323] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
[325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
[327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_reference, 1, 0, 2),
[329] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
[331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[333] = {.entry = {.count = 1, .reusable = false}}, SHIFT(147),
[335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148),
[337] = {.entry = {.count = 1, .reusable = false}}, SHIFT(149),
[339] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150),
[341] = {.entry = {.count = 1, .reusable = false}}, SHIFT(151),
[343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
[345] = {.entry = {.count = 1, .reusable = false}}, SHIFT(153),
[347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154),
[349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(155),
[351] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156),
[353] = {.entry = {.count = 1, .reusable = false}}, SHIFT(157),
[355] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
[357] = {.entry = {.count = 1, .reusable = false}}, SHIFT(71),
[359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168),
[361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_property, 3, 0, 16),
[363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_entry, 3, 0, 16),
[365] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
[367] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
[369] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 4, 0, 0),
[371] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 4, 0, 0),
[373] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
[375] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
[377] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116),
[379] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 4, 0, 0),
[381] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 4, 0, 0),
[383] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
[385] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117),
[389] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
[391] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 2, 0, 0),
[393] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 2, 0, 0),
[395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
[397] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130),
[399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
[401] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137),
[403] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
[405] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
[407] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
[409] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 5, 0, 22),
[411] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 5, 0, 22),
[413] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 5, 0, 22),
[415] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 5, 0, 22),
[417] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
[419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 2, 0, 0),
[421] = {.entry = {.count = 1, .reusable = false}}, SHIFT(129),
[423] = {.entry = {.count = 1, .reusable = false}}, SHIFT(125),
[425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
[427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
[429] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 2, 0, 0),
[431] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
[433] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
[435] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
[437] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
[439] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
};
#ifdef __cplusplus
extern "C" {
#endif
#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif
TS_PUBLIC const TSLanguage *tree_sitter_gram(void) {
static const TSLanguage language = {
.abi_version = LANGUAGE_VERSION,
.symbol_count = SYMBOL_COUNT,
.alias_count = ALIAS_COUNT,
.token_count = TOKEN_COUNT,
.external_token_count = EXTERNAL_TOKEN_COUNT,
.state_count = STATE_COUNT,
.large_state_count = LARGE_STATE_COUNT,
.production_id_count = PRODUCTION_ID_COUNT,
.supertype_count = SUPERTYPE_COUNT,
.field_count = FIELD_COUNT,
.max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
.parse_table = &ts_parse_table[0][0],
.small_parse_table = ts_small_parse_table,
.small_parse_table_map = ts_small_parse_table_map,
.parse_actions = ts_parse_actions,
.symbol_names = ts_symbol_names,
.field_names = ts_field_names,
.field_map_slices = ts_field_map_slices,
.field_map_entries = ts_field_map_entries,
.symbol_metadata = ts_symbol_metadata,
.public_symbol_map = ts_symbol_map,
.alias_map = ts_non_terminal_alias_map,
.alias_sequences = &ts_alias_sequences[0][0],
.lex_modes = (const void*)ts_lex_modes,
.lex_fn = ts_lex,
.primary_state_ids = ts_primary_state_ids,
.name = "gram",
.max_reserved_word_set_size = 0,
.metadata = {
.major_version = 0,
.minor_version = 2,
.patch_version = 7,
},
};
return &language;
}
#ifdef __cplusplus
}
#endif