/* Automatically @generated by tree-sitter v0.25.10 */

#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 220
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 86
#define ALIAS_COUNT 0
#define TOKEN_COUNT 40
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 17
#define MAX_ALIAS_SEQUENCE_LENGTH 6
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 33
#define SUPERTYPE_COUNT 0

enum ts_symbol_identifiers {
  anon_sym_COMMA = 1,
  anon_sym_LBRACK = 2,
  anon_sym_PIPE = 3,
  anon_sym_RBRACK = 4,
  anon_sym_AT = 5,
  anon_sym_LPAREN = 6,
  anon_sym_RPAREN = 7,
  anon_sym_COLON = 8,
  anon_sym_COLON_COLON = 9,
  anon_sym_LBRACE = 10,
  anon_sym_RBRACE = 11,
  sym_symbol = 12,
  anon_sym_DOT_DOT = 13,
  anon_sym_DOT_DOT_DOT = 14,
  anon_sym_true = 15,
  anon_sym_false = 16,
  sym_integer = 17,
  sym_decimal = 18,
  sym_hexadecimal = 19,
  sym_octal = 20,
  sym_measurement = 21,
  anon_sym_SQUOTE = 22,
  sym__single_quoted_text = 23,
  anon_sym_DQUOTE = 24,
  sym__double_quoted_text = 25,
  anon_sym_BQUOTE = 26,
  sym__backticked_text = 27,
  anon_sym_BQUOTE_BQUOTE_BQUOTE = 28,
  anon_sym_LF = 29,
  sym__fenced_string_content = 30,
  anon_sym_DASH = 31,
  anon_sym_EQ = 32,
  anon_sym_TILDE = 33,
  anon_sym_DASH_GT = 34,
  anon_sym_EQ_GT = 35,
  anon_sym_TILDE_GT = 36,
  anon_sym_LT_DASH = 37,
  anon_sym_LT_EQ = 38,
  anon_sym_LT_TILDE = 39,
  sym_gram = 40,
  sym_pattern = 41,
  sym__pattern_element = 42,
  sym_subject = 43,
  sym_sub_pattern = 44,
  sym__sub_pattern_element = 45,
  sym_annotations = 46,
  sym_annotation = 47,
  sym__path = 48,
  sym_node = 49,
  sym_relationship = 50,
  sym_reference = 51,
  sym__identifier = 52,
  sym__attributes = 53,
  sym__value = 54,
  sym__scalar_value = 55,
  sym_array = 56,
  sym_labels = 57,
  sym__label = 58,
  sym_record = 59,
  sym_property = 60,
  sym_map = 61,
  sym_mapping = 62,
  sym_range = 63,
  sym_boolean_literal = 64,
  sym__numeric_literal = 65,
  sym_string_literal = 66,
  sym__single_quoted_string = 67,
  sym__double_quoted_string = 68,
  sym__backticked_string = 69,
  sym__fenced_string = 70,
  sym__fenced_string_body = 71,
  sym_tagged_string = 72,
  sym__relationship_kind = 73,
  sym_undirected_arrow = 74,
  sym_right_arrow = 75,
  sym_left_arrow = 76,
  sym_bidirectional_arrow = 77,
  aux_sym_gram_repeat1 = 78,
  aux_sym_pattern_repeat1 = 79,
  aux_sym_sub_pattern_repeat1 = 80,
  aux_sym_annotations_repeat1 = 81,
  aux_sym_array_repeat1 = 82,
  aux_sym_labels_repeat1 = 83,
  aux_sym_record_repeat1 = 84,
  aux_sym_map_repeat1 = 85,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [anon_sym_COMMA] = ",",
  [anon_sym_LBRACK] = "[",
  [anon_sym_PIPE] = "|",
  [anon_sym_RBRACK] = "]",
  [anon_sym_AT] = "@",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_COLON] = ":",
  [anon_sym_COLON_COLON] = "::",
  [anon_sym_LBRACE] = "{",
  [anon_sym_RBRACE] = "}",
  [sym_symbol] = "symbol",
  [anon_sym_DOT_DOT] = "..",
  [anon_sym_DOT_DOT_DOT] = "...",
  [anon_sym_true] = "true",
  [anon_sym_false] = "false",
  [sym_integer] = "integer",
  [sym_decimal] = "decimal",
  [sym_hexadecimal] = "hexadecimal",
  [sym_octal] = "octal",
  [sym_measurement] = "measurement",
  [anon_sym_SQUOTE] = "'",
  [sym__single_quoted_text] = "string_content",
  [anon_sym_DQUOTE] = "\"",
  [sym__double_quoted_text] = "string_content",
  [anon_sym_BQUOTE] = "`",
  [sym__backticked_text] = "string_content",
  [anon_sym_BQUOTE_BQUOTE_BQUOTE] = "```",
  [anon_sym_LF] = "\n",
  [sym__fenced_string_content] = "string_content",
  [anon_sym_DASH] = "-",
  [anon_sym_EQ] = "=",
  [anon_sym_TILDE] = "~",
  [anon_sym_DASH_GT] = "->",
  [anon_sym_EQ_GT] = "=>",
  [anon_sym_TILDE_GT] = "~>",
  [anon_sym_LT_DASH] = "<-",
  [anon_sym_LT_EQ] = "<=",
  [anon_sym_LT_TILDE] = "<~",
  [sym_gram] = "gram",
  [sym_pattern] = "pattern",
  [sym__pattern_element] = "_pattern_element",
  [sym_subject] = "subject",
  [sym_sub_pattern] = "sub_pattern",
  [sym__sub_pattern_element] = "_sub_pattern_element",
  [sym_annotations] = "annotations",
  [sym_annotation] = "annotation",
  [sym__path] = "_path",
  [sym_node] = "node",
  [sym_relationship] = "relationship",
  [sym_reference] = "reference",
  [sym__identifier] = "_identifier",
  [sym__attributes] = "_attributes",
  [sym__value] = "_value",
  [sym__scalar_value] = "_scalar_value",
  [sym_array] = "array",
  [sym_labels] = "labels",
  [sym__label] = "_label",
  [sym_record] = "record",
  [sym_property] = "property",
  [sym_map] = "map",
  [sym_mapping] = "mapping",
  [sym_range] = "range",
  [sym_boolean_literal] = "boolean_literal",
  [sym__numeric_literal] = "_numeric_literal",
  [sym_string_literal] = "string_literal",
  [sym__single_quoted_string] = "_single_quoted_string",
  [sym__double_quoted_string] = "_double_quoted_string",
  [sym__backticked_string] = "_backticked_string",
  [sym__fenced_string] = "_fenced_string",
  [sym__fenced_string_body] = "_fenced_string_body",
  [sym_tagged_string] = "tagged_string",
  [sym__relationship_kind] = "_relationship_kind",
  [sym_undirected_arrow] = "undirected_arrow",
  [sym_right_arrow] = "right_arrow",
  [sym_left_arrow] = "left_arrow",
  [sym_bidirectional_arrow] = "bidirectional_arrow",
  [aux_sym_gram_repeat1] = "gram_repeat1",
  [aux_sym_pattern_repeat1] = "pattern_repeat1",
  [aux_sym_sub_pattern_repeat1] = "sub_pattern_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_COMMA] = anon_sym_COMMA,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_PIPE] = anon_sym_PIPE,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [anon_sym_AT] = anon_sym_AT,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_COLON] = anon_sym_COLON,
  [anon_sym_COLON_COLON] = anon_sym_COLON_COLON,
  [anon_sym_LBRACE] = anon_sym_LBRACE,
  [anon_sym_RBRACE] = anon_sym_RBRACE,
  [sym_symbol] = sym_symbol,
  [anon_sym_DOT_DOT] = anon_sym_DOT_DOT,
  [anon_sym_DOT_DOT_DOT] = anon_sym_DOT_DOT_DOT,
  [anon_sym_true] = anon_sym_true,
  [anon_sym_false] = anon_sym_false,
  [sym_integer] = sym_integer,
  [sym_decimal] = sym_decimal,
  [sym_hexadecimal] = sym_hexadecimal,
  [sym_octal] = sym_octal,
  [sym_measurement] = sym_measurement,
  [anon_sym_SQUOTE] = anon_sym_SQUOTE,
  [sym__single_quoted_text] = sym__single_quoted_text,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [sym__double_quoted_text] = sym__single_quoted_text,
  [anon_sym_BQUOTE] = anon_sym_BQUOTE,
  [sym__backticked_text] = sym__single_quoted_text,
  [anon_sym_BQUOTE_BQUOTE_BQUOTE] = anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [anon_sym_LF] = anon_sym_LF,
  [sym__fenced_string_content] = sym__single_quoted_text,
  [anon_sym_DASH] = anon_sym_DASH,
  [anon_sym_EQ] = anon_sym_EQ,
  [anon_sym_TILDE] = anon_sym_TILDE,
  [anon_sym_DASH_GT] = anon_sym_DASH_GT,
  [anon_sym_EQ_GT] = anon_sym_EQ_GT,
  [anon_sym_TILDE_GT] = anon_sym_TILDE_GT,
  [anon_sym_LT_DASH] = anon_sym_LT_DASH,
  [anon_sym_LT_EQ] = anon_sym_LT_EQ,
  [anon_sym_LT_TILDE] = anon_sym_LT_TILDE,
  [sym_gram] = sym_gram,
  [sym_pattern] = sym_pattern,
  [sym__pattern_element] = sym__pattern_element,
  [sym_subject] = sym_subject,
  [sym_sub_pattern] = sym_sub_pattern,
  [sym__sub_pattern_element] = sym__sub_pattern_element,
  [sym_annotations] = sym_annotations,
  [sym_annotation] = sym_annotation,
  [sym__path] = sym__path,
  [sym_node] = sym_node,
  [sym_relationship] = sym_relationship,
  [sym_reference] = sym_reference,
  [sym__identifier] = sym__identifier,
  [sym__attributes] = sym__attributes,
  [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_property] = sym_property,
  [sym_map] = sym_map,
  [sym_mapping] = sym_mapping,
  [sym_range] = sym_range,
  [sym_boolean_literal] = sym_boolean_literal,
  [sym__numeric_literal] = sym__numeric_literal,
  [sym_string_literal] = sym_string_literal,
  [sym__single_quoted_string] = sym__single_quoted_string,
  [sym__double_quoted_string] = sym__double_quoted_string,
  [sym__backticked_string] = sym__backticked_string,
  [sym__fenced_string] = sym__fenced_string,
  [sym__fenced_string_body] = sym__fenced_string_body,
  [sym_tagged_string] = sym_tagged_string,
  [sym__relationship_kind] = sym__relationship_kind,
  [sym_undirected_arrow] = sym_undirected_arrow,
  [sym_right_arrow] = sym_right_arrow,
  [sym_left_arrow] = sym_left_arrow,
  [sym_bidirectional_arrow] = sym_bidirectional_arrow,
  [aux_sym_gram_repeat1] = aux_sym_gram_repeat1,
  [aux_sym_pattern_repeat1] = aux_sym_pattern_repeat1,
  [aux_sym_sub_pattern_repeat1] = aux_sym_sub_pattern_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_COMMA] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PIPE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [sym_symbol] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DOT_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT_DOT_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_true] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_false] = {
    .visible = true,
    .named = false,
  },
  [sym_integer] = {
    .visible = true,
    .named = true,
  },
  [sym_decimal] = {
    .visible = true,
    .named = true,
  },
  [sym_hexadecimal] = {
    .visible = true,
    .named = true,
  },
  [sym_octal] = {
    .visible = true,
    .named = true,
  },
  [sym_measurement] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_SQUOTE] = {
    .visible = true,
    .named = false,
  },
  [sym__single_quoted_text] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [sym__double_quoted_text] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_BQUOTE] = {
    .visible = true,
    .named = false,
  },
  [sym__backticked_text] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_BQUOTE_BQUOTE_BQUOTE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LF] = {
    .visible = true,
    .named = false,
  },
  [sym__fenced_string_content] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_TILDE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_TILDE_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_TILDE] = {
    .visible = true,
    .named = false,
  },
  [sym_gram] = {
    .visible = true,
    .named = true,
  },
  [sym_pattern] = {
    .visible = true,
    .named = true,
  },
  [sym__pattern_element] = {
    .visible = false,
    .named = true,
  },
  [sym_subject] = {
    .visible = true,
    .named = true,
  },
  [sym_sub_pattern] = {
    .visible = true,
    .named = true,
  },
  [sym__sub_pattern_element] = {
    .visible = false,
    .named = true,
  },
  [sym_annotations] = {
    .visible = true,
    .named = true,
  },
  [sym_annotation] = {
    .visible = true,
    .named = true,
  },
  [sym__path] = {
    .visible = false,
    .named = true,
  },
  [sym_node] = {
    .visible = true,
    .named = true,
  },
  [sym_relationship] = {
    .visible = true,
    .named = true,
  },
  [sym_reference] = {
    .visible = true,
    .named = true,
  },
  [sym__identifier] = {
    .visible = false,
    .named = true,
  },
  [sym__attributes] = {
    .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_property] = {
    .visible = true,
    .named = true,
  },
  [sym_map] = {
    .visible = true,
    .named = true,
  },
  [sym_mapping] = {
    .visible = true,
    .named = true,
  },
  [sym_range] = {
    .visible = true,
    .named = true,
  },
  [sym_boolean_literal] = {
    .visible = true,
    .named = true,
  },
  [sym__numeric_literal] = {
    .visible = false,
    .named = true,
  },
  [sym_string_literal] = {
    .visible = true,
    .named = true,
  },
  [sym__single_quoted_string] = {
    .visible = false,
    .named = true,
  },
  [sym__double_quoted_string] = {
    .visible = false,
    .named = true,
  },
  [sym__backticked_string] = {
    .visible = false,
    .named = true,
  },
  [sym__fenced_string] = {
    .visible = false,
    .named = true,
  },
  [sym__fenced_string_body] = {
    .visible = false,
    .named = true,
  },
  [sym_tagged_string] = {
    .visible = true,
    .named = true,
  },
  [sym__relationship_kind] = {
    .visible = false,
    .named = true,
  },
  [sym_undirected_arrow] = {
    .visible = true,
    .named = true,
  },
  [sym_right_arrow] = {
    .visible = true,
    .named = true,
  },
  [sym_left_arrow] = {
    .visible = true,
    .named = true,
  },
  [sym_bidirectional_arrow] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_gram_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_pattern_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_sub_pattern_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_attributes = 2,
  field_content = 3,
  field_elements = 4,
  field_identifier = 5,
  field_key = 6,
  field_kind = 7,
  field_labels = 8,
  field_left = 9,
  field_lower = 10,
  field_pattern = 11,
  field_record = 12,
  field_right = 13,
  field_root = 14,
  field_tag = 15,
  field_upper = 16,
  field_value = 17,
};

