7118 lines
207 KiB
C
7118 lines
207 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 171
|
||
#define LARGE_STATE_COUNT 2
|
||
#define SYMBOL_COUNT 107
|
||
#define ALIAS_COUNT 1
|
||
#define TOKEN_COUNT 66
|
||
#define EXTERNAL_TOKEN_COUNT 4
|
||
#define FIELD_COUNT 0
|
||
#define MAX_ALIAS_SEQUENCE_LENGTH 5
|
||
#define PRODUCTION_ID_COUNT 3
|
||
|
||
enum {
|
||
anon_sym_ = 1,
|
||
anon_sym_LBRACE = 2,
|
||
anon_sym_RBRACE = 3,
|
||
aux_sym__identifier_token1 = 4,
|
||
aux_sym__identifier_token2 = 5,
|
||
aux_sym__identifier_token3 = 6,
|
||
aux_sym_text_block_token1 = 7,
|
||
sym_language = 8,
|
||
anon_sym_direction = 9,
|
||
anon_sym_shape = 10,
|
||
anon_sym_label = 11,
|
||
anon_sym_constraint = 12,
|
||
anon_sym_icon = 13,
|
||
anon_sym_style = 14,
|
||
anon_sym_link = 15,
|
||
anon_sym_tooltip = 16,
|
||
anon_sym_width = 17,
|
||
anon_sym_height = 18,
|
||
anon_sym_vertical_DASHgap = 19,
|
||
anon_sym_horizontal_DASHgap = 20,
|
||
anon_sym_grid_DASHgap = 21,
|
||
anon_sym_grid_DASHcolumns = 22,
|
||
anon_sym_grid_DASHrows = 23,
|
||
anon_sym_3d = 24,
|
||
anon_sym_opacity = 25,
|
||
anon_sym_fill = 26,
|
||
anon_sym_fill_DASHpattern = 27,
|
||
anon_sym_stroke = 28,
|
||
anon_sym_stroke_DASHwidth = 29,
|
||
anon_sym_stroke_DASHdash = 30,
|
||
anon_sym_border_DASHradius = 31,
|
||
anon_sym_double_DASHborder = 32,
|
||
anon_sym_font_DASHsize = 33,
|
||
anon_sym_font_DASHcolor = 34,
|
||
anon_sym_shadow = 35,
|
||
anon_sym_multiple = 36,
|
||
anon_sym_animated = 37,
|
||
anon_sym_italic = 38,
|
||
anon_sym_bold = 39,
|
||
anon_sym_underline = 40,
|
||
anon_sym_text_DASHtransform = 41,
|
||
sym__text_attr_key = 42,
|
||
anon_sym_source_DASHarrowhead = 43,
|
||
anon_sym_target_DASHarrowhead = 44,
|
||
sym__dash = 45,
|
||
anon_sym_COLON = 46,
|
||
sym_arrow = 47,
|
||
sym_dot = 48,
|
||
aux_sym__unquoted_string_token1 = 49,
|
||
anon_sym_SQUOTE = 50,
|
||
anon_sym_DQUOTE = 51,
|
||
sym__unescaped_single_string_fragment = 52,
|
||
sym__unescaped_double_string_fragment = 53,
|
||
sym_escape_sequence = 54,
|
||
anon_sym_true = 55,
|
||
anon_sym_false = 56,
|
||
sym_integer = 57,
|
||
sym_float = 58,
|
||
sym_line_comment = 59,
|
||
sym__eol = 60,
|
||
anon_sym_SEMI = 61,
|
||
sym__text_block_start = 62,
|
||
sym__text_block_end = 63,
|
||
sym__text_block_raw_text = 64,
|
||
sym_block_comment = 65,
|
||
sym_source_file = 66,
|
||
sym__root_definition = 67,
|
||
sym_connection = 68,
|
||
sym__connection_path = 69,
|
||
sym__connection_block = 70,
|
||
sym_container = 71,
|
||
sym__container_block = 72,
|
||
sym__container_block_definition = 73,
|
||
sym_shape = 74,
|
||
sym_shape_key = 75,
|
||
sym__identifier = 76,
|
||
sym_text_block = 77,
|
||
sym__root_attribute = 78,
|
||
sym__root_attr_key = 79,
|
||
sym__shape_attribute = 80,
|
||
sym__base_shape_attribute = 81,
|
||
sym__shape_attr_key = 82,
|
||
sym__style_attribute = 83,
|
||
sym__style_attribute_block = 84,
|
||
sym__inner_style_attribute = 85,
|
||
sym__grid_attr_key = 86,
|
||
sym__style_attr_key = 87,
|
||
sym__common_style_attr_key = 88,
|
||
sym__connection_attribute = 89,
|
||
sym__connection_arrowhead_attribute = 90,
|
||
sym__connection_arrowhead_attr_key = 91,
|
||
sym_label = 92,
|
||
sym_attr_value = 93,
|
||
sym__colon = 94,
|
||
aux_sym__unquoted_string = 95,
|
||
sym_string = 96,
|
||
sym_boolean = 97,
|
||
sym__end = 98,
|
||
aux_sym_source_file_repeat1 = 99,
|
||
aux_sym_connection_repeat1 = 100,
|
||
aux_sym__connection_path_repeat1 = 101,
|
||
aux_sym__connection_block_repeat1 = 102,
|
||
aux_sym__container_block_repeat1 = 103,
|
||
aux_sym__identifier_repeat1 = 104,
|
||
aux_sym__style_attribute_block_repeat1 = 105,
|
||
aux_sym_string_repeat1 = 106,
|
||
alias_sym_container_key = 107,
|
||
};
|
||
|
||
static const char * const ts_symbol_names[] = {
|
||
[ts_builtin_sym_end] = "end",
|
||
[anon_sym_] = " |