/* Automatically @generated by tree-sitter */

#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 182
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 91
#define ALIAS_COUNT 0
#define TOKEN_COUNT 42
#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 29
#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_AT_AT = 8,
  anon_sym_COLON = 9,
  anon_sym_COLON_COLON = 10,
  anon_sym_LBRACE = 11,
  anon_sym_RBRACE = 12,
  sym_symbol = 13,
  anon_sym_DOT_DOT = 14,
  anon_sym_DOT_DOT_DOT = 15,
  anon_sym_true = 16,
  anon_sym_false = 17,
  sym_integer = 18,
  sym_decimal = 19,
  sym_hexadecimal = 20,
  sym_octal = 21,
  sym_measurement = 22,
  anon_sym_BQUOTE = 23,
  anon_sym_DQUOTE = 24,
  anon_sym_SQUOTE = 25,
  sym__single_quoted_text = 26,
  sym__double_quoted_text = 27,
  sym__backticked_text = 28,
  anon_sym_BQUOTE_BQUOTE_BQUOTE = 29,
  anon_sym_LF = 30,
  sym__fenced_string_content = 31,
  anon_sym_DASH = 32,
  anon_sym_EQ = 33,
  anon_sym_TILDE = 34,
  anon_sym_DASH_GT = 35,
  anon_sym_EQ_GT = 36,
  anon_sym_TILDE_GT = 37,
  anon_sym_LT_DASH = 38,
  anon_sym_LT_EQ = 39,
  anon_sym_LT_TILDE = 40,
  sym_comment = 41,
  sym_gram_pattern = 42,
  sym__top_level_pattern = 43,
  sym_annotated_pattern = 44,
  sym_subject_pattern = 45,
  sym_subject_pattern_elements = 46,
  sym__subject_pattern_element = 47,
  sym_annotations = 48,
  sym_property_annotation = 49,
  sym_identified_annotation = 50,
  sym__path_pattern = 51,
  sym_node_pattern = 52,
  sym_relationship_pattern = 53,
  sym_pattern_reference = 54,
  sym__identifier = 55,
  sym__subject = 56,
  sym__value = 57,
  sym__scalar_value = 58,
  sym_array = 59,
  sym_labels = 60,
  sym__label = 61,
  sym_record = 62,
  sym_record_property = 63,
  sym_map = 64,
  sym_map_entry = 65,
  sym_range = 66,
  sym_boolean_literal = 67,
  sym__numeric_literal = 68,
  sym_quoted_name = 69,
  sym_double_quoted_name = 70,
  sym__key_name = 71,
  sym_string_literal = 72,
  sym__single_quoted_string = 73,
  sym__double_quoted_string = 74,
  sym__backticked_string = 75,
  sym__fenced_string = 76,
  sym__fenced_string_body = 77,
  sym_tagged_string = 78,
  sym__relationship_kind = 79,
  sym_undirected_arrow = 80,
  sym_right_arrow = 81,
  sym_left_arrow = 82,
  sym_bidirectional_arrow = 83,
  aux_sym_gram_pattern_repeat1 = 84,
  aux_sym_subject_pattern_elements_repeat1 = 85,
  aux_sym_annotations_repeat1 = 86,
  aux_sym_array_repeat1 = 87,
  aux_sym_labels_repeat1 = 88,
  aux_sym_record_repeat1 = 89,
  aux_sym_map_repeat1 = 90,
};

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_AT_AT] = "@@",
  [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_BQUOTE] = "`",
  [anon_sym_DQUOTE] = "\"",
  [anon_sym_SQUOTE] = "'",
  [sym__single_quoted_text] = "string_content",
  [sym__double_quoted_text] = "string_content",
  [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_property_annotation] = "property_annotation",
  [sym_identified_annotation] = "identified_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_quoted_name] = "quoted_name",
  [sym_double_quoted_name] = "double_quoted_name",
  [sym__key_name] = "_key_name",
  [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_AT_AT] = anon_sym_AT_AT,
  [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_BQUOTE] = anon_sym_BQUOTE,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [anon_sym_SQUOTE] = anon_sym_SQUOTE,
  [sym__single_quoted_text] = sym__single_quoted_text,
  [sym__double_quoted_text] = sym__single_quoted_text,
  [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_property_annotation] = sym_property_annotation,
  [sym_identified_annotation] = sym_identified_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_quoted_name] = sym_quoted_name,
  [sym_double_quoted_name] = sym_double_quoted_name,
  [sym__key_name] = sym__key_name,
  [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_AT_AT] = {
    .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_BQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SQUOTE] = {
    .visible = true,
    .named = false,
  },
  [sym__single_quoted_text] = {
    .visible = true,
    .named = true,
  },
  [sym__double_quoted_text] = {
    .visible = true,
    .named = true,
  },
  [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_property_annotation] = {
    .visible = true,
    .named = true,
  },
  [sym_identified_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_quoted_name] = {
    .visible = true,
    .named = true,
  },
  [sym_double_quoted_name] = {
    .visible = true,
    .named = true,
  },
  [sym__key_name] = {
    .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 = 1},
  [7] = {.index = 6, .length = 2},
  [8] = {.index = 8, .length = 2},
  [9] = {.index = 10, .length = 2},
  [10] = {.index = 12, .length = 4},
  [11] = {.index = 16, .length = 2},
  [12] = {.index = 18, .length = 2},
  [13] = {.index = 20, .length = 3},
  [14] = {.index = 23, .length = 2},
  [15] = {.index = 25, .length = 1},
  [16] = {.index = 26, .length = 3},
  [17] = {.index = 29, .length = 1},
  [18] = {.index = 30, .length = 2},
  [19] = {.index = 32, .length = 6},
  [20] = {.index = 38, .length = 1},
  [21] = {.index = 39, .length = 1},
  [22] = {.index = 40, .length = 2},
  [23] = {.index = 42, .length = 1},
  [24] = {.index = 43, .length = 2},
  [25] = {.index = 45, .length = 4},
  [26] = {.index = 49, .length = 2},
  [27] = {.index = 51, .length = 1},
  [28] = {.index = 52, .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_identifier, 1},
  [5] =
    {field_labels, 1},
  [6] =
    {field_annotations, 0},
    {field_elements, 1},
  [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_identifier, 1},
    {field_labels, 2},
  [20] =
    {field_kind, 1},
    {field_left, 0},
    {field_right, 2},
  [23] =
    {field_elements, 1},
    {field_elements, 2},
  [25] =
    {field_content, 1},
  [26] =
    {field_identifier, 0},
    {field_labels, 1},
    {field_record, 2},
  [29] =
    {field_content, 0, .inherited = true},
  [30] =
    {field_key, 0},
    {field_value, 2},
  [32] =
    {field_elements, 2},
    {field_elements, 3},
    {field_identifier, 1, .inherited = true},
    {field_labels, 1, .inherited = true},
    {field_record, 1, .inherited = true},
    {field_subject, 1},
  [38] =
    {field_upper, 1},
  [39] =
    {field_content, 1, .inherited = true},
  [40] =
    {field_key, 1},
    {field_value, 3},
  [42] =
    {field_lower, 0},
  [43] =
    {field_lower, 0},
    {field_upper, 2},
  [45] =
    {field_identifier, 2, .inherited = true},
    {field_labels, 2, .inherited = true},
    {field_record, 2, .inherited = true},
    {field_subject, 2},
  [49] =
    {field_content, 2},
    {field_tag, 0},
  [51] =
    {field_tag, 1},
  [52] =
    {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,
  [171] = 171,
  [172] = 172,
  [173] = 173,
  [174] = 174,
  [175] = 175,
  [176] = 176,
  [177] = 177,
  [178] = 178,
  [179] = 179,
  [180] = 180,
  [181] = 181,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(22);
      ADVANCE_MAP(
        '"', 60,
        '\'', 61,
        '(', 28,
        ')', 29,
        ',', 26,
        '-', 80,
        '.', 5,
        '/', 8,
        '0', 48,
        ':', 31,
        '<', 4,
        '=', 83,
        '@', 27,
        '[', 23,
        ']', 25,
        '`', 59,
        'f', 35,
        't', 39,
        '{', 33,
        '|', 24,
        '}', 34,
        '~', 85,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(0);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(49);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('_' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 1:
      if (lookahead == '\n') ADVANCE(75);
      if (lookahead == '/') ADVANCE(8);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(1);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 2:
      ADVANCE_MAP(
        '"', 60,
        '\'', 61,
        '-', 10,
        '.', 7,
        '/', 8,
        '0', 48,
        '[', 23,
        '`', 59,
        'f', 35,
        't', 39,
        '{', 33,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(2);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(49);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('_' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 3:
      ADVANCE_MAP(
        '(', 28,
        ')', 29,
        '-', 11,
        '/', 8,
        '0', 47,
        ':', 31,
        '[', 23,
        ']', 25,
        '`', 58,
        '{', 33,
        '|', 24,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(3);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(51);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('_' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 4:
      if (lookahead == '-') ADVANCE(89);
      if (lookahead == '=') ADVANCE(90);
      if (lookahead == '~') ADVANCE(91);
      END_STATE();
    case 5:
      if (lookahead == '.') ADVANCE(43);
      END_STATE();
    case 6:
      if (lookahead == '.') ADVANCE(44);
      END_STATE();
    case 7:
      if (lookahead == '.') ADVANCE(6);
      END_STATE();
    case 8:
      if (lookahead == '/') ADVANCE(97);
      END_STATE();
    case 9:
      if (lookahead == '/') ADVANCE(78);
      if (lookahead == '`') ADVANCE(15);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(77);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 10:
      if (lookahead == '0') ADVANCE(50);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(49);
      END_STATE();
    case 11:
      if (lookahead == '0') ADVANCE(47);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 12:
      if (lookahead == '`') ADVANCE(74);
      END_STATE();
    case 13:
      if (lookahead == '`') ADVANCE(74);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 14:
      if (lookahead == '`') ADVANCE(20);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 15:
      if (lookahead == '`') ADVANCE(13);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 16:
      ADVANCE_MAP(
        '"', 69,
        '/', 69,
        '\\', 69,
        'b', 69,
        'f', 69,
        'n', 69,
        'r', 69,
        't', 69,
      );
      END_STATE();
    case 17:
      ADVANCE_MAP(
        '\'', 65,
        '/', 65,
        '\\', 65,
        'b', 65,
        'f', 65,
        'n', 65,
        'r', 65,
        't', 65,
      );
      END_STATE();
    case 18:
      ADVANCE_MAP(
        '/', 72,
        '\\', 72,
        '`', 72,
        'b', 72,
        'f', 72,
        'n', 72,
        'r', 72,
        't', 72,
      );
      END_STATE();
    case 19:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(52);
      END_STATE();
    case 20:
      if (lookahead != 0 &&
          lookahead != '`') ADVANCE(79);
      END_STATE();
    case 21:
      if (eof) ADVANCE(22);
      ADVANCE_MAP(
        '"', 60,
        '(', 28,
        ',', 26,
        '-', 81,
        '/', 8,
        '<', 4,
        '=', 82,
        '@', 27,
        '[', 23,
        ']', 25,
        '`', 58,
        '}', 34,
        '~', 84,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(21);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('_' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      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);
      if (lookahead == '@') ADVANCE(30);
      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_AT_AT);
      END_STATE();
    case 31:
      ACCEPT_TOKEN(anon_sym_COLON);
      if (lookahead == ':') ADVANCE(32);
      END_STATE();
    case 32:
      ACCEPT_TOKEN(anon_sym_COLON_COLON);
      END_STATE();
    case 33:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      END_STATE();
    case 34:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      END_STATE();
    case 35:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 'a') ADVANCE(38);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('b' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      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(42);
      END_STATE();
    case 37:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 'e') ADVANCE(46);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 38:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 'l') ADVANCE(40);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 39:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 'r') ADVANCE(41);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 40:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 's') ADVANCE(37);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 41:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == 'u') ADVANCE(36);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 42:
      ACCEPT_TOKEN(sym_symbol);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 43:
      ACCEPT_TOKEN(anon_sym_DOT_DOT);
      if (lookahead == '.') ADVANCE(44);
      END_STATE();
    case 44:
      ACCEPT_TOKEN(anon_sym_DOT_DOT_DOT);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(anon_sym_true);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(anon_sym_false);
      if (lookahead == '-' ||
          lookahead == '.' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('@' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(sym_integer);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(19);
      if (lookahead == 'x') ADVANCE(56);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(55);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(19);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(49);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '.') ADVANCE(19);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(sym_integer);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(51);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(sym_decimal);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(52);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_hexadecimal);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(54);
      if (('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(53);
      if (('G' <= lookahead && lookahead <= 'Z') ||
          ('g' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(sym_hexadecimal);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(54);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(sym_octal);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(55);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(sym_measurement);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(54);
      if (('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(53);
      if (('G' <= lookahead && lookahead <= 'Z') ||
          ('g' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(sym_measurement);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_BQUOTE);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(anon_sym_BQUOTE);
      if (lookahead == '`') ADVANCE(12);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(anon_sym_DQUOTE);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(anon_sym_SQUOTE);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(sym__single_quoted_text);
      if (lookahead == '\'') ADVANCE(97);
      if (lookahead == '\\') ADVANCE(95);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(62);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(sym__single_quoted_text);
      if (lookahead == '/') ADVANCE(64);
      if (lookahead == '\\') ADVANCE(17);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(63);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '\'') ADVANCE(65);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(sym__single_quoted_text);
      if (lookahead == '/') ADVANCE(62);
      if (lookahead == '\\') ADVANCE(17);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\'') ADVANCE(65);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(sym__single_quoted_text);
      if (lookahead == '\\') ADVANCE(17);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '\'') ADVANCE(65);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(sym__double_quoted_text);
      if (lookahead == '"') ADVANCE(97);
      if (lookahead == '\\') ADVANCE(94);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(66);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(sym__double_quoted_text);
      if (lookahead == '/') ADVANCE(68);
      if (lookahead == '\\') ADVANCE(16);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(67);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '"') ADVANCE(69);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(sym__double_quoted_text);
      if (lookahead == '/') ADVANCE(66);
      if (lookahead == '\\') ADVANCE(16);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"') ADVANCE(69);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(sym__double_quoted_text);
      if (lookahead == '\\') ADVANCE(16);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"') ADVANCE(69);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(sym__backticked_text);
      if (lookahead == '/') ADVANCE(71);
      if (lookahead == '\\') ADVANCE(18);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(70);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != '`') ADVANCE(72);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(sym__backticked_text);
      if (lookahead == '/') ADVANCE(73);
      if (lookahead == '\\') ADVANCE(18);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '`') ADVANCE(72);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(sym__backticked_text);
      if (lookahead == '\\') ADVANCE(18);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '`') ADVANCE(72);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(sym__backticked_text);
      if (lookahead == '\\') ADVANCE(96);
      if (lookahead == '`') ADVANCE(97);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(73);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(anon_sym_BQUOTE_BQUOTE_BQUOTE);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(anon_sym_LF);
      if (lookahead == '\n') ADVANCE(75);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(sym__fenced_string_content);
      if (lookahead == '\n') ADVANCE(79);
      if (lookahead == '`') ADVANCE(93);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(sym__fenced_string_content);
      if (lookahead == '/') ADVANCE(78);
      if (lookahead == '`') ADVANCE(15);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(77);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(sym__fenced_string_content);
      if (lookahead == '/') ADVANCE(76);
      if (lookahead == '`') ADVANCE(14);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(sym__fenced_string_content);
      if (lookahead == '`') ADVANCE(14);
      if (lookahead != 0) ADVANCE(79);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(anon_sym_DASH);
      if (lookahead == '0') ADVANCE(50);
      if (lookahead == '>') ADVANCE(86);
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(49);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(anon_sym_DASH);
      if (lookahead == '>') ADVANCE(86);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(anon_sym_EQ);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(anon_sym_EQ);
      if (lookahead == '>') ADVANCE(87);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(anon_sym_TILDE);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(anon_sym_TILDE);
      if (lookahead == '>') ADVANCE(88);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(anon_sym_DASH_GT);
      END_STATE();
    case 87:
      ACCEPT_TOKEN(anon_sym_EQ_GT);
      END_STATE();
    case 88:
      ACCEPT_TOKEN(anon_sym_TILDE_GT);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_LT_DASH);
      END_STATE();
    case 90:
      ACCEPT_TOKEN(anon_sym_LT_EQ);
      END_STATE();
    case 91:
      ACCEPT_TOKEN(anon_sym_LT_TILDE);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead == '\n') ADVANCE(79);
      if (lookahead == '`') ADVANCE(97);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 93:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead == '\n') ADVANCE(79);
      if (lookahead == '`') ADVANCE(92);
      if (lookahead != 0) ADVANCE(76);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(sym_comment);
      ADVANCE_MAP(
        '"', 66,
        '/', 66,
        '\\', 66,
        'b', 66,
        'f', 66,
        'n', 66,
        'r', 66,
        't', 66,
      );
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(97);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(sym_comment);
      ADVANCE_MAP(
        '\'', 62,
        '/', 62,
        '\\', 62,
        'b', 62,
        'f', 62,
        'n', 62,
        'r', 62,
        't', 62,
      );
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(97);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(sym_comment);
      ADVANCE_MAP(
        '/', 73,
        '\\', 73,
        '`', 73,
        'b', 73,
        'f', 73,
        'n', 73,
        'r', 73,
        't', 73,
      );
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(97);
      END_STATE();
    case 97:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(97);
      END_STATE();
    default:
      return false;
  }
}