static const char * const ts_field_names[] = {
  [0] = NULL,
  [field_annotations] = "annotations",
  [field_attributes] = "attributes",
  [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_pattern] = "pattern",
  [field_record] = "record",
  [field_right] = "right",
  [field_root] = "root",
  [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 = 1},
  [10] = {.index = 11, .length = 2},
  [11] = {.index = 13, .length = 2},
  [12] = {.index = 15, .length = 4},
  [13] = {.index = 19, .length = 2},
  [14] = {.index = 21, .length = 1},
  [15] = {.index = 22, .length = 3},
  [16] = {.index = 25, .length = 3},
  [17] = {.index = 28, .length = 2},
  [18] = {.index = 30, .length = 1},
  [19] = {.index = 31, .length = 3},
  [20] = {.index = 34, .length = 5},
  [21] = {.index = 39, .length = 2},
  [22] = {.index = 41, .length = 6},
  [23] = {.index = 47, .length = 1},
  [24] = {.index = 48, .length = 2},
  [25] = {.index = 50, .length = 1},
  [26] = {.index = 51, .length = 2},
  [27] = {.index = 53, .length = 1},
  [28] = {.index = 54, .length = 4},
  [29] = {.index = 58, .length = 2},
  [30] = {.index = 60, .length = 1},
  [31] = {.index = 61, .length = 5},
  [32] = {.index = 66, .length = 2},
};

