9691 lines
274 KiB
C
9691 lines
274 KiB
C
#include <tree_sitter/parser.h>
|
||
|
||
#if defined(__GNUC__) || defined(__clang__)
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||
#endif
|
||
|
||
#ifdef _MSC_VER
|
||
#pragma optimize("", off)
|
||
#elif defined(__clang__)
|
||
#pragma clang optimize off
|
||
#elif defined(__GNUC__)
|
||
#pragma GCC optimize ("O0")
|
||
#endif
|
||
|
||
#define LANGUAGE_VERSION 14
|
||
#define STATE_COUNT 291
|
||
#define LARGE_STATE_COUNT 2
|
||
#define SYMBOL_COUNT 137
|
||
#define ALIAS_COUNT 3
|
||
#define TOKEN_COUNT 76
|
||
#define EXTERNAL_TOKEN_COUNT 4
|
||
#define FIELD_COUNT 0
|
||
#define MAX_ALIAS_SEQUENCE_LENGTH 5
|
||
#define PRODUCTION_ID_COUNT 5
|
||
|
||
enum {
|
||
anon_sym_ = 1,
|
||
anon_sym_LPAREN = 2,
|
||
anon_sym_RPAREN = 3,
|
||
anon_sym_LBRACK = 4,
|
||
anon_sym_RBRACK = 5,
|
||
anon_sym_LBRACE = 6,
|
||
anon_sym_RBRACE = 7,
|
||
aux_sym__identifier_token1 = 8,
|
||
aux_sym__identifier_token2 = 9,
|
||
aux_sym__identifier_token3 = 10,
|
||
anon_sym_RPAREN2 = 11,
|
||
aux_sym__identifier_token4 = 12,
|
||
aux_sym_text_block_token1 = 13,
|
||
sym_language = 14,
|
||
anon_sym_direction = 15,
|
||
anon_sym_shape = 16,
|
||
anon_sym_label = 17,
|
||
anon_sym_constraint = 18,
|
||
anon_sym_icon = 19,
|
||
anon_sym_link = 20,
|
||
anon_sym_tooltip = 21,
|
||
anon_sym_width = 22,
|
||
anon_sym_height = 23,
|
||
anon_sym_vertical_DASHgap = 24,
|
||
anon_sym_horizontal_DASHgap = 25,
|
||
anon_sym_grid_DASHgap = 26,
|
||
anon_sym_grid_DASHcolumns = 27,
|
||
anon_sym_grid_DASHrows = 28,
|
||
anon_sym_3d = 29,
|
||
anon_sym_opacity = 30,
|
||
anon_sym_fill = 31,
|
||
anon_sym_fill_DASHpattern = 32,
|
||
anon_sym_stroke = 33,
|
||
anon_sym_stroke_DASHwidth = 34,
|
||
anon_sym_stroke_DASHdash = 35,
|
||
anon_sym_border_DASHradius = 36,
|
||
anon_sym_double_DASHborder = 37,
|
||
anon_sym_font = 38,
|
||
anon_sym_font_DASHsize = 39,
|
||
anon_sym_font_DASHcolor = 40,
|
||
anon_sym_shadow = 41,
|
||
anon_sym_multiple = 42,
|
||
anon_sym_animated = 43,
|
||
anon_sym_italic = 44,
|
||
anon_sym_bold = 45,
|
||
anon_sym_underline = 46,
|
||
anon_sym_text_DASHtransform = 47,
|
||
sym__text_attr_key = 48,
|
||
anon_sym_source_DASHarrowhead = 49,
|
||
anon_sym_target_DASHarrowhead = 50,
|
||
sym_keyword_underscore = 51,
|
||
sym_keyword_classes = 52,
|
||
sym_keyword_class = 53,
|
||
sym_keyword_style = 54,
|
||
sym__dash = 55,
|
||
sym__colon = 56,
|
||
sym_arrow = 57,
|
||
sym_dot = 58,
|
||
aux_sym__unquoted_string_token1 = 59,
|
||
anon_sym_SQUOTE = 60,
|
||
anon_sym_DQUOTE = 61,
|
||
sym__unescaped_single_string_fragment = 62,
|
||
sym__unescaped_double_string_fragment = 63,
|
||
sym_escape_sequence = 64,
|
||
anon_sym_true = 65,
|
||
anon_sym_false = 66,
|
||
sym_integer = 67,
|
||
sym_float = 68,
|
||
sym_line_comment = 69,
|
||
sym__eol = 70,
|
||
anon_sym_SEMI = 71,
|
||
sym__text_block_start = 72,
|
||
sym__text_block_end = 73,
|
||
sym__text_block_raw_text = 74,
|
||
sym_block_comment = 75,
|
||
sym_source_file = 76,
|
||
sym__root_definition = 77,
|
||
sym_connection = 78,
|
||
sym__referencing_full_connection_path = 79,
|
||
sym__referencing_end = 80,
|
||
sym_index = 81,
|
||
sym__full_connection_path = 82,
|
||
sym__connection_path = 83,
|
||
sym__connection_block = 84,
|
||
sym_classes = 85,
|
||
sym__classes_block = 86,
|
||
sym__classes_item = 87,
|
||
sym__classes_item_block = 88,
|
||
sym__classes_item_attribute = 89,
|
||
sym_container = 90,
|
||
sym__container_block = 91,
|
||
sym__container_block_definition = 92,
|
||
sym_shape = 93,
|
||
sym_shape_key = 94,
|
||
sym__identifier = 95,
|
||
sym_text_block = 96,
|
||
sym__text_block_attrs = 97,
|
||
sym__root_attribute = 98,
|
||
sym__root_attr_key = 99,
|
||
sym__shape_attribute = 100,
|
||
sym__class_attribute = 101,
|
||
sym_class_list = 102,
|
||
sym__class_name = 103,
|
||
sym__base_shape_attribute = 104,
|
||
sym__shape_attr_key = 105,
|
||
sym__shape_list_attr_key = 106,
|
||
sym__style_attribute = 107,
|
||
sym__style_attribute_block = 108,
|
||
sym__inner_style_attribute = 109,
|
||
sym__grid_attr_key = 110,
|
||
sym__style_attr_key = 111,
|
||
sym__common_style_attr_key = 112,
|
||
sym__text_shape_attribute = 113,
|
||
sym__connection_attribute = 114,
|
||
sym__connection_arrowhead_attribute = 115,
|
||
sym__connection_arrowhead_attr_key = 116,
|
||
sym_label = 117,
|
||
sym_attr_value_list = 118,
|
||
sym_attr_value = 119,
|
||
aux_sym__unquoted_string = 120,
|
||
sym_string = 121,
|
||
sym_boolean = 122,
|
||
sym__end = 123,
|
||
aux_sym_source_file_repeat1 = 124,
|
||
aux_sym__full_connection_path_repeat1 = 125,
|
||
aux_sym__connection_path_repeat1 = 126,
|
||
aux_sym__connection_block_repeat1 = 127,
|
||
aux_sym__classes_block_repeat1 = 128,
|
||
aux_sym__classes_item_block_repeat1 = 129,
|
||
aux_sym__container_block_repeat1 = 130,
|
||
aux_sym__identifier_repeat1 = 131,
|
||
aux_sym__text_block_attrs_repeat1 = 132,
|
||
aux_sym_class_list_repeat1 = 133,
|
||
aux_sym__style_attribute_block_repeat1 = 134,
|
||
aux_sym_attr_value_list_repeat1 = 135,
|
||
aux_sym_string_repeat1 = 136,
|
||
alias_sym_class_name = 137,
|
||
alias_sym_container_key = 138,
|
||
alias_sym_reserved = 139,
|
||
};
|
||
|
||
static const char * const ts_symbol_names[] = {
|
||
[ts_builtin_sym_end] = "end",
|
||
[anon_sym_] = " |