5339 lines
158 KiB
C
5339 lines
158 KiB
C
#include <tree_sitter/parser.h>
|
||
|
||
#if defined(__GNUC__) || defined(__clang__)
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||
#endif
|
||
|
||
#define LANGUAGE_VERSION 14
|
||
#define STATE_COUNT 116
|
||
#define LARGE_STATE_COUNT 2
|
||
#define SYMBOL_COUNT 92
|
||
#define ALIAS_COUNT 1
|
||
#define TOKEN_COUNT 51
|
||
#define EXTERNAL_TOKEN_COUNT 1
|
||
#define FIELD_COUNT 0
|
||
#define MAX_ALIAS_SEQUENCE_LENGTH 5
|
||
#define PRODUCTION_ID_COUNT 3
|
||
|
||
enum {
|
||
sym__identifier = 1,
|
||
anon_sym_ = 2,
|
||
anon_sym_LBRACE = 3,
|
||
anon_sym_RBRACE = 4,
|
||
anon_sym_PIPE = 5,
|
||
anon_sym_PIPE_BQUOTE = 6,
|
||
anon_sym_BQUOTE_PIPE = 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_width = 15,
|
||
anon_sym_height = 16,
|
||
anon_sym_3d = 17,
|
||
anon_sym_opacity = 18,
|
||
anon_sym_fill = 19,
|
||
anon_sym_stroke = 20,
|
||
anon_sym_stroke_DASHwidth = 21,
|
||
anon_sym_stroke_DASHdash = 22,
|
||
anon_sym_border_DASHradius = 23,
|
||
anon_sym_font_DASHcolor = 24,
|
||
anon_sym_shadow = 25,
|
||
anon_sym_multiple = 26,
|
||
anon_sym_animated = 27,
|
||
anon_sym_link = 28,
|
||
sym__text_attr_key = 29,
|
||
anon_sym_source_DASHarrowhead = 30,
|
||
anon_sym_target_DASHarrowhead = 31,
|
||
sym__dash = 32,
|
||
anon_sym_COLON = 33,
|
||
sym_arrow = 34,
|
||
sym_dot = 35,
|
||
sym__unquoted_string = 36,
|
||
anon_sym_SQUOTE = 37,
|
||
aux_sym_string_token1 = 38,
|
||
anon_sym_DQUOTE = 39,
|
||
aux_sym_string_token2 = 40,
|
||
anon_sym_BQUOTE = 41,
|
||
aux_sym_string_token3 = 42,
|
||
anon_sym_true = 43,
|
||
anon_sym_false = 44,
|
||
sym_integer = 45,
|
||
sym_float = 46,
|
||
sym_line_comment = 47,
|
||
sym__eol = 48,
|
||
anon_sym_SEMI = 49,
|
||
sym__text_block_raw = 50,
|
||
sym_source_file = 51,
|
||
sym__root_definition = 52,
|
||
sym_connection = 53,
|
||
sym__connection_path = 54,
|
||
sym__connection_block = 55,
|
||
sym__connection_block_definition = 56,
|
||
sym_container = 57,
|
||
sym__container_block = 58,
|
||
sym__container_block_definition = 59,
|
||
sym_shape = 60,
|
||
sym_shape_key = 61,
|
||
sym_text_block = 62,
|
||
sym__text_block_definition = 63,
|
||
sym__root_attribute = 64,
|
||
sym__root_attr_key = 65,
|
||
sym__shape_attribute = 66,
|
||
sym__base_shape_attribute = 67,
|
||
sym__shape_attr_key = 68,
|
||
sym__style_attribute = 69,
|
||
sym__style_attribute_block = 70,
|
||
sym__inner_style_attribute = 71,
|
||
sym__style_attr_key = 72,
|
||
sym__common_style_attr_key = 73,
|
||
sym__connection_attribute = 74,
|
||
sym__connection_arrowhead_attribute = 75,
|
||
sym__connection_arrowhead_attr_key = 76,
|
||
sym_label = 77,
|
||
sym_attr_value = 78,
|
||
sym__colon = 79,
|
||
sym_string = 80,
|
||
sym_boolean = 81,
|
||
sym__end = 82,
|
||
aux_sym_source_file_repeat1 = 83,
|
||
aux_sym_connection_repeat1 = 84,
|
||
aux_sym__connection_path_repeat1 = 85,
|
||
aux_sym__connection_block_repeat1 = 86,
|
||
aux_sym__container_block_repeat1 = 87,
|
||
aux_sym__style_attribute_block_repeat1 = 88,
|
||
aux_sym_string_repeat1 = 89,
|
||
aux_sym_string_repeat2 = 90,
|
||
aux_sym_string_repeat3 = 91,
|
||
alias_sym_container_key = 92,
|
||
};
|
||
|
||
static const char * const ts_symbol_names[] = {
|
||
[ts_builtin_sym_end] = "end",
|
||
[sym__identifier] = "_identifier",
|
||
[anon_sym_] = " |