static const TSFieldMapEntry ts_field_map_entries[] = {
  [0] =
    {field_elements, 0},
  [1] =
    {field_root, 0},
  [2] =
    {field_identifier, 0},
  [3] =
    {field_labels, 0},
  [4] =
    {field_record, 0},
  [5] =
    {field_content, 0, .inherited = true},
  [6] =
    {field_elements, 0},
    {field_elements, 1},
  [8] =
    {field_annotations, 0},
    {field_elements, 1},
  [10] =
    {field_content, 1, .inherited = true},
  [11] =
    {field_identifier, 0},
    {field_labels, 1},
  [13] =
    {field_identifier, 0},
    {field_record, 1},
  [15] =
    {field_attributes, 1},
    {field_identifier, 1, .inherited = true},
    {field_labels, 1, .inherited = true},
    {field_record, 1, .inherited = true},
  [19] =
    {field_labels, 0},
    {field_record, 1},
  [21] =
    {field_annotations, 1},
  [22] =
    {field_annotations, 0},
    {field_elements, 1},
    {field_elements, 2},
  [25] =
    {field_kind, 1},
    {field_left, 0},
    {field_right, 2},
  [28] =
    {field_pattern, 1},
    {field_pattern, 2},
  [30] =
    {field_content, 1},
  [31] =
    {field_identifier, 0},
    {field_labels, 1},
    {field_record, 2},
  [34] =
    {field_annotations, 1},
    {field_attributes, 2},
    {field_identifier, 2, .inherited = true},
    {field_labels, 2, .inherited = true},
    {field_record, 2, .inherited = true},
  [39] =
    {field_key, 0},
    {field_value, 2},
  [41] =
    {field_attributes, 1},
    {field_identifier, 1, .inherited = true},
    {field_labels, 1, .inherited = true},
    {field_pattern, 2},
    {field_pattern, 3},
    {field_record, 1, .inherited = true},
  [47] =
    {field_upper, 1},
  [48] =
    {field_key, 1},
    {field_value, 3},
  [50] =
    {field_lower, 0},
  [51] =
    {field_lower, 0},
    {field_upper, 2},
  [53] =
    {field_annotations, 2},
  [54] =
    {field_attributes, 2},
    {field_identifier, 2, .inherited = true},
    {field_labels, 2, .inherited = true},
    {field_record, 2, .inherited = true},
  [58] =
    {field_content, 2},
    {field_tag, 0},
  [60] =
    {field_tag, 1},
  [61] =
    {field_annotations, 2},
    {field_attributes, 3},
    {field_identifier, 3, .inherited = true},
    {field_labels, 3, .inherited = true},
    {field_record, 3, .inherited = true},
  [66] =
    {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,
  [182] = 182,
  [183] = 183,
  [184] = 184,
  [185] = 185,
  [186] = 186,
  [187] = 187,
  [188] = 188,
  [189] = 189,
  [190] = 190,
  [191] = 191,
  [192] = 192,
  [193] = 193,
  [194] = 194,
  [195] = 195,
  [196] = 196,
  [197] = 197,
  [198] = 198,
  [199] = 199,
  [200] = 200,
  [201] = 201,
  [202] = 202,
  [203] = 203,
  [204] = 204,
  [205] = 205,
  [206] = 206,
  [207] = 207,
  [208] = 208,
  [209] = 209,
  [210] = 210,
  [211] = 211,
  [212] = 212,
  [213] = 213,
  [214] = 214,
  [215] = 215,
  [216] = 216,
  [217] = 217,
  [218] = 218,
  [219] = 219,
};

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

static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 0},
  [2] = {.lex_state = 3},
  [3] = {.lex_state = 3},
  [4] = {.lex_state = 2},
  [5] = {.lex_state = 2},
  [6] = {.lex_state = 2},
  [7] = {.lex_state = 2},
  [8] = {.lex_state = 2},
  [9] = {.lex_state = 2},
  [10] = {.lex_state = 2},
  [11] = {.lex_state = 3},
  [12] = {.lex_state = 3},
  [13] = {.lex_state = 3},
  [14] = {.lex_state = 2},
  [15] = {.lex_state = 2},
  [16] = {.lex_state = 2},
  [17] = {.lex_state = 2},
  [18] = {.lex_state = 2},
  [19] = {.lex_state = 2},
  [20] = {.lex_state = 2},
  [21] = {.lex_state = 2},
  [22] = {.lex_state = 2},
  [23] = {.lex_state = 2},
  [24] = {.lex_state = 2},
  [25] = {.lex_state = 20},
  [26] = {.lex_state = 2},
  [27] = {.lex_state = 2},
  [28] = {.lex_state = 2},
  [29] = {.lex_state = 0},
  [30] = {.lex_state = 0},
  [31] = {.lex_state = 2},
  [32] = {.lex_state = 0},
  [33] = {.lex_state = 2},
  [34] = {.lex_state = 0},
  [35] = {.lex_state = 2},
  [36] = {.lex_state = 2},
  [37] = {.lex_state = 20},
  [38] = {.lex_state = 20},
  [39] = {.lex_state = 20},
  [40] = {.lex_state = 20},
  [41] = {.lex_state = 0},
  [42] = {.lex_state = 0},
  [43] = {.lex_state = 0},
  [44] = {.lex_state = 0},
  [45] = {.lex_state = 0},
  [46] = {.lex_state = 0},
  [47] = {.lex_state = 0},
  [48] = {.lex_state = 0},
  [49] = {.lex_state = 0},
  [50] = {.lex_state = 0},
  [51] = {.lex_state = 0},
  [52] = {.lex_state = 0},
  [53] = {.lex_state = 0},
  [54] = {.lex_state = 0},
  [55] = {.lex_state = 0},
  [56] = {.lex_state = 0},
  [57] = {.lex_state = 0},
  [58] = {.lex_state = 0},
  [59] = {.lex_state = 3},
  [60] = {.lex_state = 3},
  [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 = 1},
  [93] = {.lex_state = 0},
  [94] = {.lex_state = 0},
  [95] = {.lex_state = 20},
  [96] = {.lex_state = 0},
  [97] = {.lex_state = 0},
  [98] = {.lex_state = 0},
  [99] = {.lex_state = 20},
  [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 = 0},
  [109] = {.lex_state = 0},
  [110] = {.lex_state = 0},
  [111] = {.lex_state = 0},
  [112] = {.lex_state = 0},
  [113] = {.lex_state = 0},
  [114] = {.lex_state = 0},
  [115] = {.lex_state = 0},
  [116] = {.lex_state = 20},
  [117] = {.lex_state = 1},
  [118] = {.lex_state = 20},
  [119] = {.lex_state = 20},
  [120] = {.lex_state = 0},
  [121] = {.lex_state = 0},
  [122] = {.lex_state = 0},
  [123] = {.lex_state = 0},
  [124] = {.lex_state = 20},
  [125] = {.lex_state = 20},
  [126] = {.lex_state = 0},
  [127] = {.lex_state = 0},
  [128] = {.lex_state = 0},
  [129] = {.lex_state = 0},
  [130] = {.lex_state = 12},
  [131] = {.lex_state = 0},
  [132] = {.lex_state = 0},
  [133] = {.lex_state = 0},
  [134] = {.lex_state = 20},
  [135] = {.lex_state = 12},
  [136] = {.lex_state = 0},
  [137] = {.lex_state = 20},
  [138] = {.lex_state = 0},
  [139] = {.lex_state = 0},
  [140] = {.lex_state = 20},
  [141] = {.lex_state = 0},
  [142] = {.lex_state = 0},
  [143] = {.lex_state = 0},
  [144] = {.lex_state = 0},
  [145] = {.lex_state = 0},
  [146] = {.lex_state = 0},
  [147] = {.lex_state = 0},
  [148] = {.lex_state = 0},
  [149] = {.lex_state = 0},
  [150] = {.lex_state = 0},
  [151] = {.lex_state = 0},
  [152] = {.lex_state = 0},
  [153] = {.lex_state = 0},
  [154] = {.lex_state = 0},
  [155] = {.lex_state = 0},
  [156] = {.lex_state = 0},
  [157] = {.lex_state = 0},
  [158] = {.lex_state = 0},
  [159] = {.lex_state = 0},
  [160] = {.lex_state = 0},
  [161] = {.lex_state = 59},
  [162] = {.lex_state = 0},
  [163] = {.lex_state = 0},
  [164] = {.lex_state = 0},
  [165] = {.lex_state = 0},
  [166] = {.lex_state = 0},
  [167] = {.lex_state = 0},
  [168] = {.lex_state = 0},
  [169] = {.lex_state = 0},
  [170] = {.lex_state = 0},
  [171] = {.lex_state = 0},
  [172] = {.lex_state = 61},
  [173] = {.lex_state = 0},
  [174] = {.lex_state = 0},
  [175] = {.lex_state = 0},
  [176] = {.lex_state = 1},
  [177] = {.lex_state = 0},
  [178] = {.lex_state = 0},
  [179] = {.lex_state = 61},
  [180] = {.lex_state = 0},
  [181] = {.lex_state = 0},
  [182] = {.lex_state = 2},
  [183] = {.lex_state = 0},
  [184] = {.lex_state = 0},
  [185] = {.lex_state = 0},
  [186] = {.lex_state = 0},
  [187] = {.lex_state = 0},
  [188] = {.lex_state = 0},
  [189] = {.lex_state = 0},
  [190] = {.lex_state = 0},
  [191] = {.lex_state = 0},
  [192] = {.lex_state = 0},
  [193] = {.lex_state = 0},
  [194] = {.lex_state = 0},
  [195] = {.lex_state = 0},
  [196] = {.lex_state = 0},
  [197] = {.lex_state = 0},
  [198] = {.lex_state = 0},
  [199] = {.lex_state = 0},
  [200] = {.lex_state = 0},
  [201] = {.lex_state = 0},
  [202] = {.lex_state = 57},
  [203] = {.lex_state = 0},
  [204] = {.lex_state = 2},
  [205] = {.lex_state = 0},
  [206] = {.lex_state = 0},
  [207] = {.lex_state = 0},
  [208] = {.lex_state = 0},
  [209] = {.lex_state = 0},
  [210] = {.lex_state = 0},
  [211] = {.lex_state = 0},
  [212] = {.lex_state = 0},
  [213] = {.lex_state = 0},
  [214] = {.lex_state = 0},
  [215] = {.lex_state = 0},
  [216] = {.lex_state = 0},
  [217] = {.lex_state = 0},
  [218] = {.lex_state = 0},
  [219] = {.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_COMMA] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_PIPE] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_COLON] = ACTIONS(1),
    [anon_sym_COLON_COLON] = ACTIONS(1),
    [anon_sym_LBRACE] = ACTIONS(1),
    [anon_sym_RBRACE] = ACTIONS(1),
    [sym_symbol] = ACTIONS(1),
    [anon_sym_DOT_DOT] = ACTIONS(1),
    [anon_sym_DOT_DOT_DOT] = ACTIONS(1),
    [anon_sym_true] = ACTIONS(1),
    [anon_sym_false] = ACTIONS(1),
    [sym_integer] = ACTIONS(1),
    [sym_decimal] = ACTIONS(1),
    [sym_hexadecimal] = ACTIONS(1),
    [sym_octal] = ACTIONS(1),
    [sym_measurement] = ACTIONS(1),
    [anon_sym_SQUOTE] = ACTIONS(1),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [anon_sym_BQUOTE] = ACTIONS(1),
    [anon_sym_BQUOTE_BQUOTE_BQUOTE] = ACTIONS(1),
    [anon_sym_DASH] = ACTIONS(1),
    [anon_sym_EQ] = ACTIONS(1),
    [anon_sym_TILDE] = ACTIONS(1),
    [anon_sym_DASH_GT] = ACTIONS(1),
    [anon_sym_EQ_GT] = ACTIONS(1),
    [anon_sym_TILDE_GT] = ACTIONS(1),
    [anon_sym_LT_DASH] = ACTIONS(1),
    [anon_sym_LT_EQ] = ACTIONS(1),
    [anon_sym_LT_TILDE] = ACTIONS(1),
  },
  [STATE(1)] = {
    [sym_gram] = STATE(160),
    [sym_pattern] = STATE(29),
    [sym__pattern_element] = STATE(68),
    [sym_subject] = STATE(68),
    [sym_annotations] = STATE(55),
    [sym_annotation] = STATE(26),
    [sym__path] = STATE(68),
    [sym_node] = STATE(25),
    [sym_relationship] = STATE(68),
    [sym_record] = STATE(34),
    [aux_sym_gram_repeat1] = STATE(29),
    [aux_sym_annotations_repeat1] = STATE(26),
    [ts_builtin_sym_end] = ACTIONS(3),
    [anon_sym_LBRACK] = ACTIONS(5),
    [anon_sym_AT] = ACTIONS(7),
    [anon_sym_LPAREN] = ACTIONS(9),
    [anon_sym_LBRACE] = ACTIONS(11),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 17,
    ACTIONS(13), 1,
      anon_sym_LBRACK,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(17), 1,
      sym_symbol,
    ACTIONS(19), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(72), 1,
      sym__numeric_literal,
    ACTIONS(21), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(25), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(23), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(157), 7,
      sym__value,
      sym_array,
      sym_map,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [62] = 17,
    ACTIONS(13), 1,
      anon_sym_LBRACK,
    ACTIONS(15), 1,
      anon_sym_LBRACE,
    ACTIONS(17), 1,
      sym_symbol,
    ACTIONS(19), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(72), 1,
      sym__numeric_literal,
    ACTIONS(21), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(25), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(23), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(127), 7,
      sym__value,
      sym_array,
      sym_map,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [124] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(35), 1,
      anon_sym_RBRACK,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(19), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(166), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [192] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(45), 1,
      anon_sym_RPAREN,
    STATE(17), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(199), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [260] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(47), 1,
      anon_sym_RBRACK,
    STATE(22), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(152), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [328] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(49), 1,
      anon_sym_RBRACK,
    STATE(18), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(159), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [396] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(51), 1,
      anon_sym_RBRACK,
    STATE(23), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(196), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [464] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(53), 1,
      anon_sym_RBRACK,
    STATE(21), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(155), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [532] = 21,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(55), 1,
      anon_sym_RBRACK,
    STATE(20), 1,
      sym_annotations,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(201), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [600] = 15,
    ACTIONS(19), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(57), 1,
      sym_symbol,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(74), 1,
      sym__numeric_literal,
    ACTIONS(21), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(61), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(59), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(143), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [654] = 15,
    ACTIONS(19), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(57), 1,
      sym_symbol,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(74), 1,
      sym__numeric_literal,
    ACTIONS(21), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(61), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(59), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(103), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [708] = 15,
    ACTIONS(19), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(33), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(57), 1,
      sym_symbol,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(74), 1,
      sym__numeric_literal,
    ACTIONS(21), 2,
      anon_sym_true,
      anon_sym_false,
    ACTIONS(61), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(59), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
    STATE(146), 5,
      sym__scalar_value,
      sym_range,
      sym_boolean_literal,
      sym_string_literal,
      sym_tagged_string,
  [762] = 19,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(63), 1,
      anon_sym_PIPE,
    ACTIONS(65), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(145), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [823] = 15,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(25), 1,
      sym_node,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(170), 1,
      sym_sub_pattern,
    ACTIONS(67), 2,
      sym_symbol,
      sym_integer,
    STATE(131), 2,
      sym__identifier,
      sym_string_literal,
    STATE(110), 5,
      sym_subject,
      sym__sub_pattern_element,
      sym__path,
      sym_relationship,
      sym_reference,
  [875] = 15,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(25), 1,
      sym_node,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(168), 1,
      sym_sub_pattern,
    ACTIONS(67), 2,
      sym_symbol,
      sym_integer,
    STATE(131), 2,
      sym__identifier,
      sym_string_literal,
    STATE(110), 5,
      sym_subject,
      sym__sub_pattern_element,
      sym__path,
      sym_relationship,
      sym_reference,
  [927] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(69), 1,
      anon_sym_RPAREN,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(198), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [985] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(71), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(200), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1043] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(73), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(203), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1101] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(75), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(151), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1159] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(77), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(162), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1217] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(79), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(197), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1275] = 18,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(81), 1,
      anon_sym_RBRACK,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(75), 1,
      sym_labels,
    STATE(94), 1,
      sym_record,
    STATE(156), 1,
      sym__attributes,
    ACTIONS(41), 2,
      sym_symbol,
      sym_integer,
    STATE(41), 2,
      sym__identifier,
      sym_string_literal,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
  [1333] = 14,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(25), 1,
      sym_node,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    ACTIONS(67), 2,
      sym_symbol,
      sym_integer,
    STATE(131), 2,
      sym__identifier,
      sym_string_literal,
    STATE(136), 5,
      sym_subject,
      sym__sub_pattern_element,
      sym__path,
      sym_relationship,
      sym_reference,
  [1382] = 8,
    ACTIONS(85), 1,
      anon_sym_DASH,
    ACTIONS(87), 1,
      anon_sym_EQ,
    ACTIONS(89), 1,
      anon_sym_TILDE,
    ACTIONS(91), 1,
      anon_sym_LT_DASH,
    ACTIONS(93), 1,
      anon_sym_LT_EQ,
    ACTIONS(95), 1,
      anon_sym_LT_TILDE,
    STATE(78), 5,
      sym__relationship_kind,
      sym_undirected_arrow,
      sym_right_arrow,
      sym_left_arrow,
      sym_bidirectional_arrow,
    ACTIONS(83), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [1416] = 4,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(99), 2,
      anon_sym_COLON,
      anon_sym_BQUOTE,
    STATE(27), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    ACTIONS(97), 11,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      sym_symbol,
      sym_integer,
      anon_sym_SQUOTE,
      anon_sym_DQUOTE,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [1441] = 4,
    ACTIONS(103), 1,
      anon_sym_AT,
    ACTIONS(106), 2,
      anon_sym_COLON,
      anon_sym_BQUOTE,
    STATE(27), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    ACTIONS(101), 11,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      sym_symbol,
      sym_integer,
      anon_sym_SQUOTE,
      anon_sym_DQUOTE,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [1466] = 2,
    ACTIONS(110), 2,
      anon_sym_COLON,
      anon_sym_BQUOTE,
    ACTIONS(108), 12,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      sym_symbol,
      sym_integer,
      anon_sym_SQUOTE,
      anon_sym_DQUOTE,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [1485] = 9,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(112), 1,
      ts_builtin_sym_end,
    STATE(25), 1,
      sym_node,
    STATE(55), 1,
      sym_annotations,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(30), 2,
      sym_pattern,
      aux_sym_gram_repeat1,
    STATE(68), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [1518] = 9,
    ACTIONS(114), 1,
      ts_builtin_sym_end,
    ACTIONS(116), 1,
      anon_sym_LBRACK,
    ACTIONS(119), 1,
      anon_sym_AT,
    ACTIONS(122), 1,
      anon_sym_LPAREN,
    STATE(25), 1,
      sym_node,
    STATE(55), 1,
      sym_annotations,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(30), 2,
      sym_pattern,
      aux_sym_gram_repeat1,
    STATE(68), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [1551] = 12,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(125), 1,
      anon_sym_RBRACE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(104), 1,
      sym_mapping,
    ACTIONS(127), 2,
      sym_symbol,
      sym_integer,
    STATE(169), 2,
      sym__identifier,
      sym_string_literal,
  [1590] = 9,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(129), 1,
      ts_builtin_sym_end,
    STATE(25), 1,
      sym_node,
    STATE(55), 1,
      sym_annotations,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(30), 2,
      sym_pattern,
      aux_sym_gram_repeat1,
    STATE(68), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [1623] = 12,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(131), 1,
      anon_sym_RBRACE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(93), 1,
      sym_property,
    ACTIONS(133), 2,
      sym_symbol,
      sym_integer,
    STATE(149), 2,
      sym__identifier,
      sym_string_literal,
  [1662] = 9,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(7), 1,
      anon_sym_AT,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    ACTIONS(135), 1,
      ts_builtin_sym_end,
    STATE(25), 1,
      sym_node,
    STATE(55), 1,
      sym_annotations,
    STATE(26), 2,
      sym_annotation,
      aux_sym_annotations_repeat1,
    STATE(32), 2,
      sym_pattern,
      aux_sym_gram_repeat1,
    STATE(68), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [1695] = 11,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(132), 1,
      sym_property,
    ACTIONS(133), 2,
      sym_symbol,
      sym_integer,
    STATE(149), 2,
      sym__identifier,
      sym_string_literal,
  [1731] = 11,
    ACTIONS(27), 1,
      anon_sym_SQUOTE,
    ACTIONS(29), 1,
      anon_sym_DQUOTE,
    ACTIONS(31), 1,
      anon_sym_BQUOTE,
    ACTIONS(43), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    STATE(42), 1,
      sym__backticked_string,
    STATE(45), 1,
      sym__single_quoted_string,
    STATE(46), 1,
      sym__double_quoted_string,
    STATE(47), 1,
      sym__fenced_string,
    STATE(147), 1,
      sym_mapping,
    ACTIONS(127), 2,
      sym_symbol,
      sym_integer,
    STATE(169), 2,
      sym__identifier,
      sym_string_literal,
  [1767] = 1,
    ACTIONS(137), 12,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [1782] = 1,
    ACTIONS(139), 12,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [1797] = 1,
    ACTIONS(141), 12,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [1812] = 1,
    ACTIONS(143), 12,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_DASH,
      anon_sym_EQ,
      anon_sym_TILDE,
      anon_sym_LT_DASH,
      anon_sym_LT_EQ,
      anon_sym_LT_TILDE,
  [1827] = 7,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    STATE(76), 1,
      sym_labels,
    STATE(90), 1,
      sym_record,
    STATE(50), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(145), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [1852] = 2,
    ACTIONS(149), 1,
      anon_sym_COLON,
    ACTIONS(147), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1865] = 4,
    ACTIONS(153), 1,
      anon_sym_COLON,
    ACTIONS(156), 1,
      anon_sym_COLON_COLON,
    STATE(43), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(151), 4,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_LBRACE,
  [1882] = 2,
    ACTIONS(161), 1,
      anon_sym_COLON,
    ACTIONS(159), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1895] = 2,
    ACTIONS(149), 1,
      anon_sym_COLON,
    ACTIONS(147), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1908] = 2,
    ACTIONS(149), 1,
      anon_sym_COLON,
    ACTIONS(147), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1921] = 2,
    ACTIONS(149), 1,
      anon_sym_COLON,
    ACTIONS(147), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1934] = 2,
    ACTIONS(165), 1,
      anon_sym_COLON,
    ACTIONS(163), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1947] = 2,
    ACTIONS(169), 1,
      anon_sym_COLON,
    ACTIONS(167), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1960] = 4,
    ACTIONS(37), 1,
      anon_sym_COLON,
    ACTIONS(39), 1,
      anon_sym_COLON_COLON,
    STATE(43), 2,
      sym__label,
      aux_sym_labels_repeat1,
    ACTIONS(171), 4,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_LBRACE,
  [1977] = 2,
    ACTIONS(175), 1,
      anon_sym_COLON,
    ACTIONS(173), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [1990] = 2,
    ACTIONS(179), 1,
      anon_sym_COLON,
    ACTIONS(177), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [2003] = 2,
    ACTIONS(183), 1,
      anon_sym_COLON,
    ACTIONS(181), 7,
      anon_sym_COMMA,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
  [2016] = 1,
    ACTIONS(185), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
  [2026] = 4,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    STATE(25), 1,
      sym_node,
    STATE(61), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [2042] = 4,
    ACTIONS(5), 1,
      anon_sym_LBRACK,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    STATE(25), 1,
      sym_node,
    STATE(73), 4,
      sym__pattern_element,
      sym_subject,
      sym__path,
      sym_relationship,
  [2058] = 1,
    ACTIONS(187), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
  [2068] = 1,
    ACTIONS(189), 7,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
  [2078] = 3,
    STATE(83), 1,
      sym__numeric_literal,
    ACTIONS(193), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(191), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
  [2091] = 3,
    STATE(80), 1,
      sym__numeric_literal,
    ACTIONS(197), 2,
      sym_decimal,
      sym_octal,
    ACTIONS(195), 3,
      sym_integer,
      sym_hexadecimal,
      sym_measurement,
  [2104] = 3,
    ACTIONS(201), 1,
      anon_sym_COMMA,
    STATE(63), 1,
      aux_sym_pattern_repeat1,
    ACTIONS(199), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2117] = 3,
    ACTIONS(201), 1,
      anon_sym_COMMA,
    STATE(66), 1,
      aux_sym_pattern_repeat1,
    ACTIONS(203), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2130] = 3,
    ACTIONS(201), 1,
      anon_sym_COMMA,
    STATE(66), 1,
      aux_sym_pattern_repeat1,
    ACTIONS(205), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2143] = 1,
    ACTIONS(207), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2152] = 1,
    ACTIONS(209), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2161] = 3,
    ACTIONS(213), 1,
      anon_sym_COMMA,
    STATE(66), 1,
      aux_sym_pattern_repeat1,
    ACTIONS(211), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2174] = 1,
    ACTIONS(216), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2183] = 3,
    ACTIONS(201), 1,
      anon_sym_COMMA,
    STATE(62), 1,
      aux_sym_pattern_repeat1,
    ACTIONS(218), 4,
      ts_builtin_sym_end,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2196] = 1,
    ACTIONS(220), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2205] = 1,
    ACTIONS(222), 6,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2214] = 2,
    ACTIONS(226), 1,
      anon_sym_COLON,
    ACTIONS(224), 5,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_COLON_COLON,
      anon_sym_LBRACE,
  [2225] = 3,
    ACTIONS(230), 1,
      anon_sym_DOT_DOT,
    ACTIONS(232), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(228), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2237] = 1,
    ACTIONS(211), 5,
      ts_builtin_sym_end,
      anon_sym_COMMA,
      anon_sym_LBRACK,
      anon_sym_AT,
      anon_sym_LPAREN,
  [2245] = 3,
    ACTIONS(230), 1,
      anon_sym_DOT_DOT,
    ACTIONS(232), 1,
      anon_sym_DOT_DOT_DOT,
    ACTIONS(234), 3,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RBRACE,
  [2257] = 3,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    STATE(91), 1,
      sym_record,
    ACTIONS(236), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2269] = 3,
    ACTIONS(11), 1,
      anon_sym_LBRACE,
    STATE(89), 1,
      sym_record,
    ACTIONS(238), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2281] = 1,
    ACTIONS(240), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2288] = 3,
    ACTIONS(9), 1,
      anon_sym_LPAREN,
    STATE(25), 1,
      sym_node,
    STATE(64), 2,
      sym__path,
      sym_relationship,
  [2299] = 2,
    ACTIONS(242), 1,
      anon_sym_BQUOTE,
    ACTIONS(234), 3,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RBRACE,
  [2308] = 1,
    ACTIONS(244), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2315] = 1,
    ACTIONS(246), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2322] = 2,
    ACTIONS(242), 1,
      anon_sym_BQUOTE,
    ACTIONS(228), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2331] = 1,
    ACTIONS(248), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2338] = 1,
    ACTIONS(250), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2345] = 1,
    ACTIONS(252), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2352] = 1,
    ACTIONS(254), 4,
      anon_sym_COMMA,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2359] = 3,
    ACTIONS(256), 1,
      anon_sym_COMMA,
    ACTIONS(259), 1,
      anon_sym_RBRACE,
    STATE(87), 1,
      aux_sym_record_repeat1,
  [2369] = 3,
    ACTIONS(261), 1,
      anon_sym_COMMA,
    ACTIONS(264), 1,
      anon_sym_RBRACE,
    STATE(88), 1,
      aux_sym_map_repeat1,
  [2379] = 1,
    ACTIONS(266), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2385] = 1,
    ACTIONS(268), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2391] = 1,
    ACTIONS(270), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2397] = 3,
    ACTIONS(272), 1,
      sym_symbol,
    ACTIONS(274), 1,
      anon_sym_LF,
    STATE(44), 1,
      sym__fenced_string_body,
  [2407] = 3,
    ACTIONS(276), 1,
      anon_sym_COMMA,
    ACTIONS(278), 1,
      anon_sym_RBRACE,
    STATE(98), 1,
      aux_sym_record_repeat1,
  [2417] = 1,
    ACTIONS(280), 3,
      anon_sym_PIPE,
      anon_sym_RBRACK,
      anon_sym_RPAREN,
  [2423] = 3,
    ACTIONS(282), 1,
      anon_sym_LBRACK,
    ACTIONS(284), 1,
      anon_sym_DASH,
    ACTIONS(286), 1,
      anon_sym_DASH_GT,
  [2433] = 3,
    ACTIONS(284), 1,
      anon_sym_EQ,
    ACTIONS(286), 1,
      anon_sym_EQ_GT,
    ACTIONS(288), 1,
      anon_sym_LBRACK,
  [2443] = 3,
    ACTIONS(284), 1,
      anon_sym_TILDE,
    ACTIONS(286), 1,
      anon_sym_TILDE_GT,
    ACTIONS(290), 1,
      anon_sym_LBRACK,
  [2453] = 3,
    ACTIONS(276), 1,
      anon_sym_COMMA,
    ACTIONS(292), 1,
      anon_sym_RBRACE,
    STATE(87), 1,
      aux_sym_record_repeat1,
  [2463] = 3,
    ACTIONS(294), 1,
      anon_sym_LBRACK,
    ACTIONS(296), 1,
      anon_sym_DASH,
    ACTIONS(298), 1,
      anon_sym_DASH_GT,
  [2473] = 3,
    ACTIONS(300), 1,
      anon_sym_COMMA,
    ACTIONS(303), 1,
      anon_sym_RBRACK,
    STATE(100), 1,
      aux_sym_sub_pattern_repeat1,
  [2483] = 3,
    ACTIONS(296), 1,
      anon_sym_EQ,
    ACTIONS(298), 1,
      anon_sym_EQ_GT,
    ACTIONS(305), 1,
      anon_sym_LBRACK,
  [2493] = 3,
    ACTIONS(296), 1,
      anon_sym_TILDE,
    ACTIONS(298), 1,
      anon_sym_TILDE_GT,
    ACTIONS(307), 1,
      anon_sym_LBRACK,
  [2503] = 3,
    ACTIONS(309), 1,
      anon_sym_COMMA,
    ACTIONS(311), 1,
      anon_sym_RBRACK,
    STATE(107), 1,
      aux_sym_array_repeat1,
  [2513] = 3,
    ACTIONS(313), 1,
      anon_sym_COMMA,
    ACTIONS(315), 1,
      anon_sym_RBRACE,
    STATE(109), 1,
      aux_sym_map_repeat1,
  [2523] = 3,
    ACTIONS(317), 1,
      anon_sym_COMMA,
    ACTIONS(319), 1,
      anon_sym_RBRACK,
    STATE(100), 1,
      aux_sym_sub_pattern_repeat1,
  [2533] = 1,
    ACTIONS(321), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2539] = 3,
    ACTIONS(309), 1,
      anon_sym_COMMA,
    ACTIONS(323), 1,
      anon_sym_RBRACK,
    STATE(112), 1,
      aux_sym_array_repeat1,
  [2549] = 1,
    ACTIONS(325), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2555] = 3,
    ACTIONS(313), 1,
      anon_sym_COMMA,
    ACTIONS(327), 1,
      anon_sym_RBRACE,
    STATE(88), 1,
      aux_sym_map_repeat1,
  [2565] = 3,
    ACTIONS(317), 1,
      anon_sym_COMMA,
    ACTIONS(329), 1,
      anon_sym_RBRACK,
    STATE(105), 1,
      aux_sym_sub_pattern_repeat1,
  [2575] = 1,
    ACTIONS(331), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2581] = 3,
    ACTIONS(333), 1,
      anon_sym_COMMA,
    ACTIONS(336), 1,
      anon_sym_RBRACK,
    STATE(112), 1,
      aux_sym_array_repeat1,
  [2591] = 1,
    ACTIONS(338), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2597] = 1,
    ACTIONS(340), 3,
      anon_sym_COMMA,
      anon_sym_RPAREN,
      anon_sym_RBRACE,
  [2603] = 2,
    ACTIONS(342), 1,
      anon_sym_TILDE,
    ACTIONS(344), 1,
      anon_sym_TILDE_GT,
  [2610] = 2,
    ACTIONS(346), 1,
      anon_sym_DASH,
    ACTIONS(348), 1,
      anon_sym_DASH_GT,
  [2617] = 2,
    ACTIONS(274), 1,
      anon_sym_LF,
    STATE(44), 1,
      sym__fenced_string_body,
  [2624] = 2,
    ACTIONS(350), 1,
      anon_sym_DASH,
    ACTIONS(352), 1,
      anon_sym_DASH_GT,
  [2631] = 2,
    ACTIONS(354), 1,
      anon_sym_DASH,
    ACTIONS(356), 1,
      anon_sym_DASH_GT,
  [2638] = 2,
    ACTIONS(350), 1,
      anon_sym_EQ,
    ACTIONS(352), 1,
      anon_sym_EQ_GT,
  [2645] = 2,
    ACTIONS(358), 1,
      anon_sym_EQ,
    ACTIONS(360), 1,
      anon_sym_EQ_GT,
  [2652] = 2,
    ACTIONS(350), 1,
      anon_sym_TILDE,
    ACTIONS(352), 1,
      anon_sym_TILDE_GT,
  [2659] = 2,
    ACTIONS(362), 1,
      anon_sym_TILDE,
    ACTIONS(364), 1,
      anon_sym_TILDE_GT,
  [2666] = 2,
    ACTIONS(366), 1,
      anon_sym_DASH,
    ACTIONS(368), 1,
      anon_sym_DASH_GT,
  [2673] = 2,
    ACTIONS(370), 1,
      anon_sym_DASH,
    ACTIONS(372), 1,
      anon_sym_DASH_GT,
  [2680] = 2,
    ACTIONS(366), 1,
      anon_sym_EQ,
    ACTIONS(368), 1,
      anon_sym_EQ_GT,
  [2687] = 1,
    ACTIONS(374), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2692] = 2,
    ACTIONS(376), 1,
      anon_sym_EQ,
    ACTIONS(378), 1,
      anon_sym_EQ_GT,
  [2699] = 2,
    ACTIONS(366), 1,
      anon_sym_TILDE,
    ACTIONS(368), 1,
      anon_sym_TILDE_GT,
  [2706] = 2,
    ACTIONS(380), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(382), 1,
      sym__fenced_string_content,
  [2713] = 1,
    ACTIONS(384), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2718] = 1,
    ACTIONS(259), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2723] = 2,
    ACTIONS(346), 1,
      anon_sym_TILDE,
    ACTIONS(348), 1,
      anon_sym_TILDE_GT,
  [2730] = 2,
    ACTIONS(386), 1,
      anon_sym_DASH,
    ACTIONS(388), 1,
      anon_sym_DASH_GT,
  [2737] = 2,
    ACTIONS(390), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
    ACTIONS(392), 1,
      sym__fenced_string_content,
  [2744] = 1,
    ACTIONS(303), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2749] = 2,
    ACTIONS(394), 1,
      anon_sym_DASH,
    ACTIONS(396), 1,
      anon_sym_DASH_GT,
  [2756] = 2,
    ACTIONS(398), 1,
      anon_sym_EQ,
    ACTIONS(400), 1,
      anon_sym_EQ_GT,
  [2763] = 2,
    ACTIONS(402), 1,
      anon_sym_TILDE,
    ACTIONS(404), 1,
      anon_sym_TILDE_GT,
  [2770] = 2,
    ACTIONS(406), 1,
      anon_sym_DASH,
    ACTIONS(408), 1,
      anon_sym_DASH_GT,
  [2777] = 2,
    ACTIONS(410), 1,
      anon_sym_EQ,
    ACTIONS(412), 1,
      anon_sym_EQ_GT,
  [2784] = 2,
    ACTIONS(414), 1,
      anon_sym_TILDE,
    ACTIONS(416), 1,
      anon_sym_TILDE_GT,
  [2791] = 1,
    ACTIONS(336), 2,
      anon_sym_COMMA,
      anon_sym_RBRACK,
  [2796] = 2,
    ACTIONS(386), 1,
      anon_sym_EQ,
    ACTIONS(388), 1,
      anon_sym_EQ_GT,
  [2803] = 2,
    ACTIONS(418), 1,
      anon_sym_PIPE,
    ACTIONS(420), 1,
      anon_sym_RBRACK,
  [2810] = 1,
    ACTIONS(422), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2815] = 1,
    ACTIONS(264), 2,
      anon_sym_COMMA,
      anon_sym_RBRACE,
  [2820] = 2,
    ACTIONS(386), 1,
      anon_sym_TILDE,
    ACTIONS(388), 1,
      anon_sym_TILDE_GT,
  [2827] = 2,
    ACTIONS(424), 1,
      anon_sym_COLON,
    ACTIONS(426), 1,
      anon_sym_COLON_COLON,
  [2834] = 2,
    ACTIONS(346), 1,
      anon_sym_EQ,
    ACTIONS(348), 1,
      anon_sym_EQ_GT,
  [2841] = 1,
    ACTIONS(428), 1,
      anon_sym_RBRACK,
  [2845] = 1,
    ACTIONS(430), 1,
      anon_sym_RBRACK,
  [2849] = 1,
    ACTIONS(432), 1,
      anon_sym_LPAREN,
  [2853] = 1,
    ACTIONS(434), 1,
      anon_sym_LPAREN,
  [2857] = 1,
    ACTIONS(436), 1,
      anon_sym_RBRACK,
  [2861] = 1,
    ACTIONS(438), 1,
      anon_sym_RBRACK,
  [2865] = 1,
    ACTIONS(440), 1,
      anon_sym_RPAREN,
  [2869] = 1,
    ACTIONS(442), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [2873] = 1,
    ACTIONS(444), 1,
      anon_sym_RBRACK,
  [2877] = 1,
    ACTIONS(446), 1,
      ts_builtin_sym_end,
  [2881] = 1,
    ACTIONS(448), 1,
      sym__double_quoted_text,
  [2885] = 1,
    ACTIONS(450), 1,
      anon_sym_RBRACK,
  [2889] = 1,
    ACTIONS(452), 1,
      anon_sym_BQUOTE,
  [2893] = 1,
    ACTIONS(454), 1,
      anon_sym_LPAREN,
  [2897] = 1,
    ACTIONS(456), 1,
      anon_sym_LPAREN,
  [2901] = 1,
    ACTIONS(458), 1,
      anon_sym_RBRACK,
  [2905] = 1,
    ACTIONS(460), 1,
      anon_sym_LPAREN,
  [2909] = 1,
    ACTIONS(462), 1,
      anon_sym_RBRACK,
  [2913] = 1,
    ACTIONS(464), 1,
      anon_sym_COLON,
  [2917] = 1,
    ACTIONS(466), 1,
      anon_sym_RBRACK,
  [2921] = 1,
    ACTIONS(468), 1,
      anon_sym_BQUOTE,
  [2925] = 1,
    ACTIONS(470), 1,
      sym__backticked_text,
  [2929] = 1,
    ACTIONS(472), 1,
      anon_sym_LPAREN,
  [2933] = 1,
    ACTIONS(474), 1,
      anon_sym_LPAREN,
  [2937] = 1,
    ACTIONS(476), 1,
      anon_sym_LPAREN,
  [2941] = 1,
    ACTIONS(478), 1,
      anon_sym_LF,
  [2945] = 1,
    ACTIONS(480), 1,
      anon_sym_LPAREN,
  [2949] = 1,
    ACTIONS(482), 1,
      anon_sym_LPAREN,
  [2953] = 1,
    ACTIONS(484), 1,
      sym__backticked_text,
  [2957] = 1,
    ACTIONS(480), 1,
      anon_sym_LPAREN,
  [2961] = 1,
    ACTIONS(482), 1,
      anon_sym_LPAREN,
  [2965] = 1,
    ACTIONS(486), 1,
      sym_symbol,
  [2969] = 1,
    ACTIONS(480), 1,
      anon_sym_LPAREN,
  [2973] = 1,
    ACTIONS(482), 1,
      anon_sym_LPAREN,
  [2977] = 1,
    ACTIONS(488), 1,
      anon_sym_LPAREN,
  [2981] = 1,
    ACTIONS(490), 1,
      anon_sym_LPAREN,
  [2985] = 1,
    ACTIONS(492), 1,
      anon_sym_DQUOTE,
  [2989] = 1,
    ACTIONS(494), 1,
      anon_sym_LPAREN,
  [2993] = 1,
    ACTIONS(496), 1,
      anon_sym_LPAREN,
  [2997] = 1,
    ACTIONS(498), 1,
      anon_sym_LPAREN,
  [3001] = 1,
    ACTIONS(494), 1,
      anon_sym_LPAREN,
  [3005] = 1,
    ACTIONS(496), 1,
      anon_sym_LPAREN,
  [3009] = 1,
    ACTIONS(500), 1,
      anon_sym_LPAREN,
  [3013] = 1,
    ACTIONS(494), 1,
      anon_sym_LPAREN,
  [3017] = 1,
    ACTIONS(496), 1,
      anon_sym_LPAREN,
  [3021] = 1,
    ACTIONS(502), 1,
      anon_sym_RBRACK,
  [3025] = 1,
    ACTIONS(504), 1,
      anon_sym_RBRACK,
  [3029] = 1,
    ACTIONS(506), 1,
      anon_sym_RPAREN,
  [3033] = 1,
    ACTIONS(508), 1,
      anon_sym_RPAREN,
  [3037] = 1,
    ACTIONS(510), 1,
      anon_sym_RBRACK,
  [3041] = 1,
    ACTIONS(512), 1,
      anon_sym_RBRACK,
  [3045] = 1,
    ACTIONS(514), 1,
      sym__single_quoted_text,
  [3049] = 1,
    ACTIONS(516), 1,
      anon_sym_RBRACK,
  [3053] = 1,
    ACTIONS(518), 1,
      sym_symbol,
  [3057] = 1,
    ACTIONS(520), 1,
      anon_sym_BQUOTE_BQUOTE_BQUOTE,
  [3061] = 1,
    ACTIONS(522), 1,
      anon_sym_LPAREN,
  [3065] = 1,
    ACTIONS(524), 1,
      anon_sym_LPAREN,
  [3069] = 1,
    ACTIONS(522), 1,
      anon_sym_LPAREN,
  [3073] = 1,
    ACTIONS(524), 1,
      anon_sym_LPAREN,
  [3077] = 1,
    ACTIONS(522), 1,
      anon_sym_LPAREN,
  [3081] = 1,
    ACTIONS(524), 1,
      anon_sym_LPAREN,
  [3085] = 1,
    ACTIONS(526), 1,
      anon_sym_LPAREN,
  [3089] = 1,
    ACTIONS(528), 1,
      anon_sym_LPAREN,
  [3093] = 1,
    ACTIONS(526), 1,
      anon_sym_LPAREN,
  [3097] = 1,
    ACTIONS(528), 1,
      anon_sym_LPAREN,
  [3101] = 1,
    ACTIONS(526), 1,
      anon_sym_LPAREN,
  [3105] = 1,
    ACTIONS(528), 1,
      anon_sym_LPAREN,
  [3109] = 1,
    ACTIONS(530), 1,
      anon_sym_SQUOTE,
  [3113] = 1,
    ACTIONS(532), 1,
      anon_sym_LPAREN,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(2)] = 0,
  [SMALL_STATE(3)] = 62,
  [SMALL_STATE(4)] = 124,
  [SMALL_STATE(5)] = 192,
  [SMALL_STATE(6)] = 260,
  [SMALL_STATE(7)] = 328,
  [SMALL_STATE(8)] = 396,
  [SMALL_STATE(9)] = 464,
  [SMALL_STATE(10)] = 532,
  [SMALL_STATE(11)] = 600,
  [SMALL_STATE(12)] = 654,
  [SMALL_STATE(13)] = 708,
  [SMALL_STATE(14)] = 762,
  [SMALL_STATE(15)] = 823,
  [SMALL_STATE(16)] = 875,
  [SMALL_STATE(17)] = 927,
  [SMALL_STATE(18)] = 985,
  [SMALL_STATE(19)] = 1043,
  [SMALL_STATE(20)] = 1101,
  [SMALL_STATE(21)] = 1159,
  [SMALL_STATE(22)] = 1217,
  [SMALL_STATE(23)] = 1275,
  [SMALL_STATE(24)] = 1333,
  [SMALL_STATE(25)] = 1382,
  [SMALL_STATE(26)] = 1416,
  [SMALL_STATE(27)] = 1441,
  [SMALL_STATE(28)] = 1466,
  [SMALL_STATE(29)] = 1485,
  [SMALL_STATE(30)] = 1518,
  [SMALL_STATE(31)] = 1551,
  [SMALL_STATE(32)] = 1590,
  [SMALL_STATE(33)] = 1623,
  [SMALL_STATE(34)] = 1662,
  [SMALL_STATE(35)] = 1695,
  [SMALL_STATE(36)] = 1731,
  [SMALL_STATE(37)] = 1767,
  [SMALL_STATE(38)] = 1782,
  [SMALL_STATE(39)] = 1797,
  [SMALL_STATE(40)] = 1812,
  [SMALL_STATE(41)] = 1827,
  [SMALL_STATE(42)] = 1852,
  [SMALL_STATE(43)] = 1865,
  [SMALL_STATE(44)] = 1882,
  [SMALL_STATE(45)] = 1895,
  [SMALL_STATE(46)] = 1908,
  [SMALL_STATE(47)] = 1921,
  [SMALL_STATE(48)] = 1934,
  [SMALL_STATE(49)] = 1947,
  [SMALL_STATE(50)] = 1960,
  [SMALL_STATE(51)] = 1977,
  [SMALL_STATE(52)] = 1990,
  [SMALL_STATE(53)] = 2003,
  [SMALL_STATE(54)] = 2016,
  [SMALL_STATE(55)] = 2026,
  [SMALL_STATE(56)] = 2042,
  [SMALL_STATE(57)] = 2058,
  [SMALL_STATE(58)] = 2068,
  [SMALL_STATE(59)] = 2078,
  [SMALL_STATE(60)] = 2091,
  [SMALL_STATE(61)] = 2104,
  [SMALL_STATE(62)] = 2117,
  [SMALL_STATE(63)] = 2130,
  [SMALL_STATE(64)] = 2143,
  [SMALL_STATE(65)] = 2152,
  [SMALL_STATE(66)] = 2161,
  [SMALL_STATE(67)] = 2174,
  [SMALL_STATE(68)] = 2183,
  [SMALL_STATE(69)] = 2196,
  [SMALL_STATE(70)] = 2205,
  [SMALL_STATE(71)] = 2214,
  [SMALL_STATE(72)] = 2225,
  [SMALL_STATE(73)] = 2237,
  [SMALL_STATE(74)] = 2245,
  [SMALL_STATE(75)] = 2257,
  [SMALL_STATE(76)] = 2269,
  [SMALL_STATE(77)] = 2281,
  [SMALL_STATE(78)] = 2288,
  [SMALL_STATE(79)] = 2299,
  [SMALL_STATE(80)] = 2308,
  [SMALL_STATE(81)] = 2315,
  [SMALL_STATE(82)] = 2322,
  [SMALL_STATE(83)] = 2331,
  [SMALL_STATE(84)] = 2338,
  [SMALL_STATE(85)] = 2345,
  [SMALL_STATE(86)] = 2352,
  [SMALL_STATE(87)] = 2359,
  [SMALL_STATE(88)] = 2369,
  [SMALL_STATE(89)] = 2379,
  [SMALL_STATE(90)] = 2385,
  [SMALL_STATE(91)] = 2391,
  [SMALL_STATE(92)] = 2397,
  [SMALL_STATE(93)] = 2407,
  [SMALL_STATE(94)] = 2417,
  [SMALL_STATE(95)] = 2423,
  [SMALL_STATE(96)] = 2433,
  [SMALL_STATE(97)] = 2443,
  [SMALL_STATE(98)] = 2453,
  [SMALL_STATE(99)] = 2463,
  [SMALL_STATE(100)] = 2473,
  [SMALL_STATE(101)] = 2483,
  [SMALL_STATE(102)] = 2493,
  [SMALL_STATE(103)] = 2503,
  [SMALL_STATE(104)] = 2513,
  [SMALL_STATE(105)] = 2523,
  [SMALL_STATE(106)] = 2533,
  [SMALL_STATE(107)] = 2539,
  [SMALL_STATE(108)] = 2549,
  [SMALL_STATE(109)] = 2555,
  [SMALL_STATE(110)] = 2565,
  [SMALL_STATE(111)] = 2575,
  [SMALL_STATE(112)] = 2581,
  [SMALL_STATE(113)] = 2591,
  [SMALL_STATE(114)] = 2597,
  [SMALL_STATE(115)] = 2603,
  [SMALL_STATE(116)] = 2610,
  [SMALL_STATE(117)] = 2617,
  [SMALL_STATE(118)] = 2624,
  [SMALL_STATE(119)] = 2631,
  [SMALL_STATE(120)] = 2638,
  [SMALL_STATE(121)] = 2645,
  [SMALL_STATE(122)] = 2652,
  [SMALL_STATE(123)] = 2659,
  [SMALL_STATE(124)] = 2666,
  [SMALL_STATE(125)] = 2673,
  [SMALL_STATE(126)] = 2680,
  [SMALL_STATE(127)] = 2687,
  [SMALL_STATE(128)] = 2692,
  [SMALL_STATE(129)] = 2699,
  [SMALL_STATE(130)] = 2706,
  [SMALL_STATE(131)] = 2713,
  [SMALL_STATE(132)] = 2718,
  [SMALL_STATE(133)] = 2723,
  [SMALL_STATE(134)] = 2730,
  [SMALL_STATE(135)] = 2737,
  [SMALL_STATE(136)] = 2744,
  [SMALL_STATE(137)] = 2749,
  [SMALL_STATE(138)] = 2756,
  [SMALL_STATE(139)] = 2763,
  [SMALL_STATE(140)] = 2770,
  [SMALL_STATE(141)] = 2777,
  [SMALL_STATE(142)] = 2784,
  [SMALL_STATE(143)] = 2791,
  [SMALL_STATE(144)] = 2796,
  [SMALL_STATE(145)] = 2803,
  [SMALL_STATE(146)] = 2810,
  [SMALL_STATE(147)] = 2815,
  [SMALL_STATE(148)] = 2820,
  [SMALL_STATE(149)] = 2827,
  [SMALL_STATE(150)] = 2834,
  [SMALL_STATE(151)] = 2841,
  [SMALL_STATE(152)] = 2845,
  [SMALL_STATE(153)] = 2849,
  [SMALL_STATE(154)] = 2853,
  [SMALL_STATE(155)] = 2857,
  [SMALL_STATE(156)] = 2861,
  [SMALL_STATE(157)] = 2865,
  [SMALL_STATE(158)] = 2869,
  [SMALL_STATE(159)] = 2873,
  [SMALL_STATE(160)] = 2877,
  [SMALL_STATE(161)] = 2881,
  [SMALL_STATE(162)] = 2885,
  [SMALL_STATE(163)] = 2889,
  [SMALL_STATE(164)] = 2893,
  [SMALL_STATE(165)] = 2897,
  [SMALL_STATE(166)] = 2901,
  [SMALL_STATE(167)] = 2905,
  [SMALL_STATE(168)] = 2909,
  [SMALL_STATE(169)] = 2913,
  [SMALL_STATE(170)] = 2917,
  [SMALL_STATE(171)] = 2921,
  [SMALL_STATE(172)] = 2925,
  [SMALL_STATE(173)] = 2929,
  [SMALL_STATE(174)] = 2933,
  [SMALL_STATE(175)] = 2937,
  [SMALL_STATE(176)] = 2941,
  [SMALL_STATE(177)] = 2945,
  [SMALL_STATE(178)] = 2949,
  [SMALL_STATE(179)] = 2953,
  [SMALL_STATE(180)] = 2957,
  [SMALL_STATE(181)] = 2961,
  [SMALL_STATE(182)] = 2965,
  [SMALL_STATE(183)] = 2969,
  [SMALL_STATE(184)] = 2973,
  [SMALL_STATE(185)] = 2977,
  [SMALL_STATE(186)] = 2981,
  [SMALL_STATE(187)] = 2985,
  [SMALL_STATE(188)] = 2989,
  [SMALL_STATE(189)] = 2993,
  [SMALL_STATE(190)] = 2997,
  [SMALL_STATE(191)] = 3001,
  [SMALL_STATE(192)] = 3005,
  [SMALL_STATE(193)] = 3009,
  [SMALL_STATE(194)] = 3013,
  [SMALL_STATE(195)] = 3017,
  [SMALL_STATE(196)] = 3021,
  [SMALL_STATE(197)] = 3025,
  [SMALL_STATE(198)] = 3029,
  [SMALL_STATE(199)] = 3033,
  [SMALL_STATE(200)] = 3037,
  [SMALL_STATE(201)] = 3041,
  [SMALL_STATE(202)] = 3045,
  [SMALL_STATE(203)] = 3049,
  [SMALL_STATE(204)] = 3053,
  [SMALL_STATE(205)] = 3057,
  [SMALL_STATE(206)] = 3061,
  [SMALL_STATE(207)] = 3065,
  [SMALL_STATE(208)] = 3069,
  [SMALL_STATE(209)] = 3073,
  [SMALL_STATE(210)] = 3077,
  [SMALL_STATE(211)] = 3081,
  [SMALL_STATE(212)] = 3085,
  [SMALL_STATE(213)] = 3089,
  [SMALL_STATE(214)] = 3093,
  [SMALL_STATE(215)] = 3097,
  [SMALL_STATE(216)] = 3101,
  [SMALL_STATE(217)] = 3105,
  [SMALL_STATE(218)] = 3109,
  [SMALL_STATE(219)] = 3113,
};

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}}, REDUCE(sym_gram, 0, 0, 0),
  [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
  [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(82),
  [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
  [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(77),
  [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72),
  [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72),
  [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(202),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
  [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(179),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92),
  [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148),
  [37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(182),
  [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(182),
  [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
  [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117),
  [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134),
  [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116),
  [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133),
  [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150),
  [57] = {.entry = {.count = 1, .reusable = false}}, SHIFT(79),
  [59] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74),
  [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74),
  [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67),
  [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131),
  [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120),
  [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122),
  [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126),
  [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129),
  [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118),
  [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
  [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__path, 1, 0, 0),
  [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95),
  [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [89] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97),
  [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [95] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotations, 1, 0, 0),
  [99] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_annotations, 1, 0, 0),
  [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0),
  [103] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0), SHIFT_REPEAT(204),
  [106] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_annotations_repeat1, 2, 0, 0),
  [108] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_annotation, 5, 0, 24),
  [110] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_annotation, 5, 0, 24),
  [112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram, 1, 0, 0),
  [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_gram_repeat1, 2, 0, 0),
  [116] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_repeat1, 2, 0, 0), SHIFT_REPEAT(14),
  [119] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_repeat1, 2, 0, 0), SHIFT_REPEAT(204),
  [122] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_gram_repeat1, 2, 0, 0), SHIFT_REPEAT(5),
  [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
  [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169),
  [129] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram, 2, 0, 2),
  [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(149),
  [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_gram, 1, 0, 2),
  [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node, 3, 0, 14),
  [139] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node, 3, 0, 12),
  [141] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node, 2, 0, 0),
  [143] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_node, 4, 0, 20),
  [145] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 1, 0, 3),
  [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string_literal, 1, 0, 6),
  [149] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string_literal, 1, 0, 6),
  [151] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0),
  [153] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(182),
  [156] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_labels_repeat1, 2, 0, 0), SHIFT_REPEAT(182),
  [159] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string, 2, 0, 9),
  [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string, 2, 0, 9),
  [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__single_quoted_string, 3, 0, 18),
  [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__single_quoted_string, 3, 0, 18),
  [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__double_quoted_string, 3, 0, 18),
  [169] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__double_quoted_string, 3, 0, 18),
  [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_labels, 1, 0, 0),
  [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 2, 0, 0),
  [175] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string_body, 2, 0, 0),
  [177] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__fenced_string_body, 3, 0, 18),
  [179] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__fenced_string_body, 3, 0, 18),
  [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__backticked_string, 3, 0, 18),
  [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__backticked_string, 3, 0, 18),
  [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 3, 0, 0),
  [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 2, 0, 0),
  [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_record, 4, 0, 0),
  [191] = {.entry = {.count = 1, .reusable = false}}, SHIFT(83),
  [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83),
  [195] = {.entry = {.count = 1, .reusable = false}}, SHIFT(80),
  [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
  [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern, 2, 0, 8),
  [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
  [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern, 2, 0, 7),
  [205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern, 3, 0, 15),
  [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_relationship, 3, 0, 16),
  [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject, 4, 0, 17),
  [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_pattern_repeat1, 2, 0, 0),
  [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(56),
  [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject, 2, 0, 0),
  [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern, 1, 0, 1),
  [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject, 5, 0, 22),
  [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_subject, 3, 0, 12),
  [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__label, 2, 0, 0),
  [226] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__label, 2, 0, 0),
  [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__value, 1, 0, 0),
  [230] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59),
  [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81),
  [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__scalar_value, 1, 0, 0),
  [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 1, 0, 4),
  [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 2, 0, 10),
  [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1, 0, 0),
  [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(172),
  [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 23),
  [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 2, 0, 25),
  [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_range, 3, 0, 26),
  [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 29),
  [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 4, 0, 30),
  [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tagged_string, 5, 0, 32),
  [256] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0), SHIFT_REPEAT(35),
  [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_record_repeat1, 2, 0, 0),
  [261] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0), SHIFT_REPEAT(36),
  [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_repeat1, 2, 0, 0),
  [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 3, 0, 19),
  [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 2, 0, 11),
  [270] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 2, 0, 13),
  [272] = {.entry = {.count = 1, .reusable = false}}, SHIFT(176),
  [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [276] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
  [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
  [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__attributes, 1, 0, 5),
  [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
  [284] = {.entry = {.count = 1, .reusable = false}}, SHIFT(165),
  [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173),
  [288] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
  [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
  [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
  [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
  [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(164),
  [298] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
  [300] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_sub_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(24),
  [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_sub_pattern_repeat1, 2, 0, 0),
  [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
  [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106),
  [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
  [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108),
  [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
  [319] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_pattern, 2, 0, 0),
  [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0),
  [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111),
  [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 3, 0, 0),
  [327] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
  [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_sub_pattern, 1, 0, 0),
  [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4, 0, 0),
  [333] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(11),
  [336] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0),
  [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 4, 0, 0),
  [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map, 2, 0, 0),
  [342] = {.entry = {.count = 1, .reusable = false}}, SHIFT(194),
  [344] = {.entry = {.count = 1, .reusable = true}}, SHIFT(195),
  [346] = {.entry = {.count = 1, .reusable = false}}, SHIFT(153),
  [348] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154),
  [350] = {.entry = {.count = 1, .reusable = false}}, SHIFT(174),
  [352] = {.entry = {.count = 1, .reusable = true}}, SHIFT(175),
  [354] = {.entry = {.count = 1, .reusable = false}}, SHIFT(177),
  [356] = {.entry = {.count = 1, .reusable = true}}, SHIFT(178),
  [358] = {.entry = {.count = 1, .reusable = false}}, SHIFT(180),
  [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(181),
  [362] = {.entry = {.count = 1, .reusable = false}}, SHIFT(183),
  [364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(184),
  [366] = {.entry = {.count = 1, .reusable = false}}, SHIFT(185),
  [368] = {.entry = {.count = 1, .reusable = true}}, SHIFT(186),
  [370] = {.entry = {.count = 1, .reusable = false}}, SHIFT(188),
  [372] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189),
  [374] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_property, 3, 0, 21),
  [376] = {.entry = {.count = 1, .reusable = false}}, SHIFT(191),
  [378] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192),
  [380] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51),
  [382] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
  [384] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_reference, 1, 0, 3),
  [386] = {.entry = {.count = 1, .reusable = false}}, SHIFT(190),
  [388] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193),
  [390] = {.entry = {.count = 1, .reusable = false}}, SHIFT(85),
  [392] = {.entry = {.count = 1, .reusable = true}}, SHIFT(205),
  [394] = {.entry = {.count = 1, .reusable = false}}, SHIFT(206),
  [396] = {.entry = {.count = 1, .reusable = true}}, SHIFT(207),
  [398] = {.entry = {.count = 1, .reusable = false}}, SHIFT(208),
  [400] = {.entry = {.count = 1, .reusable = true}}, SHIFT(209),
  [402] = {.entry = {.count = 1, .reusable = false}}, SHIFT(210),
  [404] = {.entry = {.count = 1, .reusable = true}}, SHIFT(211),
  [406] = {.entry = {.count = 1, .reusable = false}}, SHIFT(212),
  [408] = {.entry = {.count = 1, .reusable = true}}, SHIFT(213),
  [410] = {.entry = {.count = 1, .reusable = false}}, SHIFT(214),
  [412] = {.entry = {.count = 1, .reusable = true}}, SHIFT(215),
  [414] = {.entry = {.count = 1, .reusable = false}}, SHIFT(216),
  [416] = {.entry = {.count = 1, .reusable = true}}, SHIFT(217),
  [418] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [420] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
  [422] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_mapping, 3, 0, 21),
  [424] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
  [426] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [428] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141),
  [430] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [432] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 4, 0, 0),
  [434] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 4, 0, 0),
  [436] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
  [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140),
  [440] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
  [444] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121),
  [446] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [448] = {.entry = {.count = 1, .reusable = true}}, SHIFT(187),
  [450] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
  [452] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [454] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 2, 0, 0),
  [456] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 2, 0, 0),
  [458] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123),
  [460] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 2, 0, 0),
  [462] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
  [464] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
  [466] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [468] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
  [470] = {.entry = {.count = 1, .reusable = true}}, SHIFT(171),
  [472] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 2, 0, 0),
  [474] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 5, 0, 27),
  [476] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 5, 0, 27),
  [478] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135),
  [480] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 5, 0, 28),
  [482] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 5, 0, 28),
  [484] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163),
  [486] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
  [488] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 5, 0, 27),
  [490] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 5, 0, 27),
  [492] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
  [494] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 5, 0, 28),
  [496] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 5, 0, 28),
  [498] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 4, 0, 0),
  [500] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 4, 0, 0),
  [502] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125),
  [504] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137),
  [506] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40),
  [508] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [510] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138),
  [512] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [514] = {.entry = {.count = 1, .reusable = true}}, SHIFT(218),
  [516] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139),
  [518] = {.entry = {.count = 1, .reusable = true}}, SHIFT(219),
  [520] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [522] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_undirected_arrow, 6, 0, 31),
  [524] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_right_arrow, 6, 0, 31),
  [526] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_left_arrow, 6, 0, 31),
  [528] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bidirectional_arrow, 6, 0, 31),
  [530] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
  [532] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
};