static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 0},
  [2] = {.lex_state = 2},
  [3] = {.lex_state = 2},
  [4] = {.lex_state = 2},
  [5] = {.lex_state = 2},
  [6] = {.lex_state = 2},
  [7] = {.lex_state = 21},
  [8] = {.lex_state = 21},
  [9] = {.lex_state = 0},
  [10] = {.lex_state = 0},
  [11] = {.lex_state = 0},
  [12] = {.lex_state = 0},
  [13] = {.lex_state = 3},
  [14] = {.lex_state = 3},
  [15] = {.lex_state = 3},
  [16] = {.lex_state = 3},
  [17] = {.lex_state = 3},
  [18] = {.lex_state = 3},
  [19] = {.lex_state = 3},
  [20] = {.lex_state = 3},
  [21] = {.lex_state = 3},
  [22] = {.lex_state = 3},
  [23] = {.lex_state = 21},
  [24] = {.lex_state = 21},
  [25] = {.lex_state = 3},
  [26] = {.lex_state = 0},
  [27] = {.lex_state = 0},
  [28] = {.lex_state = 3},
  [29] = {.lex_state = 0},
  [30] = {.lex_state = 0},
  [31] = {.lex_state = 0},
  [32] = {.lex_state = 0},
  [33] = {.lex_state = 0},
  [34] = {.lex_state = 21},
  [35] = {.lex_state = 0},
  [36] = {.lex_state = 0},
  [37] = {.lex_state = 21},
  [38] = {.lex_state = 0},
  [39] = {.lex_state = 0},
  [40] = {.lex_state = 0},
  [41] = {.lex_state = 0},
  [42] = {.lex_state = 21},
  [43] = {.lex_state = 21},
  [44] = {.lex_state = 0},
  [45] = {.lex_state = 0},
  [46] = {.lex_state = 2},
  [47] = {.lex_state = 2},
  [48] = {.lex_state = 0},
  [49] = {.lex_state = 0},
  [50] = {.lex_state = 0},
  [51] = {.lex_state = 0},
  [52] = {.lex_state = 0},
  [53] = {.lex_state = 0},
  [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 = 0},
  [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 = 21},
  [98] = {.lex_state = 21},
  [99] = {.lex_state = 1},
  [100] = {.lex_state = 0},
  [101] = {.lex_state = 0},
  [102] = {.lex_state = 0},
  [103] = {.lex_state = 0},
  [104] = {.lex_state = 0},
  [105] = {.lex_state = 0},
  [106] = {.lex_state = 0},
  [107] = {.lex_state = 0},
  [108] = {.lex_state = 21},
  [109] = {.lex_state = 21},
  [110] = {.lex_state = 0},
  [111] = {.lex_state = 0},
  [112] = {.lex_state = 0},
  [113] = {.lex_state = 0},
  [114] = {.lex_state = 9},
  [115] = {.lex_state = 0},
  [116] = {.lex_state = 0},
  [117] = {.lex_state = 21},
  [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 = 21},
  [127] = {.lex_state = 0},
  [128] = {.lex_state = 0},
  [129] = {.lex_state = 0},
  [130] = {.lex_state = 0},
  [131] = {.lex_state = 21},
  [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 = 70},
  [141] = {.lex_state = 0},
  [142] = {.lex_state = 67},
  [143] = {.lex_state = 0},
  [144] = {.lex_state = 63},
  [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 = 21},
  [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 = 0},
  [162] = {.lex_state = 0},
  [163] = {.lex_state = 0},
  [164] = {.lex_state = 0},
  [165] = {.lex_state = 0},
  [166] = {.lex_state = 0},
  [167] = {.lex_state = 70},
  [168] = {.lex_state = 0},
  [169] = {.lex_state = 0},
  [170] = {.lex_state = 0},
  [171] = {.lex_state = 0},
  [172] = {.lex_state = 0},
  [173] = {.lex_state = 1},
  [174] = {.lex_state = 0},
  [175] = {.lex_state = 67},
  [176] = {.lex_state = 0},
  [177] = {.lex_state = 70},
  [178] = {.lex_state = 0},
  [179] = {.lex_state = 0},
  [180] = {.lex_state = 0},
  [181] = {.lex_state = 0},
};

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_AT_AT] = 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_BQUOTE] = ACTIONS(1),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [anon_sym_SQUOTE] = 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(150),
    [sym__top_level_pattern] = STATE(12),
    [sym_annotated_pattern] = STATE(12),
    [sym_subject_pattern] = STATE(12),
    [sym_annotations] = STATE(45),
    [sym_property_annotation] = STATE(53),
    [sym_identified_annotation] = STATE(55),
    [sym_node_pattern] = STATE(8),
    [sym_relationship_pattern] = STATE(12),
    [sym_record] = STATE(10),
    [aux_sym_gram_pattern_repeat1] = STATE(12),
    [aux_sym_annotations_repeat1] = STATE(53),
    [ts_builtin_sym_end] = ACTIONS(5),
    [anon_sym_LBRACK] = ACTIONS(7),
    [anon_sym_AT] = ACTIONS(9),
    [anon_sym_LPAREN] = ACTIONS(11),
    [anon_sym_AT_AT] = ACTIONS(13),
    [anon_sym_LBRACE] = ACTIONS(15),
    [sym_comment] = ACTIONS(3),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 18,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(17), 1,
      anon_sym_LBRACK,
    ACTIONS(19), 1,
      anon_sym_LBRACE,
    ACTIONS(21), 1,
      sym_symbol,
    ACTIONS(23), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_DQUOTE,
    ACTIONS(35), 1,
      anon_sym_SQUOTE,
    ACTIONS(37), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(48), 1,
      sym__numeric_literal,
    STATE(60), 1,
      sym__single_quoted_string,
    STATE(61), 1,
      sym__double_quoted_string,
    STATE(62), 1,
      sym__backticked_string,
    STATE(63), 1,
      sym__fenced_string,
    ACTIONS(25), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(29), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(27), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(147), 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(17), 1,
      anon_sym_LBRACK,
    ACTIONS(19), 1,
      anon_sym_LBRACE,
    ACTIONS(21), 1,
      sym_symbol,
    ACTIONS(23), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_DQUOTE,
    ACTIONS(35), 1,
      anon_sym_SQUOTE,
    ACTIONS(37), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(48), 1,
      sym__numeric_literal,
    STATE(60), 1,
      sym__single_quoted_string,
    STATE(61), 1,
      sym__double_quoted_string,
    STATE(62), 1,
      sym__backticked_string,
    STATE(63), 1,
      sym__fenced_string,
    ACTIONS(25), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(29), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(27), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(116), 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(23), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_DQUOTE,
    ACTIONS(35), 1,
      anon_sym_SQUOTE,
    ACTIONS(37), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(39), 1,
      sym_symbol,
    STATE(56), 1,
      sym__numeric_literal,
    STATE(60), 1,
      sym__single_quoted_string,
    STATE(61), 1,
      sym__double_quoted_string,
    STATE(62), 1,
      sym__backticked_string,
    STATE(63), 1,
      sym__fenced_string,
    ACTIONS(25), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(43), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(41), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(83), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [187] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(23), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_DQUOTE,
    ACTIONS(35), 1,
      anon_sym_SQUOTE,
    ACTIONS(37), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(39), 1,
      sym_symbol,
    STATE(56), 1,
      sym__numeric_literal,
    STATE(60), 1,
      sym__single_quoted_string,
    STATE(61), 1,
      sym__double_quoted_string,
    STATE(62), 1,
      sym__backticked_string,
    STATE(63), 1,
      sym__fenced_string,
    ACTIONS(25), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(43), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(41), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(122), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [244] = 16,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(23), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_DQUOTE,
    ACTIONS(35), 1,
      anon_sym_SQUOTE,
    ACTIONS(37), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(39), 1,
      sym_symbol,
    STATE(56), 1,
      sym__numeric_literal,
    STATE(60), 1,
      sym__single_quoted_string,
    STATE(61), 1,
      sym__double_quoted_string,
    STATE(62), 1,
      sym__backticked_string,
    STATE(63), 1,
      sym__fenced_string,
    ACTIONS(25), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(43), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(41), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(128), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [301] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(47), 1,
      anon_sym_AT,
    ACTIONS(49), 1,
      anon_sym_DASH,
    ACTIONS(51), 1,
      anon_sym_EQ,
    ACTIONS(53), 1,
      anon_sym_TILDE,
    ACTIONS(55), 1,
      anon_sym_LT_DASH,
    ACTIONS(57), 1,
      anon_sym_LT_EQ,
    ACTIONS(59), 1,
      anon_sym_LT_TILDE,
    STATE(57), 5,
      sym__relationship_kind,
      sym_undirected_arrow,
      sym_right_arrow,
      sym_left_arrow,
      sym_bidirectional_arrow,
    ACTIONS(45), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [341] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(49), 1,
      anon_sym_DASH,
    ACTIONS(51), 1,
      anon_sym_EQ,
    ACTIONS(53), 1,
      anon_sym_TILDE,
    ACTIONS(55), 1,
      anon_sym_LT_DASH,
    ACTIONS(57), 1,
      anon_sym_LT_EQ,
    ACTIONS(59), 1,
      anon_sym_LT_TILDE,
    ACTIONS(63), 1,
      anon_sym_AT,
    ACTIONS(61), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
    STATE(57), 5,
      sym__relationship_kind,
      sym_undirected_arrow,
      sym_right_arrow,
      sym_left_arrow,
      sym_bidirectional_arrow,
  [379] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_AT_AT,
    ACTIONS(65), 1,
      ts_builtin_sym_end,
    STATE(8), 1,
      sym_node_pattern,
    STATE(45), 1,
      sym_annotations,
    STATE(55), 1,
      sym_identified_annotation,
    STATE(53), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
    STATE(11), 5,
      sym__top_level_pattern,
      sym_annotated_pattern,
      sym_subject_pattern,
      sym_relationship_pattern,
      aux_sym_gram_pattern_repeat1,
  [418] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_AT_AT,
    ACTIONS(67), 1,
      ts_builtin_sym_end,
    STATE(8), 1,
      sym_node_pattern,
    STATE(45), 1,
      sym_annotations,
    STATE(55), 1,
      sym_identified_annotation,
    STATE(53), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
    STATE(9), 5,
      sym__top_level_pattern,
      sym_annotated_pattern,
      sym_subject_pattern,
      sym_relationship_pattern,
      aux_sym_gram_pattern_repeat1,
  [457] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(69), 1,
      ts_builtin_sym_end,
    ACTIONS(71), 1,
      anon_sym_LBRACK,
    ACTIONS(74), 1,
      anon_sym_AT,
    ACTIONS(77), 1,
      anon_sym_LPAREN,
    ACTIONS(80), 1,
      anon_sym_AT_AT,
    STATE(8), 1,
      sym_node_pattern,
    STATE(45), 1,
      sym_annotations,
    STATE(55), 1,
      sym_identified_annotation,
    STATE(53), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
    STATE(11), 5,
      sym__top_level_pattern,
      sym_annotated_pattern,
      sym_subject_pattern,
      sym_relationship_pattern,
      aux_sym_gram_pattern_repeat1,
  [496] = 11,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(13), 1,
      anon_sym_AT_AT,
    ACTIONS(83), 1,
      ts_builtin_sym_end,
    STATE(8), 1,
      sym_node_pattern,
    STATE(45), 1,
      sym_annotations,
    STATE(55), 1,
      sym_identified_annotation,
    STATE(53), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
    STATE(11), 5,
      sym__top_level_pattern,
      sym_annotated_pattern,
      sym_subject_pattern,
      sym_relationship_pattern,
      aux_sym_gram_pattern_repeat1,
  [535] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(85), 1,
      anon_sym_PIPE,
    ACTIONS(87), 1,
      anon_sym_RBRACK,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(111), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [578] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(97), 1,
      anon_sym_RPAREN,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(148), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [618] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(99), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(179), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [658] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    STATE(7), 1,
      sym_node_pattern,
    STATE(174), 1,
      sym_subject_pattern_elements,
    ACTIONS(101), 2,
      sym_symbol,
      sym_integer,
    STATE(115), 2,
      sym__identifier,
      sym_quoted_name,
    STATE(87), 5,
      sym_subject_pattern,
      sym__subject_pattern_element,
      sym__path_pattern,
      sym_relationship_pattern,
      sym_pattern_reference,
  [692] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(103), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(135), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [732] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(105), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(139), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [772] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(107), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(141), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [812] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(109), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(143), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [852] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(111), 1,
      anon_sym_RBRACK,
    STATE(50), 1,
      sym_labels,
    STATE(107), 1,
      sym_record,
    STATE(145), 1,
      sym__subject,
    ACTIONS(93), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(30), 2,
      sym__identifier,
      sym_quoted_name,
  [892] = 9,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    STATE(7), 1,
      sym_node_pattern,
    STATE(151), 1,
      sym_subject_pattern_elements,
    ACTIONS(101), 2,
      sym_symbol,
      sym_integer,
    STATE(115), 2,
      sym__identifier,
      sym_quoted_name,
    STATE(87), 5,
      sym_subject_pattern,
      sym__subject_pattern_element,
      sym__path_pattern,
      sym_relationship_pattern,
      sym_pattern_reference,
  [926] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(115), 1,
      anon_sym_AT,
    ACTIONS(113), 12,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [947] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(119), 1,
      anon_sym_AT,
    ACTIONS(117), 12,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [968] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    STATE(7), 1,
      sym_node_pattern,
    ACTIONS(101), 2,
      sym_symbol,
      sym_integer,
    STATE(115), 2,
      sym__identifier,
      sym_quoted_name,
    STATE(113), 5,
      sym_subject_pattern,
      sym__subject_pattern_element,
      sym__path_pattern,
      sym_relationship_pattern,
      sym_pattern_reference,
  [999] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(123), 1,
      anon_sym_COLON,
    ACTIONS(126), 1,
      anon_sym_COLON_COLON,
    STATE(26), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(121), 7,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_LBRACE,
  [1022] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    STATE(26), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(129), 7,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_LBRACE,
  [1045] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    STATE(89), 1,
      sym_labels,
    ACTIONS(131), 2,
      sym_symbol,
      sym_integer,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    STATE(33), 2,
      sym__identifier,
      sym_quoted_name,
  [1073] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(135), 1,
      anon_sym_COLON,
    ACTIONS(133), 9,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
  [1091] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    STATE(52), 1,
      sym_labels,
    STATE(78), 1,
      sym_record,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(137), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1119] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(141), 1,
      anon_sym_COLON,
    ACTIONS(139), 8,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
  [1136] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(145), 1,
      anon_sym_AT,
    ACTIONS(143), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_AT_AT,
  [1152] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(89), 1,
      anon_sym_COLON,
    ACTIONS(91), 1,
      anon_sym_COLON_COLON,
    STATE(104), 1,
      sym_labels,
    STATE(27), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(147), 3,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [1174] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(149), 1,
      anon_sym_RBRACE,
    ACTIONS(151), 1,
      sym_symbol,
    ACTIONS(153), 1,
      anon_sym_DQUOTE,
    STATE(86), 1,
      sym_map_entry,
    STATE(156), 3,
      sym_quoted_name,
      sym_double_quoted_name,
      sym__key_name,
  [1198] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(157), 1,
      anon_sym_AT,
    ACTIONS(155), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_AT_AT,
  [1214] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(161), 1,
      anon_sym_AT,
    ACTIONS(159), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_AT_AT,
  [1230] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(153), 1,
      anon_sym_DQUOTE,
    ACTIONS(163), 1,
      anon_sym_RBRACE,
    ACTIONS(165), 1,
      sym_symbol,
    STATE(96), 1,
      sym_record_property,
    STATE(121), 3,
      sym_quoted_name,
      sym_double_quoted_name,
      sym__key_name,
  [1254] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(169), 1,
      anon_sym_AT,
    ACTIONS(167), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1269] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(173), 1,
      anon_sym_AT,
    ACTIONS(171), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1284] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(177), 1,
      anon_sym_AT,
    ACTIONS(175), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1299] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(181), 1,
      anon_sym_AT,
    ACTIONS(179), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1314] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(151), 1,
      sym_symbol,
    ACTIONS(153), 1,
      anon_sym_DQUOTE,
    STATE(125), 1,
      sym_map_entry,
    STATE(156), 3,
      sym_quoted_name,
      sym_double_quoted_name,
      sym__key_name,
  [1335] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(153), 1,
      anon_sym_DQUOTE,
    ACTIONS(165), 1,
      sym_symbol,
    STATE(120), 1,
      sym_record_property,
    STATE(121), 3,
      sym_quoted_name,
      sym_double_quoted_name,
      sym__key_name,
  [1356] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(185), 1,
      anon_sym_AT,
    ACTIONS(183), 6,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1371] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LBRACK,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    STATE(7), 1,
      sym_node_pattern,
    STATE(49), 3,
      sym_subject_pattern,
      sym__path_pattern,
      sym_relationship_pattern,
  [1389] = 4,
    ACTIONS(3), 1,
      sym_comment,
    STATE(65), 1,
      sym__numeric_literal,
    ACTIONS(189), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(187), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
  [1405] = 4,
    ACTIONS(3), 1,
      sym_comment,
    STATE(72), 1,
      sym__numeric_literal,
    ACTIONS(193), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(191), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
  [1421] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(197), 1,
      anon_sym_DOT_DOT,
    ACTIONS(199), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(195), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1436] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(203), 1,
      anon_sym_AT,
    ACTIONS(201), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
      anon_sym_AT_AT,
  [1449] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    STATE(92), 1,
      sym_record,
    ACTIONS(205), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1464] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(209), 1,
      anon_sym_AT,
    ACTIONS(207), 2,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
    STATE(54), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
  [1479] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    STATE(84), 1,
      sym_record,
    ACTIONS(211), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1494] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(209), 1,
      anon_sym_AT,
    ACTIONS(213), 2,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
    STATE(54), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
  [1509] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(217), 1,
      anon_sym_AT,
    ACTIONS(215), 2,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
    STATE(54), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
  [1524] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(209), 1,
      anon_sym_AT,
    ACTIONS(213), 2,
      anon_sym_LBRACK,
      anon_sym_LPAREN,
    STATE(51), 2,
      sym_property_annotation,
      aux_sym_annotations_repeat1,
  [1539] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(197), 1,
      anon_sym_DOT_DOT,
    ACTIONS(199), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(220), 3,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [1554] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(11), 1,
      anon_sym_LPAREN,
    STATE(7), 1,
      sym_node_pattern,
    STATE(40), 2,
      sym__path_pattern,
      sym_relationship_pattern,
  [1568] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(222), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1578] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(224), 1,
      anon_sym_BQUOTE,
    ACTIONS(195), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1590] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(226), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1600] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(226), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1610] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(226), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1620] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(226), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1630] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(224), 1,
      anon_sym_BQUOTE,
    ACTIONS(220), 3,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [1642] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(228), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1652] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(230), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1662] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(232), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1672] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(234), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1682] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(236), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1692] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(238), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1702] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(240), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1712] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(242), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1722] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(244), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1732] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(246), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1742] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(248), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1752] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(250), 4,
      anon_sym_RBRACK,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1762] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(252), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1771] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(254), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1780] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(256), 1,
      anon_sym_COMMA,
    ACTIONS(259), 1,
      anon_sym_RBRACE,
    STATE(79), 1,
      aux_sym_record_repeat1,
  [1793] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(261), 1,
      anon_sym_RBRACK,
    ACTIONS(263), 1,
      anon_sym_COMMA,
    STATE(80), 1,
      aux_sym_subject_pattern_elements_repeat1,
  [1806] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(266), 1,
      anon_sym_RBRACK,
    ACTIONS(268), 1,
      anon_sym_COMMA,
    STATE(80), 1,
      aux_sym_subject_pattern_elements_repeat1,
  [1819] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(270), 1,
      anon_sym_LBRACK,
    ACTIONS(272), 1,
      anon_sym_EQ,
    ACTIONS(274), 1,
      anon_sym_EQ_GT,
  [1832] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(276), 1,
      anon_sym_RBRACK,
    ACTIONS(278), 1,
      anon_sym_COMMA,
    STATE(93), 1,
      aux_sym_array_repeat1,
  [1845] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(280), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1854] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(282), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1863] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(284), 1,
      anon_sym_COMMA,
    ACTIONS(286), 1,
      anon_sym_RBRACE,
    STATE(95), 1,
      aux_sym_map_repeat1,
  [1876] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(268), 1,
      anon_sym_COMMA,
    ACTIONS(288), 1,
      anon_sym_RBRACK,
    STATE(81), 1,
      aux_sym_subject_pattern_elements_repeat1,
  [1889] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(290), 3,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [1898] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(292), 3,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [1907] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(272), 1,
      anon_sym_TILDE,
    ACTIONS(274), 1,
      anon_sym_TILDE_GT,
    ACTIONS(294), 1,
      anon_sym_LBRACK,
  [1920] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(296), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1929] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(298), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1938] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(278), 1,
      anon_sym_COMMA,
    ACTIONS(300), 1,
      anon_sym_RBRACK,
    STATE(103), 1,
      aux_sym_array_repeat1,
  [1951] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(302), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [1960] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(284), 1,
      anon_sym_COMMA,
    ACTIONS(304), 1,
      anon_sym_RBRACE,
    STATE(105), 1,
      aux_sym_map_repeat1,
  [1973] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(306), 1,
      anon_sym_COMMA,
    ACTIONS(308), 1,
      anon_sym_RBRACE,
    STATE(106), 1,
      aux_sym_record_repeat1,
  [1986] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(95), 1,
      anon_sym_BQUOTE,
    ACTIONS(310), 1,
      sym_symbol,
    STATE(31), 1,
      sym_quoted_name,
  [1999] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(312), 1,
      anon_sym_LBRACK,
    ACTIONS(314), 1,
      anon_sym_DASH,
    ACTIONS(316), 1,
      anon_sym_DASH_GT,
  [2012] = 4,
    ACTIONS(318), 1,
      sym_symbol,
    ACTIONS(320), 1,
      anon_sym_LF,
    ACTIONS(322), 1,
      sym_comment,
    STATE(66), 1,
      sym__fenced_string_body,
  [2025] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(314), 1,
      anon_sym_EQ,
    ACTIONS(316), 1,
      anon_sym_EQ_GT,
    ACTIONS(324), 1,
      anon_sym_LBRACK,
  [2038] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(314), 1,
      anon_sym_TILDE,
    ACTIONS(316), 1,
      anon_sym_TILDE_GT,
    ACTIONS(326), 1,
      anon_sym_LBRACK,
  [2051] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(328), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2060] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(330), 1,
      anon_sym_RBRACK,
    ACTIONS(332), 1,
      anon_sym_COMMA,
    STATE(103), 1,
      aux_sym_array_repeat1,
  [2073] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(335), 3,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2082] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(337), 1,
      anon_sym_COMMA,
    ACTIONS(340), 1,
      anon_sym_RBRACE,
    STATE(105), 1,
      aux_sym_map_repeat1,
  [2095] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(306), 1,
      anon_sym_COMMA,
    ACTIONS(342), 1,
      anon_sym_RBRACE,
    STATE(79), 1,
      aux_sym_record_repeat1,
  [2108] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(344), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2117] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(272), 1,
      anon_sym_DASH,
    ACTIONS(274), 1,
      anon_sym_DASH_GT,
    ACTIONS(346), 1,
      anon_sym_LBRACK,
  [2130] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(348), 1,
      anon_sym_DASH,
    ACTIONS(350), 1,
      anon_sym_DASH_GT,
  [2140] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(352), 1,
      anon_sym_EQ,
    ACTIONS(354), 1,
      anon_sym_EQ_GT,
  [2150] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(356), 1,
      anon_sym_PIPE,
    ACTIONS(358), 1,
      anon_sym_RBRACK,
  [2160] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(352), 1,
      anon_sym_TILDE,
    ACTIONS(354), 1,
      anon_sym_TILDE_GT,
  [2170] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(261), 2,
      anon_sym_RBRACK,
      anon_sym_COMMA,
  [2178] = 3,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(360), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(362), 1,
      sym__fenced_string_content,
  [2188] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(364), 2,
      anon_sym_RBRACK,
      anon_sym_COMMA,
  [2196] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(366), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2204] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(368), 1,
      anon_sym_DASH,
    ACTIONS(370), 1,
      anon_sym_DASH_GT,
  [2214] = 3,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(372), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(374), 1,
      sym__fenced_string_content,
  [2224] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(368), 1,
      anon_sym_EQ,
    ACTIONS(370), 1,
      anon_sym_EQ_GT,
  [2234] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(259), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2242] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(376), 1,
      anon_sym_COLON,
    ACTIONS(378), 1,
      anon_sym_COLON_COLON,
  [2252] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(330), 2,
      anon_sym_RBRACK,
      anon_sym_COMMA,
  [2260] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(380), 1,
      anon_sym_EQ,
    ACTIONS(382), 1,
      anon_sym_EQ_GT,
  [2270] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(384), 1,
      anon_sym_TILDE,
    ACTIONS(386), 1,
      anon_sym_TILDE_GT,
  [2280] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(340), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2288] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(388), 1,
      anon_sym_DASH,
    ACTIONS(390), 1,
      anon_sym_DASH_GT,
  [2298] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(392), 1,
      anon_sym_EQ,
    ACTIONS(394), 1,
      anon_sym_EQ_GT,
  [2308] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(396), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2316] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(398), 1,
      anon_sym_TILDE,
    ACTIONS(400), 1,
      anon_sym_TILDE_GT,
  [2326] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(368), 1,
      anon_sym_TILDE,
    ACTIONS(370), 1,
      anon_sym_TILDE_GT,
  [2336] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(352), 1,
      anon_sym_DASH,
    ACTIONS(354), 1,
      anon_sym_DASH_GT,
  [2346] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(402), 1,
      anon_sym_COLON,
    ACTIONS(404), 1,
      anon_sym_COLON_COLON,
  [2356] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(406), 1,
      anon_sym_LPAREN,
  [2363] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(408), 1,
      anon_sym_LPAREN,
  [2370] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(410), 1,
      anon_sym_RBRACK,
  [2377] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(412), 1,
      anon_sym_LPAREN,
  [2384] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(414), 1,
      anon_sym_LPAREN,
  [2391] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(416), 1,
      anon_sym_LPAREN,
  [2398] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(418), 1,
      anon_sym_RBRACK,
  [2405] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(420), 1,
      sym__backticked_text,
  [2412] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(422), 1,
      anon_sym_RBRACK,
  [2419] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(424), 1,
      sym__double_quoted_text,
  [2426] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(426), 1,
      anon_sym_RBRACK,
  [2433] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(428), 1,
      sym__single_quoted_text,
  [2440] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(430), 1,
      anon_sym_RBRACK,
  [2447] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(432), 1,
      anon_sym_DQUOTE,
  [2454] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(434), 1,
      anon_sym_RPAREN,
  [2461] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(436), 1,
      anon_sym_RPAREN,
  [2468] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(438), 1,
      anon_sym_BQUOTE,
  [2475] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(440), 1,
      ts_builtin_sym_end,
  [2482] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(442), 1,
      anon_sym_RBRACK,
  [2489] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(444), 1,
      sym_symbol,
  [2496] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(446), 1,
      anon_sym_LPAREN,
  [2503] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(448), 1,
      anon_sym_LPAREN,
  [2510] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(450), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [2517] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(452), 1,
      anon_sym_COLON,
  [2524] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(454), 1,
      anon_sym_LPAREN,
  [2531] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(456), 1,
      anon_sym_LPAREN,
  [2538] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(458), 1,
      anon_sym_LPAREN,
  [2545] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(456), 1,
      anon_sym_LPAREN,
  [2552] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(458), 1,
      anon_sym_LPAREN,
  [2559] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(456), 1,
      anon_sym_LPAREN,
  [2566] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(406), 1,
      anon_sym_LPAREN,
  [2573] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(460), 1,
      anon_sym_LPAREN,
  [2580] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(406), 1,
      anon_sym_LPAREN,
  [2587] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(460), 1,
      anon_sym_LPAREN,
  [2594] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(462), 1,
      sym__backticked_text,
  [2601] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(460), 1,
      anon_sym_LPAREN,
  [2608] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(464), 1,
      anon_sym_LPAREN,
  [2615] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(466), 1,
      anon_sym_BQUOTE,
  [2622] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(468), 1,
      anon_sym_DQUOTE,
  [2629] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(470), 1,
      anon_sym_SQUOTE,
  [2636] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(472), 1,
      anon_sym_LF,
  [2643] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(474), 1,
      anon_sym_RBRACK,
  [2650] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(476), 1,
      sym__double_quoted_text,
  [2657] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(478), 1,
      anon_sym_BQUOTE,
  [2664] = 2,
    ACTIONS(322), 1,
      sym_comment,
    ACTIONS(480), 1,
      sym__backticked_text,
  [2671] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(482), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [2678] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(484), 1,
      anon_sym_RBRACK,
  [2685] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(486), 1,
      anon_sym_LPAREN,
  [2692] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(458), 1,
      anon_sym_LPAREN,
};

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)] = 341,
  [SMALL_STATE(9)] = 379,
  [SMALL_STATE(10)] = 418,
  [SMALL_STATE(11)] = 457,
  [SMALL_STATE(12)] = 496,
  [SMALL_STATE(13)] = 535,
  [SMALL_STATE(14)] = 578,
  [SMALL_STATE(15)] = 618,
  [SMALL_STATE(16)] = 658,
  [SMALL_STATE(17)] = 692,
  [SMALL_STATE(18)] = 732,
  [SMALL_STATE(19)] = 772,
  [SMALL_STATE(20)] = 812,
  [SMALL_STATE(21)] = 852,
  [SMALL_STATE(22)] = 892,
  [SMALL_STATE(23)] = 926,
  [SMALL_STATE(24)] = 947,
  [SMALL_STATE(25)] = 968,
  [SMALL_STATE(26)] = 999,
  [SMALL_STATE(27)] = 1022,
  [SMALL_STATE(28)] = 1045,
  [SMALL_STATE(29)] = 1073,
  [SMALL_STATE(30)] = 1091,
  [SMALL_STATE(31)] = 1119,
  [SMALL_STATE(32)] = 1136,
  [SMALL_STATE(33)] = 1152,
  [SMALL_STATE(34)] = 1174,
  [SMALL_STATE(35)] = 1198,
  [SMALL_STATE(36)] = 1214,
  [SMALL_STATE(37)] = 1230,
  [SMALL_STATE(38)] = 1254,
  [SMALL_STATE(39)] = 1269,
  [SMALL_STATE(40)] = 1284,
  [SMALL_STATE(41)] = 1299,
  [SMALL_STATE(42)] = 1314,
  [SMALL_STATE(43)] = 1335,
  [SMALL_STATE(44)] = 1356,
  [SMALL_STATE(45)] = 1371,
  [SMALL_STATE(46)] = 1389,
  [SMALL_STATE(47)] = 1405,
  [SMALL_STATE(48)] = 1421,
  [SMALL_STATE(49)] = 1436,
  [SMALL_STATE(50)] = 1449,
  [SMALL_STATE(51)] = 1464,
  [SMALL_STATE(52)] = 1479,
  [SMALL_STATE(53)] = 1494,
  [SMALL_STATE(54)] = 1509,
  [SMALL_STATE(55)] = 1524,
  [SMALL_STATE(56)] = 1539,
  [SMALL_STATE(57)] = 1554,
  [SMALL_STATE(58)] = 1568,
  [SMALL_STATE(59)] = 1578,
  [SMALL_STATE(60)] = 1590,
  [SMALL_STATE(61)] = 1600,
  [SMALL_STATE(62)] = 1610,
  [SMALL_STATE(63)] = 1620,
  [SMALL_STATE(64)] = 1630,
  [SMALL_STATE(65)] = 1642,
  [SMALL_STATE(66)] = 1652,
  [SMALL_STATE(67)] = 1662,
  [SMALL_STATE(68)] = 1672,
  [SMALL_STATE(69)] = 1682,
  [SMALL_STATE(70)] = 1692,
  [SMALL_STATE(71)] = 1702,
  [SMALL_STATE(72)] = 1712,
  [SMALL_STATE(73)] = 1722,
  [SMALL_STATE(74)] = 1732,
  [SMALL_STATE(75)] = 1742,
  [SMALL_STATE(76)] = 1752,
  [SMALL_STATE(77)] = 1762,
  [SMALL_STATE(78)] = 1771,
  [SMALL_STATE(79)] = 1780,
  [SMALL_STATE(80)] = 1793,
  [SMALL_STATE(81)] = 1806,
  [SMALL_STATE(82)] = 1819,
  [SMALL_STATE(83)] = 1832,
  [SMALL_STATE(84)] = 1845,
  [SMALL_STATE(85)] = 1854,
  [SMALL_STATE(86)] = 1863,
  [SMALL_STATE(87)] = 1876,
  [SMALL_STATE(88)] = 1889,
  [SMALL_STATE(89)] = 1898,
  [SMALL_STATE(90)] = 1907,
  [SMALL_STATE(91)] = 1920,
  [SMALL_STATE(92)] = 1929,
  [SMALL_STATE(93)] = 1938,
  [SMALL_STATE(94)] = 1951,
  [SMALL_STATE(95)] = 1960,
  [SMALL_STATE(96)] = 1973,
  [SMALL_STATE(97)] = 1986,
  [SMALL_STATE(98)] = 1999,
  [SMALL_STATE(99)] = 2012,
  [SMALL_STATE(100)] = 2025,
  [SMALL_STATE(101)] = 2038,
  [SMALL_STATE(102)] = 2051,
  [SMALL_STATE(103)] = 2060,
  [SMALL_STATE(104)] = 2073,
  [SMALL_STATE(105)] = 2082,
  [SMALL_STATE(106)] = 2095,
  [SMALL_STATE(107)] = 2108,
  [SMALL_STATE(108)] = 2117,
  [SMALL_STATE(109)] = 2130,
  [SMALL_STATE(110)] = 2140,
  [SMALL_STATE(111)] = 2150,
  [SMALL_STATE(112)] = 2160,
  [SMALL_STATE(113)] = 2170,
  [SMALL_STATE(114)] = 2178,
  [SMALL_STATE(115)] = 2188,
  [SMALL_STATE(116)] = 2196,
  [SMALL_STATE(117)] = 2204,
  [SMALL_STATE(118)] = 2214,
  [SMALL_STATE(119)] = 2224,
  [SMALL_STATE(120)] = 2234,
  [SMALL_STATE(121)] = 2242,
  [SMALL_STATE(122)] = 2252,
  [SMALL_STATE(123)] = 2260,
  [SMALL_STATE(124)] = 2270,
  [SMALL_STATE(125)] = 2280,
  [SMALL_STATE(126)] = 2288,
  [SMALL_STATE(127)] = 2298,
  [SMALL_STATE(128)] = 2308,
  [SMALL_STATE(129)] = 2316,
  [SMALL_STATE(130)] = 2326,
  [SMALL_STATE(131)] = 2336,
  [SMALL_STATE(132)] = 2346,
  [SMALL_STATE(133)] = 2356,
  [SMALL_STATE(134)] = 2363,
  [SMALL_STATE(135)] = 2370,
  [SMALL_STATE(136)] = 2377,
  [SMALL_STATE(137)] = 2384,
  [SMALL_STATE(138)] = 2391,
  [SMALL_STATE(139)] = 2398,
  [SMALL_STATE(140)] = 2405,
  [SMALL_STATE(141)] = 2412,
  [SMALL_STATE(142)] = 2419,
  [SMALL_STATE(143)] = 2426,
  [SMALL_STATE(144)] = 2433,
  [SMALL_STATE(145)] = 2440,
  [SMALL_STATE(146)] = 2447,
  [SMALL_STATE(147)] = 2454,
  [SMALL_STATE(148)] = 2461,
  [SMALL_STATE(149)] = 2468,
  [SMALL_STATE(150)] = 2475,
  [SMALL_STATE(151)] = 2482,
  [SMALL_STATE(152)] = 2489,
  [SMALL_STATE(153)] = 2496,
  [SMALL_STATE(154)] = 2503,
  [SMALL_STATE(155)] = 2510,
  [SMALL_STATE(156)] = 2517,
  [SMALL_STATE(157)] = 2524,
  [SMALL_STATE(158)] = 2531,
  [SMALL_STATE(159)] = 2538,
  [SMALL_STATE(160)] = 2545,
  [SMALL_STATE(161)] = 2552,
  [SMALL_STATE(162)] = 2559,
  [SMALL_STATE(163)] = 2566,
  [SMALL_STATE(164)] = 2573,
  [SMALL_STATE(165)] = 2580,
  [SMALL_STATE(166)] = 2587,
  [SMALL_STATE(167)] = 2594,
  [SMALL_STATE(168)] = 2601,
  [SMALL_STATE(169)] = 2608,
  [SMALL_STATE(170)] = 2615,
  [SMALL_STATE(171)] = 2622,
  [SMALL_STATE(172)] = 2629,
  [SMALL_STATE(173)] = 2636,
  [SMALL_STATE(174)] = 2643,
  [SMALL_STATE(175)] = 2650,
  [SMALL_STATE(176)] = 2657,
  [SMALL_STATE(177)] = 2664,
  [SMALL_STATE(178)] = 2671,
  [SMALL_STATE(179)] = 2678,
  [SMALL_STATE(180)] = 2685,
  [SMALL_STATE(181)] = 2692,
};

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(13),
  [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(152),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
  [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
  [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59),
  [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
  [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58),
  [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
  [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
  [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [39] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64),
  [41] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56),
  [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
  [45] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__path_pattern, 1, 0, 0),
  [47] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__path_pattern, 1, 0, 0),
  [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
  [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82),
  [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90),
  [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
  [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100),
  [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__top_level_pattern, 1, 0, 0),
  [63] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__top_level_pattern, 1, 0, 0),
  [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 2, 0, 1),
  [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 1, 0, 1),
  [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0),
  [71] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(13),
  [74] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(152),
  [77] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(14),
  [80] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(28),
  [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram_pattern, 1, 0, 0),
  [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22),
  [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44),
  [89] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97),
  [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97),
  [93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
  [95] = {.entry = {.count = 1, .reusable = true}}, SHIFT(177),
  [97] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
  [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117),
  [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
  [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131),
  [109] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
  [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [113] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node_pattern, 3, 0, 10),
  [115] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_node_pattern, 3, 0, 10),
  [117] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node_pattern, 2, 0, 0),
  [119] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_node_pattern, 2, 0, 0),
  [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0),
  [123] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(97),
  [126] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(97),
  [129] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labels, 1, 0, 0),
  [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [133] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_name, 3, 0, 15),
  [135] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_name, 3, 0, 15),
  [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 2),
  [139] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__label, 2, 0, 0),
  [141] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__label, 2, 0, 0),
  [143] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 3, 0, 0),
  [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record, 3, 0, 0),
  [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identified_annotation, 2, 0, 5),
  [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156),
  [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(175),
  [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 2, 0, 0),
  [157] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record, 2, 0, 0),
  [159] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 4, 0, 0),
  [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_record, 4, 0, 0),
  [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
  [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121),
  [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 5, 0, 19),
  [169] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_subject_pattern, 5, 0, 19),
  [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 3, 0, 10),
  [173] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_subject_pattern, 3, 0, 10),
  [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_relationship_pattern, 3, 0, 13),
  [177] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_relationship_pattern, 3, 0, 13),
  [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 4, 0, 14),
  [181] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_subject_pattern, 4, 0, 14),
  [183] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern, 2, 0, 0),
  [185] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_subject_pattern, 2, 0, 0),
  [187] = {.entry = {.count = 1, .reusable = false}}, SHIFT(65),
  [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
  [191] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72),
  [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72),
  [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__value, 1, 0, 0),
  [197] = {.entry = {.count = 1, .reusable = false}}, SHIFT(47),
  [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
  [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotated_pattern, 2, 0, 7),
  [203] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_annotated_pattern, 2, 0, 7),
  [205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 3),
  [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotations, 2, 0, 0),
  [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
  [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 8),
  [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotations, 1, 0, 0),
  [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0),
  [217] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0), SHIFT_REPEAT(152),
  [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__scalar_value, 1, 0, 0),
  [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1, 0, 0),
  [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
  [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string_literal, 1, 0, 17),
  [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 20),
  [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string, 2, 0, 21),
  [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 23),
  [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__backticked_string, 3, 0, 15),
  [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__double_quoted_string, 3, 0, 15),
  [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__single_quoted_string, 3, 0, 15),
  [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 2, 0, 0),
  [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 3, 0, 24),
  [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 26),
  [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 27),
  [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 3, 0, 15),
  [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 5, 0, 28),
  [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 4, 0, 0),
  [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 9),
  [256] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0), SHIFT_REPEAT(43),
  [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0),
  [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_subject_pattern_elements_repeat1, 2, 0, 0),
  [263] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_subject_pattern_elements_repeat1, 2, 0, 0), SHIFT_REPEAT(25),
  [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern_elements, 2, 0, 0),
  [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
  [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
  [272] = {.entry = {.count = 1, .reusable = false}}, SHIFT(154),
  [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169),
  [276] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
  [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 3, 0, 16),
  [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 2, 0, 0),
  [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42),
  [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94),
  [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject_pattern_elements, 1, 0, 0),
  [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_property_annotation, 5, 0, 22),
  [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identified_annotation, 2, 0, 6),
  [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18),
  [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0),
  [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 2, 0, 11),
  [300] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 3, 0, 0),
  [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
  [306] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
  [308] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
  [310] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [312] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
  [314] = {.entry = {.count = 1, .reusable = false}}, SHIFT(134),
  [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136),
  [318] = {.entry = {.count = 1, .reusable = false}}, SHIFT(173),
  [320] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
  [322] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [324] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
  [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
  [328] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4, 0, 0),
  [330] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0),
  [332] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(5),
  [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identified_annotation, 3, 0, 12),
  [337] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(42),
  [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0),
  [342] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
  [344] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__subject, 1, 0, 4),
  [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [348] = {.entry = {.count = 1, .reusable = false}}, SHIFT(181),
  [350] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
  [352] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137),
  [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138),
  [356] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [358] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [360] = {.entry = {.count = 1, .reusable = false}}, SHIFT(71),
  [362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(155),
  [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_reference, 1, 0, 2),
  [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record_property, 3, 0, 18),
  [368] = {.entry = {.count = 1, .reusable = false}}, SHIFT(180),
  [370] = {.entry = {.count = 1, .reusable = true}}, SHIFT(157),
  [372] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74),
  [374] = {.entry = {.count = 1, .reusable = true}}, SHIFT(178),
  [376] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
  [378] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [380] = {.entry = {.count = 1, .reusable = false}}, SHIFT(159),
  [382] = {.entry = {.count = 1, .reusable = true}}, SHIFT(160),
  [384] = {.entry = {.count = 1, .reusable = false}}, SHIFT(161),
  [386] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
  [388] = {.entry = {.count = 1, .reusable = false}}, SHIFT(163),
  [390] = {.entry = {.count = 1, .reusable = true}}, SHIFT(164),
  [392] = {.entry = {.count = 1, .reusable = false}}, SHIFT(165),
  [394] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166),
  [396] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_entry, 3, 0, 18),
  [398] = {.entry = {.count = 1, .reusable = false}}, SHIFT(133),
  [400] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168),
  [402] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_double_quoted_name, 3, 0, 15),
  [404] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_double_quoted_name, 3, 0, 15),
  [406] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 5, 0, 25),
  [408] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 2, 0, 0),
  [410] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123),
  [412] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 2, 0, 0),
  [414] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 4, 0, 0),
  [416] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 4, 0, 0),
  [418] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
  [420] = {.entry = {.count = 1, .reusable = false}}, SHIFT(170),
  [422] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126),
  [424] = {.entry = {.count = 1, .reusable = false}}, SHIFT(171),
  [426] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127),
  [428] = {.entry = {.count = 1, .reusable = false}}, SHIFT(172),
  [430] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129),
  [432] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132),
  [434] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
  [436] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
  [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [440] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
  [444] = {.entry = {.count = 1, .reusable = true}}, SHIFT(153),
  [446] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
  [448] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 2, 0, 0),
  [450] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75),
  [452] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
  [454] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 4, 0, 0),
  [456] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 5, 0, 25),
  [458] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 5, 0, 25),
  [460] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 5, 0, 25),
  [462] = {.entry = {.count = 1, .reusable = false}}, SHIFT(149),
  [464] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 2, 0, 0),
  [466] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68),
  [468] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [470] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
  [472] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
  [474] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [476] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146),
  [478] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
  [480] = {.entry = {.count = 1, .reusable = false}}, SHIFT(176),
  [482] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76),
  [484] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109),
  [486] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 4, 0, 0),
};

#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 = 3,
      .patch_version = 5,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