#ifdef __cplusplus
extern "C" {
#endif
#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif

TS_PUBLIC const TSLanguage *tree_sitter_gram(void) {
  static const TSLanguage language = {
    .abi_version = LANGUAGE_VERSION,
    .symbol_count = SYMBOL_COUNT,
    .alias_count = ALIAS_COUNT,
    .token_count = TOKEN_COUNT,
    .external_token_count = EXTERNAL_TOKEN_COUNT,
    .state_count = STATE_COUNT,
    .large_state_count = LARGE_STATE_COUNT,
    .production_id_count = PRODUCTION_ID_COUNT,
    .supertype_count = SUPERTYPE_COUNT,
    .field_count = FIELD_COUNT,
    .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
    .parse_table = &ts_parse_table[0][0],
    .small_parse_table = ts_small_parse_table,
    .small_parse_table_map = ts_small_parse_table_map,
    .parse_actions = ts_parse_actions,
    .symbol_names = ts_symbol_names,
    .field_names = ts_field_names,
    .field_map_slices = ts_field_map_slices,
    .field_map_entries = ts_field_map_entries,
    .symbol_metadata = ts_symbol_metadata,
    .public_symbol_map = ts_symbol_map,
    .alias_map = ts_non_terminal_alias_map,
    .alias_sequences = &ts_alias_sequences[0][0],
    .lex_modes = (const void*)ts_lex_modes,
    .lex_fn = ts_lex,
    .primary_state_ids = ts_primary_state_ids,
    .name = "gram",
    .max_reserved_word_set_size = 0,
    .metadata = {
      .major_version = 0,
      .minor_version = 2,
      .patch_version = 0,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
