diff --git a/grammar.js b/grammar.js index 2be75ce..6f17c7e 100644 --- a/grammar.js +++ b/grammar.js @@ -5,11 +5,11 @@ const PREC = { conn_identifier: 90, block: 20, + label: 10, }; -const terminator = token(prec(PREC.term, - choice(/\n/, ';', '\0'))); +const terminator = token(prec(PREC.term, choice(/\n/, ';', '\0'))); const opseq = (...x) => optional(seq(...x)) const opfield = (...x) => optional(field(...x)) @@ -63,15 +63,21 @@ module.exports = grammar({ block: $ => seq("{", repeat($.declaration), "}"), label: $ => choice( - $._label_codeblock, + $.label_codeblock, repeat1($._label_base), token(seq('"', /.*/, '"')), ), - _label_codeblock: _ => choice( - seq(repeat1("|"), /[^\|]+/, repeat1("|")), + label_codeblock: $ => choice( + seq("|`", $._label_codeblock_lang, /[^`]*/, "`|"), + seq("|||", $._label_codeblock_lang, $._label_codeblock_body, "|||"), + seq("||", $._label_codeblock_lang, $._label_codeblock_body, "||"), + seq("|", $._label_codeblock_lang, /[^\|]+/, "|"), ), + _label_codeblock_lang: _ => token(/[a-zA-Z]+/), + _label_codeblock_body: _ => repeat1(seq(/.+/, /\s*/)), + _label_base: $ => choice( $._ident_base, token(prec(PREC.label, /[\\\:\.\-\%\_#&]+/)) // idk how to make it better @@ -95,7 +101,7 @@ module.exports = grammar({ seq($._ident_base, rseq(/[\s\-\'_]+/, $._ident_base)), // normal token("_"), // parent-ref ), - _ident_base: _ => /[\p{L}\d\/]+/, + _ident_base: _ => /[\p{L}\d\/\*]+/, comment: _ => token(seq('#', /.*/)), diff --git a/src/grammar.json b/src/grammar.json index ed629be..973494a 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -200,7 +200,7 @@ "members": [ { "type": "SYMBOL", - "name": "_label_codeblock" + "name": "label_codeblock" }, { "type": "REPEAT1", @@ -231,34 +231,118 @@ } ] }, - "_label_codeblock": { + "label_codeblock": { "type": "CHOICE", "members": [ { "type": "SEQ", "members": [ { - "type": "REPEAT1", - "content": { - "type": "STRING", - "value": "|" - } + "type": "STRING", + "value": "|`" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_lang" + }, + { + "type": "PATTERN", + "value": "[^`]*" + }, + { + "type": "STRING", + "value": "`|" + } + ] + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "|||" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_lang" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_body" + }, + { + "type": "STRING", + "value": "|||" + } + ] + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "||" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_lang" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_body" + }, + { + "type": "STRING", + "value": "||" + } + ] + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "|" + }, + { + "type": "SYMBOL", + "name": "_label_codeblock_lang" }, { "type": "PATTERN", "value": "[^\\|]+" }, { - "type": "REPEAT1", - "content": { - "type": "STRING", - "value": "|" - } + "type": "STRING", + "value": "|" } ] } ] }, + "_label_codeblock_lang": { + "type": "TOKEN", + "content": { + "type": "PATTERN", + "value": "[a-zA-Z]+" + } + }, + "_label_codeblock_body": { + "type": "REPEAT1", + "content": { + "type": "SEQ", + "members": [ + { + "type": "PATTERN", + "value": ".+" + }, + { + "type": "PATTERN", + "value": "\\s*" + } + ] + } + }, "_label_base": { "type": "CHOICE", "members": [ @@ -420,7 +504,7 @@ }, "_ident_base": { "type": "PATTERN", - "value": "[\\p{L}\\d\\/]+" + "value": "[\\p{L}\\d\\/\\*]+" }, "comment": { "type": "TOKEN", diff --git a/src/node-types.json b/src/node-types.json index ecbfaa0..8acc8e8 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -135,6 +135,21 @@ { "type": "label", "named": true, + "fields": {}, + "children": { + "multiple": false, + "required": false, + "types": [ + { + "type": "label_codeblock", + "named": true + } + ] + } + }, + { + "type": "label_codeblock", + "named": true, "fields": {} }, { @@ -177,6 +192,10 @@ "type": "_", "named": false }, + { + "type": "`|", + "named": false + }, { "type": "comment", "named": true @@ -197,6 +216,18 @@ "type": "|", "named": false }, + { + "type": "|`", + "named": false + }, + { + "type": "||", + "named": false + }, + { + "type": "|||", + "named": false + }, { "type": "}", "named": false diff --git a/src/parser.c b/src/parser.c index 01b8351..ba0746a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,11 +5,11 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 112 +#define STATE_COUNT 126 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 35 +#define SYMBOL_COUNT 43 #define ALIAS_COUNT 0 -#define TOKEN_COUNT 18 +#define TOKEN_COUNT 26 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 6 #define MAX_ALIAS_SEQUENCE_LENGTH 5 @@ -23,33 +23,41 @@ enum ts_symbol_identifiers { anon_sym_LBRACE = 5, anon_sym_RBRACE = 6, aux_sym_label_token1 = 7, - anon_sym_PIPE = 8, - aux_sym__label_codeblock_token1 = 9, - aux_sym__label_base_token1 = 10, - anon_sym_LPAREN = 11, - anon_sym_RPAREN = 12, - sym_connection_identifier = 13, - anon_sym_DOT = 14, - aux_sym__ident_token1 = 15, - anon_sym__ = 16, - sym_comment = 17, - sym_source_file = 18, - sym_declaration = 19, - sym__expr = 20, - sym_block = 21, - sym_label = 22, - sym__label_codeblock = 23, - sym__label_base = 24, - sym_connection_refference = 25, - sym_identifier = 26, - aux_sym__fields = 27, - sym__ident = 28, - aux_sym_source_file_repeat1 = 29, - aux_sym__expr_repeat1 = 30, - aux_sym_block_repeat1 = 31, - aux_sym_label_repeat1 = 32, - aux_sym__label_codeblock_repeat1 = 33, - aux_sym__ident_repeat1 = 34, + anon_sym_PIPE_BQUOTE = 8, + aux_sym_label_codeblock_token1 = 9, + anon_sym_BQUOTE_PIPE = 10, + anon_sym_PIPE_PIPE_PIPE = 11, + anon_sym_PIPE_PIPE = 12, + anon_sym_PIPE = 13, + aux_sym_label_codeblock_token2 = 14, + sym__label_codeblock_lang = 15, + aux_sym__label_codeblock_body_token1 = 16, + aux_sym__label_codeblock_body_token2 = 17, + aux_sym__label_base_token1 = 18, + anon_sym_LPAREN = 19, + anon_sym_RPAREN = 20, + sym_connection_identifier = 21, + anon_sym_DOT = 22, + aux_sym__ident_token1 = 23, + anon_sym__ = 24, + sym_comment = 25, + sym_source_file = 26, + sym_declaration = 27, + sym__expr = 28, + sym_block = 29, + sym_label = 30, + sym_label_codeblock = 31, + aux_sym__label_codeblock_body = 32, + sym__label_base = 33, + sym_connection_refference = 34, + sym_identifier = 35, + aux_sym__fields = 36, + sym__ident = 37, + aux_sym_source_file_repeat1 = 38, + aux_sym__expr_repeat1 = 39, + aux_sym_block_repeat1 = 40, + aux_sym_label_repeat1 = 41, + aux_sym__ident_repeat1 = 42, }; static const char * const ts_symbol_names[] = { @@ -61,8 +69,16 @@ static const char * const ts_symbol_names[] = { [anon_sym_LBRACE] = "{", [anon_sym_RBRACE] = "}", [aux_sym_label_token1] = "label_token1", + [anon_sym_PIPE_BQUOTE] = "|`", + [aux_sym_label_codeblock_token1] = "label_codeblock_token1", + [anon_sym_BQUOTE_PIPE] = "`|", + [anon_sym_PIPE_PIPE_PIPE] = "|||", + [anon_sym_PIPE_PIPE] = "||", [anon_sym_PIPE] = "|", - [aux_sym__label_codeblock_token1] = "_label_codeblock_token1", + [aux_sym_label_codeblock_token2] = "label_codeblock_token2", + [sym__label_codeblock_lang] = "_label_codeblock_lang", + [aux_sym__label_codeblock_body_token1] = "_label_codeblock_body_token1", + [aux_sym__label_codeblock_body_token2] = "_label_codeblock_body_token2", [aux_sym__label_base_token1] = "_label_base_token1", [anon_sym_LPAREN] = "(", [anon_sym_RPAREN] = ")", @@ -76,7 +92,8 @@ static const char * const ts_symbol_names[] = { [sym__expr] = "_expr", [sym_block] = "block", [sym_label] = "label", - [sym__label_codeblock] = "_label_codeblock", + [sym_label_codeblock] = "label_codeblock", + [aux_sym__label_codeblock_body] = "_label_codeblock_body", [sym__label_base] = "_label_base", [sym_connection_refference] = "connection_refference", [sym_identifier] = "identifier", @@ -86,7 +103,6 @@ static const char * const ts_symbol_names[] = { [aux_sym__expr_repeat1] = "_expr_repeat1", [aux_sym_block_repeat1] = "block_repeat1", [aux_sym_label_repeat1] = "label_repeat1", - [aux_sym__label_codeblock_repeat1] = "_label_codeblock_repeat1", [aux_sym__ident_repeat1] = "_ident_repeat1", }; @@ -99,8 +115,16 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_LBRACE] = anon_sym_LBRACE, [anon_sym_RBRACE] = anon_sym_RBRACE, [aux_sym_label_token1] = aux_sym_label_token1, + [anon_sym_PIPE_BQUOTE] = anon_sym_PIPE_BQUOTE, + [aux_sym_label_codeblock_token1] = aux_sym_label_codeblock_token1, + [anon_sym_BQUOTE_PIPE] = anon_sym_BQUOTE_PIPE, + [anon_sym_PIPE_PIPE_PIPE] = anon_sym_PIPE_PIPE_PIPE, + [anon_sym_PIPE_PIPE] = anon_sym_PIPE_PIPE, [anon_sym_PIPE] = anon_sym_PIPE, - [aux_sym__label_codeblock_token1] = aux_sym__label_codeblock_token1, + [aux_sym_label_codeblock_token2] = aux_sym_label_codeblock_token2, + [sym__label_codeblock_lang] = sym__label_codeblock_lang, + [aux_sym__label_codeblock_body_token1] = aux_sym__label_codeblock_body_token1, + [aux_sym__label_codeblock_body_token2] = aux_sym__label_codeblock_body_token2, [aux_sym__label_base_token1] = aux_sym__label_base_token1, [anon_sym_LPAREN] = anon_sym_LPAREN, [anon_sym_RPAREN] = anon_sym_RPAREN, @@ -114,7 +138,8 @@ static const TSSymbol ts_symbol_map[] = { [sym__expr] = sym__expr, [sym_block] = sym_block, [sym_label] = sym_label, - [sym__label_codeblock] = sym__label_codeblock, + [sym_label_codeblock] = sym_label_codeblock, + [aux_sym__label_codeblock_body] = aux_sym__label_codeblock_body, [sym__label_base] = sym__label_base, [sym_connection_refference] = sym_connection_refference, [sym_identifier] = sym_identifier, @@ -124,7 +149,6 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__expr_repeat1] = aux_sym__expr_repeat1, [aux_sym_block_repeat1] = aux_sym_block_repeat1, [aux_sym_label_repeat1] = aux_sym_label_repeat1, - [aux_sym__label_codeblock_repeat1] = aux_sym__label_codeblock_repeat1, [aux_sym__ident_repeat1] = aux_sym__ident_repeat1, }; @@ -161,11 +185,43 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, + [anon_sym_PIPE_BQUOTE] = { + .visible = true, + .named = false, + }, + [aux_sym_label_codeblock_token1] = { + .visible = false, + .named = false, + }, + [anon_sym_BQUOTE_PIPE] = { + .visible = true, + .named = false, + }, + [anon_sym_PIPE_PIPE_PIPE] = { + .visible = true, + .named = false, + }, + [anon_sym_PIPE_PIPE] = { + .visible = true, + .named = false, + }, [anon_sym_PIPE] = { .visible = true, .named = false, }, - [aux_sym__label_codeblock_token1] = { + [aux_sym_label_codeblock_token2] = { + .visible = false, + .named = false, + }, + [sym__label_codeblock_lang] = { + .visible = false, + .named = true, + }, + [aux_sym__label_codeblock_body_token1] = { + .visible = false, + .named = false, + }, + [aux_sym__label_codeblock_body_token2] = { .visible = false, .named = false, }, @@ -221,10 +277,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym__label_codeblock] = { - .visible = false, + [sym_label_codeblock] = { + .visible = true, .named = true, }, + [aux_sym__label_codeblock_body] = { + .visible = false, + .named = false, + }, [sym__label_base] = { .visible = false, .named = true, @@ -261,10 +321,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [aux_sym__label_codeblock_repeat1] = { - .visible = false, - .named = false, - }, [aux_sym__ident_repeat1] = { .visible = false, .named = false, @@ -420,7 +476,7 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [35] = 15, [36] = 16, [37] = 14, - [38] = 38, + [38] = 14, [39] = 39, [40] = 40, [41] = 41, @@ -433,124 +489,138 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [48] = 48, [49] = 49, [50] = 50, - [51] = 14, - [52] = 52, - [53] = 52, - [54] = 40, - [55] = 41, - [56] = 44, - [57] = 15, - [58] = 58, - [59] = 38, + [51] = 51, + [52] = 14, + [53] = 53, + [54] = 53, + [55] = 42, + [56] = 43, + [57] = 46, + [58] = 15, + [59] = 17, [60] = 60, [61] = 61, [62] = 62, - [63] = 58, - [64] = 16, - [65] = 42, - [66] = 43, - [67] = 67, - [68] = 45, - [69] = 46, - [70] = 48, - [71] = 50, - [72] = 60, - [73] = 44, - [74] = 14, - [75] = 47, - [76] = 61, - [77] = 62, - [78] = 17, - [79] = 79, + [63] = 39, + [64] = 40, + [65] = 16, + [66] = 44, + [67] = 45, + [68] = 47, + [69] = 48, + [70] = 50, + [71] = 51, + [72] = 61, + [73] = 46, + [74] = 49, + [75] = 60, + [76] = 62, + [77] = 77, + [78] = 24, + [79] = 26, [80] = 80, - [81] = 24, - [82] = 67, - [83] = 25, + [81] = 27, + [82] = 82, + [83] = 83, [84] = 84, - [85] = 26, - [86] = 27, - [87] = 80, - [88] = 79, + [85] = 83, + [86] = 84, + [87] = 25, + [88] = 77, [89] = 89, - [90] = 90, - [91] = 39, + [90] = 41, + [91] = 91, [92] = 92, [93] = 93, [94] = 94, - [95] = 95, + [95] = 94, [96] = 96, [97] = 97, [98] = 98, [99] = 99, [100] = 100, [101] = 101, - [102] = 97, - [103] = 93, - [104] = 96, + [102] = 102, + [103] = 103, + [104] = 104, [105] = 105, [106] = 106, - [107] = 99, - [108] = 101, - [109] = 98, - [110] = 106, - [111] = 97, + [107] = 107, + [108] = 108, + [109] = 109, + [110] = 110, + [111] = 111, + [112] = 98, + [113] = 113, + [114] = 113, + [115] = 115, + [116] = 111, + [117] = 108, + [118] = 118, + [119] = 110, + [120] = 120, + [121] = 101, + [122] = 100, + [123] = 120, + [124] = 124, + [125] = 98, }; static TSCharacterRange sym__ident_base_character_set_1[] = { - {'/', '9'}, {'A', 'Z'}, {'a', 'z'}, {0xaa, 0xaa}, {0xb5, 0xb5}, {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6}, - {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x370, 0x374}, {0x376, 0x377}, {0x37a, 0x37d}, - {0x37f, 0x37f}, {0x386, 0x386}, {0x388, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481}, {0x48a, 0x52f}, - {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2}, {0x620, 0x64a}, {0x66e, 0x66f}, {0x671, 0x6d3}, - {0x6d5, 0x6d5}, {0x6e5, 0x6e6}, {0x6ee, 0x6ef}, {0x6fa, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x710}, {0x712, 0x72f}, {0x74d, 0x7a5}, - {0x7b1, 0x7b1}, {0x7ca, 0x7ea}, {0x7f4, 0x7f5}, {0x7fa, 0x7fa}, {0x800, 0x815}, {0x81a, 0x81a}, {0x824, 0x824}, {0x828, 0x828}, - {0x840, 0x858}, {0x860, 0x86a}, {0x870, 0x887}, {0x889, 0x88e}, {0x8a0, 0x8c9}, {0x904, 0x939}, {0x93d, 0x93d}, {0x950, 0x950}, - {0x958, 0x961}, {0x971, 0x980}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8}, {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, - {0x9bd, 0x9bd}, {0x9ce, 0x9ce}, {0x9dc, 0x9dd}, {0x9df, 0x9e1}, {0x9f0, 0x9f1}, {0x9fc, 0x9fc}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, - {0xa13, 0xa28}, {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39}, {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa72, 0xa74}, - {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabd, 0xabd}, {0xad0, 0xad0}, - {0xae0, 0xae1}, {0xaf9, 0xaf9}, {0xb05, 0xb0c}, {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33}, {0xb35, 0xb39}, - {0xb3d, 0xb3d}, {0xb5c, 0xb5d}, {0xb5f, 0xb61}, {0xb71, 0xb71}, {0xb83, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90}, {0xb92, 0xb95}, - {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb9}, {0xbd0, 0xbd0}, {0xc05, 0xc0c}, - {0xc0e, 0xc10}, {0xc12, 0xc28}, {0xc2a, 0xc39}, {0xc3d, 0xc3d}, {0xc58, 0xc5a}, {0xc5d, 0xc5d}, {0xc60, 0xc61}, {0xc80, 0xc80}, - {0xc85, 0xc8c}, {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbd, 0xcbd}, {0xcdd, 0xcde}, {0xce0, 0xce1}, - {0xcf1, 0xcf2}, {0xd04, 0xd0c}, {0xd0e, 0xd10}, {0xd12, 0xd3a}, {0xd3d, 0xd3d}, {0xd4e, 0xd4e}, {0xd54, 0xd56}, {0xd5f, 0xd61}, - {0xd7a, 0xd7f}, {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xe01, 0xe30}, {0xe32, 0xe33}, - {0xe40, 0xe46}, {0xe81, 0xe82}, {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3}, {0xea5, 0xea5}, {0xea7, 0xeb0}, {0xeb2, 0xeb3}, - {0xebd, 0xebd}, {0xec0, 0xec4}, {0xec6, 0xec6}, {0xedc, 0xedf}, {0xf00, 0xf00}, {0xf40, 0xf47}, {0xf49, 0xf6c}, {0xf88, 0xf8c}, - {0x1000, 0x102a}, {0x103f, 0x103f}, {0x1050, 0x1055}, {0x105a, 0x105d}, {0x1061, 0x1061}, {0x1065, 0x1066}, {0x106e, 0x1070}, {0x1075, 0x1081}, - {0x108e, 0x108e}, {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa}, {0x10fc, 0x1248}, {0x124a, 0x124d}, {0x1250, 0x1256}, - {0x1258, 0x1258}, {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0}, {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, - {0x12c2, 0x12c5}, {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a}, {0x1380, 0x138f}, {0x13a0, 0x13f5}, {0x13f8, 0x13fd}, - {0x1401, 0x166c}, {0x166f, 0x167f}, {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x16f1, 0x16f8}, {0x1700, 0x1711}, {0x171f, 0x1731}, {0x1740, 0x1751}, - {0x1760, 0x176c}, {0x176e, 0x1770}, {0x1780, 0x17b3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dc}, {0x1820, 0x1878}, {0x1880, 0x1884}, {0x1887, 0x18a8}, - {0x18aa, 0x18aa}, {0x18b0, 0x18f5}, {0x1900, 0x191e}, {0x1950, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab}, {0x19b0, 0x19c9}, {0x1a00, 0x1a16}, - {0x1a20, 0x1a54}, {0x1aa7, 0x1aa7}, {0x1b05, 0x1b33}, {0x1b45, 0x1b4c}, {0x1b83, 0x1ba0}, {0x1bae, 0x1baf}, {0x1bba, 0x1be5}, {0x1c00, 0x1c23}, - {0x1c4d, 0x1c4f}, {0x1c5a, 0x1c7d}, {0x1c80, 0x1c88}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf}, {0x1ce9, 0x1cec}, {0x1cee, 0x1cf3}, {0x1cf5, 0x1cf6}, - {0x1cfa, 0x1cfa}, {0x1d00, 0x1dbf}, {0x1e00, 0x1f15}, {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57}, {0x1f59, 0x1f59}, - {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fcc}, - {0x1fd0, 0x1fd3}, {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x2071, 0x2071}, {0x207f, 0x207f}, {0x2090, 0x209c}, - {0x2102, 0x2102}, {0x2107, 0x2107}, {0x210a, 0x2113}, {0x2115, 0x2115}, {0x2119, 0x211d}, {0x2124, 0x2124}, {0x2126, 0x2126}, {0x2128, 0x2128}, - {0x212a, 0x212d}, {0x212f, 0x2139}, {0x213c, 0x213f}, {0x2145, 0x2149}, {0x214e, 0x214e}, {0x2183, 0x2184}, {0x2c00, 0x2ce4}, {0x2ceb, 0x2cee}, - {0x2cf2, 0x2cf3}, {0x2d00, 0x2d25}, {0x2d27, 0x2d27}, {0x2d2d, 0x2d2d}, {0x2d30, 0x2d67}, {0x2d6f, 0x2d6f}, {0x2d80, 0x2d96}, {0x2da0, 0x2da6}, - {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, {0x2db8, 0x2dbe}, {0x2dc0, 0x2dc6}, {0x2dc8, 0x2dce}, {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde}, {0x2e2f, 0x2e2f}, - {0x3005, 0x3006}, {0x3031, 0x3035}, {0x303b, 0x303c}, {0x3041, 0x3096}, {0x309d, 0x309f}, {0x30a1, 0x30fa}, {0x30fc, 0x30ff}, {0x3105, 0x312f}, - {0x3131, 0x318e}, {0x31a0, 0x31bf}, {0x31f0, 0x31ff}, {0x3400, 0x3400}, {0x4dbf, 0x4dbf}, {0x4e00, 0x4e00}, {0x9fff, 0xa48c}, {0xa4d0, 0xa4fd}, - {0xa500, 0xa60c}, {0xa610, 0xa61f}, {0xa62a, 0xa62b}, {0xa640, 0xa66e}, {0xa67f, 0xa69d}, {0xa6a0, 0xa6e5}, {0xa717, 0xa71f}, {0xa722, 0xa788}, - {0xa78b, 0xa7ca}, {0xa7d0, 0xa7d1}, {0xa7d3, 0xa7d3}, {0xa7d5, 0xa7d9}, {0xa7f2, 0xa801}, {0xa803, 0xa805}, {0xa807, 0xa80a}, {0xa80c, 0xa822}, - {0xa840, 0xa873}, {0xa882, 0xa8b3}, {0xa8f2, 0xa8f7}, {0xa8fb, 0xa8fb}, {0xa8fd, 0xa8fe}, {0xa90a, 0xa925}, {0xa930, 0xa946}, {0xa960, 0xa97c}, - {0xa984, 0xa9b2}, {0xa9cf, 0xa9cf}, {0xa9e0, 0xa9e4}, {0xa9e6, 0xa9ef}, {0xa9fa, 0xa9fe}, {0xaa00, 0xaa28}, {0xaa40, 0xaa42}, {0xaa44, 0xaa4b}, - {0xaa60, 0xaa76}, {0xaa7a, 0xaa7a}, {0xaa7e, 0xaaaf}, {0xaab1, 0xaab1}, {0xaab5, 0xaab6}, {0xaab9, 0xaabd}, {0xaac0, 0xaac0}, {0xaac2, 0xaac2}, - {0xaadb, 0xaadd}, {0xaae0, 0xaaea}, {0xaaf2, 0xaaf4}, {0xab01, 0xab06}, {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, {0xab28, 0xab2e}, - {0xab30, 0xab5a}, {0xab5c, 0xab69}, {0xab70, 0xabe2}, {0xac00, 0xac00}, {0xd7a3, 0xd7a3}, {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb}, {0xf900, 0xfa6d}, - {0xfa70, 0xfad9}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb1d}, {0xfb1f, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e}, - {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfd3d}, {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb}, {0xfe70, 0xfe74}, - {0xfe76, 0xfefc}, {0xff21, 0xff3a}, {0xff41, 0xff5a}, {0xff66, 0xffbe}, {0xffc2, 0xffc7}, {0xffca, 0xffcf}, {0xffd2, 0xffd7}, {0xffda, 0xffdc}, - {0x10000, 0x1000b}, {0x1000d, 0x10026}, {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d}, {0x10050, 0x1005d}, {0x10080, 0x100fa}, {0x10280, 0x1029c}, - {0x102a0, 0x102d0}, {0x10300, 0x1031f}, {0x1032d, 0x10340}, {0x10342, 0x10349}, {0x10350, 0x10375}, {0x10380, 0x1039d}, {0x103a0, 0x103c3}, {0x103c8, 0x103cf}, - {0x10400, 0x1049d}, {0x104b0, 0x104d3}, {0x104d8, 0x104fb}, {0x10500, 0x10527}, {0x10530, 0x10563}, {0x10570, 0x1057a}, {0x1057c, 0x1058a}, {0x1058c, 0x10592}, - {0x10594, 0x10595}, {0x10597, 0x105a1}, {0x105a3, 0x105b1}, {0x105b3, 0x105b9}, {0x105bb, 0x105bc}, {0x10600, 0x10736}, {0x10740, 0x10755}, {0x10760, 0x10767}, - {0x10780, 0x10785}, {0x10787, 0x107b0}, {0x107b2, 0x107ba}, {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835}, {0x10837, 0x10838}, {0x1083c, 0x1083c}, - {0x1083f, 0x10855}, {0x10860, 0x10876}, {0x10880, 0x1089e}, {0x108e0, 0x108f2}, {0x108f4, 0x108f5}, {0x10900, 0x10915}, + {'*', '*'}, {'/', '9'}, {'A', 'Z'}, {'a', 'z'}, {0xaa, 0xaa}, {0xb5, 0xb5}, {0xba, 0xba}, {0xc0, 0xd6}, + {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x370, 0x374}, {0x376, 0x377}, + {0x37a, 0x37d}, {0x37f, 0x37f}, {0x386, 0x386}, {0x388, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481}, + {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2}, {0x620, 0x64a}, {0x66e, 0x66f}, + {0x671, 0x6d3}, {0x6d5, 0x6d5}, {0x6e5, 0x6e6}, {0x6ee, 0x6ef}, {0x6fa, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x710}, {0x712, 0x72f}, + {0x74d, 0x7a5}, {0x7b1, 0x7b1}, {0x7ca, 0x7ea}, {0x7f4, 0x7f5}, {0x7fa, 0x7fa}, {0x800, 0x815}, {0x81a, 0x81a}, {0x824, 0x824}, + {0x828, 0x828}, {0x840, 0x858}, {0x860, 0x86a}, {0x870, 0x887}, {0x889, 0x88e}, {0x8a0, 0x8c9}, {0x904, 0x939}, {0x93d, 0x93d}, + {0x950, 0x950}, {0x958, 0x961}, {0x971, 0x980}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8}, {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, + {0x9b6, 0x9b9}, {0x9bd, 0x9bd}, {0x9ce, 0x9ce}, {0x9dc, 0x9dd}, {0x9df, 0x9e1}, {0x9f0, 0x9f1}, {0x9fc, 0x9fc}, {0xa05, 0xa0a}, + {0xa0f, 0xa10}, {0xa13, 0xa28}, {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39}, {0xa59, 0xa5c}, {0xa5e, 0xa5e}, + {0xa72, 0xa74}, {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabd, 0xabd}, + {0xad0, 0xad0}, {0xae0, 0xae1}, {0xaf9, 0xaf9}, {0xb05, 0xb0c}, {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33}, + {0xb35, 0xb39}, {0xb3d, 0xb3d}, {0xb5c, 0xb5d}, {0xb5f, 0xb61}, {0xb71, 0xb71}, {0xb83, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90}, + {0xb92, 0xb95}, {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb9}, {0xbd0, 0xbd0}, + {0xc05, 0xc0c}, {0xc0e, 0xc10}, {0xc12, 0xc28}, {0xc2a, 0xc39}, {0xc3d, 0xc3d}, {0xc58, 0xc5a}, {0xc5d, 0xc5d}, {0xc60, 0xc61}, + {0xc80, 0xc80}, {0xc85, 0xc8c}, {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbd, 0xcbd}, {0xcdd, 0xcde}, + {0xce0, 0xce1}, {0xcf1, 0xcf2}, {0xd04, 0xd0c}, {0xd0e, 0xd10}, {0xd12, 0xd3a}, {0xd3d, 0xd3d}, {0xd4e, 0xd4e}, {0xd54, 0xd56}, + {0xd5f, 0xd61}, {0xd7a, 0xd7f}, {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xe01, 0xe30}, + {0xe32, 0xe33}, {0xe40, 0xe46}, {0xe81, 0xe82}, {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3}, {0xea5, 0xea5}, {0xea7, 0xeb0}, + {0xeb2, 0xeb3}, {0xebd, 0xebd}, {0xec0, 0xec4}, {0xec6, 0xec6}, {0xedc, 0xedf}, {0xf00, 0xf00}, {0xf40, 0xf47}, {0xf49, 0xf6c}, + {0xf88, 0xf8c}, {0x1000, 0x102a}, {0x103f, 0x103f}, {0x1050, 0x1055}, {0x105a, 0x105d}, {0x1061, 0x1061}, {0x1065, 0x1066}, {0x106e, 0x1070}, + {0x1075, 0x1081}, {0x108e, 0x108e}, {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa}, {0x10fc, 0x1248}, {0x124a, 0x124d}, + {0x1250, 0x1256}, {0x1258, 0x1258}, {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0}, {0x12b2, 0x12b5}, {0x12b8, 0x12be}, + {0x12c0, 0x12c0}, {0x12c2, 0x12c5}, {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a}, {0x1380, 0x138f}, {0x13a0, 0x13f5}, + {0x13f8, 0x13fd}, {0x1401, 0x166c}, {0x166f, 0x167f}, {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x16f1, 0x16f8}, {0x1700, 0x1711}, {0x171f, 0x1731}, + {0x1740, 0x1751}, {0x1760, 0x176c}, {0x176e, 0x1770}, {0x1780, 0x17b3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dc}, {0x1820, 0x1878}, {0x1880, 0x1884}, + {0x1887, 0x18a8}, {0x18aa, 0x18aa}, {0x18b0, 0x18f5}, {0x1900, 0x191e}, {0x1950, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab}, {0x19b0, 0x19c9}, + {0x1a00, 0x1a16}, {0x1a20, 0x1a54}, {0x1aa7, 0x1aa7}, {0x1b05, 0x1b33}, {0x1b45, 0x1b4c}, {0x1b83, 0x1ba0}, {0x1bae, 0x1baf}, {0x1bba, 0x1be5}, + {0x1c00, 0x1c23}, {0x1c4d, 0x1c4f}, {0x1c5a, 0x1c7d}, {0x1c80, 0x1c88}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf}, {0x1ce9, 0x1cec}, {0x1cee, 0x1cf3}, + {0x1cf5, 0x1cf6}, {0x1cfa, 0x1cfa}, {0x1d00, 0x1dbf}, {0x1e00, 0x1f15}, {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57}, + {0x1f59, 0x1f59}, {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, + {0x1fc6, 0x1fcc}, {0x1fd0, 0x1fd3}, {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x2071, 0x2071}, {0x207f, 0x207f}, + {0x2090, 0x209c}, {0x2102, 0x2102}, {0x2107, 0x2107}, {0x210a, 0x2113}, {0x2115, 0x2115}, {0x2119, 0x211d}, {0x2124, 0x2124}, {0x2126, 0x2126}, + {0x2128, 0x2128}, {0x212a, 0x212d}, {0x212f, 0x2139}, {0x213c, 0x213f}, {0x2145, 0x2149}, {0x214e, 0x214e}, {0x2183, 0x2184}, {0x2c00, 0x2ce4}, + {0x2ceb, 0x2cee}, {0x2cf2, 0x2cf3}, {0x2d00, 0x2d25}, {0x2d27, 0x2d27}, {0x2d2d, 0x2d2d}, {0x2d30, 0x2d67}, {0x2d6f, 0x2d6f}, {0x2d80, 0x2d96}, + {0x2da0, 0x2da6}, {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, {0x2db8, 0x2dbe}, {0x2dc0, 0x2dc6}, {0x2dc8, 0x2dce}, {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde}, + {0x2e2f, 0x2e2f}, {0x3005, 0x3006}, {0x3031, 0x3035}, {0x303b, 0x303c}, {0x3041, 0x3096}, {0x309d, 0x309f}, {0x30a1, 0x30fa}, {0x30fc, 0x30ff}, + {0x3105, 0x312f}, {0x3131, 0x318e}, {0x31a0, 0x31bf}, {0x31f0, 0x31ff}, {0x3400, 0x3400}, {0x4dbf, 0x4dbf}, {0x4e00, 0x4e00}, {0x9fff, 0xa48c}, + {0xa4d0, 0xa4fd}, {0xa500, 0xa60c}, {0xa610, 0xa61f}, {0xa62a, 0xa62b}, {0xa640, 0xa66e}, {0xa67f, 0xa69d}, {0xa6a0, 0xa6e5}, {0xa717, 0xa71f}, + {0xa722, 0xa788}, {0xa78b, 0xa7ca}, {0xa7d0, 0xa7d1}, {0xa7d3, 0xa7d3}, {0xa7d5, 0xa7d9}, {0xa7f2, 0xa801}, {0xa803, 0xa805}, {0xa807, 0xa80a}, + {0xa80c, 0xa822}, {0xa840, 0xa873}, {0xa882, 0xa8b3}, {0xa8f2, 0xa8f7}, {0xa8fb, 0xa8fb}, {0xa8fd, 0xa8fe}, {0xa90a, 0xa925}, {0xa930, 0xa946}, + {0xa960, 0xa97c}, {0xa984, 0xa9b2}, {0xa9cf, 0xa9cf}, {0xa9e0, 0xa9e4}, {0xa9e6, 0xa9ef}, {0xa9fa, 0xa9fe}, {0xaa00, 0xaa28}, {0xaa40, 0xaa42}, + {0xaa44, 0xaa4b}, {0xaa60, 0xaa76}, {0xaa7a, 0xaa7a}, {0xaa7e, 0xaaaf}, {0xaab1, 0xaab1}, {0xaab5, 0xaab6}, {0xaab9, 0xaabd}, {0xaac0, 0xaac0}, + {0xaac2, 0xaac2}, {0xaadb, 0xaadd}, {0xaae0, 0xaaea}, {0xaaf2, 0xaaf4}, {0xab01, 0xab06}, {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, + {0xab28, 0xab2e}, {0xab30, 0xab5a}, {0xab5c, 0xab69}, {0xab70, 0xabe2}, {0xac00, 0xac00}, {0xd7a3, 0xd7a3}, {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb}, + {0xf900, 0xfa6d}, {0xfa70, 0xfad9}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb1d}, {0xfb1f, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, + {0xfb3e, 0xfb3e}, {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfd3d}, {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb}, + {0xfe70, 0xfe74}, {0xfe76, 0xfefc}, {0xff21, 0xff3a}, {0xff41, 0xff5a}, {0xff66, 0xffbe}, {0xffc2, 0xffc7}, {0xffca, 0xffcf}, {0xffd2, 0xffd7}, + {0xffda, 0xffdc}, {0x10000, 0x1000b}, {0x1000d, 0x10026}, {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d}, {0x10050, 0x1005d}, {0x10080, 0x100fa}, + {0x10280, 0x1029c}, {0x102a0, 0x102d0}, {0x10300, 0x1031f}, {0x1032d, 0x10340}, {0x10342, 0x10349}, {0x10350, 0x10375}, {0x10380, 0x1039d}, {0x103a0, 0x103c3}, + {0x103c8, 0x103cf}, {0x10400, 0x1049d}, {0x104b0, 0x104d3}, {0x104d8, 0x104fb}, {0x10500, 0x10527}, {0x10530, 0x10563}, {0x10570, 0x1057a}, {0x1057c, 0x1058a}, + {0x1058c, 0x10592}, {0x10594, 0x10595}, {0x10597, 0x105a1}, {0x105a3, 0x105b1}, {0x105b3, 0x105b9}, {0x105bb, 0x105bc}, {0x10600, 0x10736}, {0x10740, 0x10755}, + {0x10760, 0x10767}, {0x10780, 0x10785}, {0x10787, 0x107b0}, {0x107b2, 0x107ba}, {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835}, {0x10837, 0x10838}, + {0x1083c, 0x1083c}, {0x1083f, 0x10855}, {0x10860, 0x10876}, {0x10880, 0x1089e}, {0x108e0, 0x108f2}, {0x108f4, 0x108f5}, {0x10900, 0x10915}, }; static bool ts_lex(TSLexer *lexer, TSStateId state) { @@ -558,37 +628,38 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(13); + if (eof) ADVANCE(17); ADVANCE_MAP( - '"', 5, - '#', 27, - '(', 28, - ')', 29, - '-', 26, - '.', 27, - ':', 27, - '<', 8, - '[', 11, - '_', 27, - '{', 19, - '|', 22, - '}', 20, - '%', 27, - '&', 27, - '\\', 27, + '"', 8, + '#', 49, + '(', 50, + ')', 51, + '-', 48, + '.', 49, + ':', 49, + '<', 11, + '[', 15, + '_', 49, + '`', 14, + '{', 23, + '|', 36, + '}', 24, + '%', 49, + '&', 49, + '\\', 49, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(0); - if (set_contains(sym__ident_base_character_set_1, 430, lookahead)) ADVANCE(38); + if (set_contains(sym__ident_base_character_set_1, 431, lookahead)) ADVANCE(60); END_STATE(); case 1: - if (lookahead == '\n') ADVANCE(16); - if (lookahead == '"') ADVANCE(5); - if (lookahead == '#') ADVANCE(27); - if (lookahead == '{') ADVANCE(19); - if (lookahead == '|') ADVANCE(22); + if (lookahead == '\n') ADVANCE(20); + if (lookahead == '"') ADVANCE(8); + if (lookahead == '#') ADVANCE(49); + if (lookahead == '{') ADVANCE(23); + if (lookahead == '|') ADVANCE(36); if ((!eof && lookahead == 00) || - lookahead == ';') ADVANCE(15); + lookahead == ';') ADVANCE(19); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(1); if (lookahead == '%' || @@ -597,185 +668,315 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '.' || lookahead == ':' || lookahead == '\\' || - lookahead == '_') ADVANCE(27); - if (set_contains(sym__ident_base_character_set_1, 430, lookahead)) ADVANCE(38); + lookahead == '_') ADVANCE(49); + if (set_contains(sym__ident_base_character_set_1, 431, lookahead)) ADVANCE(60); END_STATE(); case 2: ADVANCE_MAP( - '\n', 16, - '#', 39, - '-', 9, - '.', 31, - ':', 14, - '<', 8, - '{', 19, - '|', 22, - 0, 15, - ';', 15, + '\n', 20, + '#', 61, + '-', 12, + '.', 53, + ':', 18, + '<', 11, + '{', 23, + 0, 19, + ';', 19, ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(2); END_STATE(); case 3: ADVANCE_MAP( - '\n', 16, - '#', 39, - '-', 34, - '.', 31, - ':', 14, - '<', 8, - '{', 19, - 0, 15, - ';', 15, - '\'', 36, - '_', 36, + '\n', 20, + '#', 61, + '-', 56, + '.', 53, + ':', 18, + '<', 11, + '{', 23, + 0, 19, + ';', 19, + '\'', 58, + '_', 58, ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(32); + lookahead == ' ') ADVANCE(54); END_STATE(); case 4: ADVANCE_MAP( - '\n', 16, - '#', 39, - '.', 31, - ':', 14, - '{', 19, - 0, 15, - ';', 15, - '\'', 36, - '-', 36, - '_', 36, + '\n', 20, + '#', 61, + '.', 53, + ':', 18, + '{', 23, + 0, 19, + ';', 19, + '\'', 58, + '-', 58, + '_', 58, ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(33); + lookahead == ' ') ADVANCE(55); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(21); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(5); + if (lookahead == '\n') SKIP(5); + if (lookahead == '#') ADVANCE(46); + if (lookahead == '|') ADVANCE(45); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(40); + if (lookahead != 0) ADVANCE(46); END_STATE(); case 6: - if (lookahead == '#') ADVANCE(39); - if (lookahead == ')') ADVANCE(29); - if (lookahead == '-') ADVANCE(34); - if (lookahead == '.') ADVANCE(31); - if (lookahead == '<') ADVANCE(8); - if (lookahead == '\'' || - lookahead == '_') ADVANCE(36); + if (lookahead == '\n') SKIP(6); + if (lookahead == '#') ADVANCE(46); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(35); + lookahead == ' ') ADVANCE(42); + if (lookahead != 0) ADVANCE(46); END_STATE(); case 7: - if (lookahead == '#') ADVANCE(23); - if (lookahead == '|') ADVANCE(22); + if (lookahead == '\n') SKIP(7); + if (lookahead == '#') ADVANCE(46); + if (lookahead == '|') ADVANCE(44); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(24); - if (lookahead != 0) ADVANCE(25); + lookahead == ' ') ADVANCE(41); + if (lookahead != 0) ADVANCE(46); END_STATE(); case 8: - if (lookahead == '-') ADVANCE(18); + if (lookahead == '"') ADVANCE(25); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(8); END_STATE(); case 9: - if (lookahead == '-') ADVANCE(18); - if (lookahead == '>') ADVANCE(17); + if (lookahead == '#') ADVANCE(61); + if (lookahead == ')') ADVANCE(51); + if (lookahead == '-') ADVANCE(56); + if (lookahead == '.') ADVANCE(53); + if (lookahead == '<') ADVANCE(11); + if (lookahead == '\'' || + lookahead == '_') ADVANCE(58); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(57); END_STATE(); case 10: - if (lookahead == ']') ADVANCE(30); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(10); + if (lookahead == '#') ADVANCE(37); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(38); + if (lookahead != 0 && + lookahead != '|') ADVANCE(39); END_STATE(); case 11: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(10); + if (lookahead == '-') ADVANCE(22); END_STATE(); case 12: - if (eof) ADVANCE(13); + if (lookahead == '-') ADVANCE(22); + if (lookahead == '>') ADVANCE(21); + END_STATE(); + case 13: + if (lookahead == ']') ADVANCE(52); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(13); + END_STATE(); + case 14: + if (lookahead == '|') ADVANCE(30); + END_STATE(); + case 15: + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(13); + END_STATE(); + case 16: + if (eof) ADVANCE(17); ADVANCE_MAP( - '#', 39, - '(', 28, - ')', 29, - '-', 9, - '.', 31, - '<', 8, - '[', 11, - '_', 37, - '|', 22, - '}', 20, + '#', 61, + '(', 50, + ')', 51, + '-', 12, + '.', 53, + '<', 11, + '[', 15, + '_', 59, + '`', 14, + '|', 35, + '}', 24, ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(12); - if (set_contains(sym__ident_base_character_set_1, 430, lookahead)) ADVANCE(38); + lookahead == ' ') SKIP(16); + if (set_contains(sym__ident_base_character_set_1, 431, lookahead)) ADVANCE(60); END_STATE(); - case 13: + case 17: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 14: + case 18: ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); - case 15: + case 19: ACCEPT_TOKEN(aux_sym_declaration_token1); END_STATE(); - case 16: + case 20: ACCEPT_TOKEN(aux_sym_declaration_token1); - if (lookahead == '\n') ADVANCE(16); + if (lookahead == '\n') ADVANCE(20); if ((!eof && lookahead == 00) || - lookahead == ';') ADVANCE(15); + lookahead == ';') ADVANCE(19); END_STATE(); - case 17: + case 21: ACCEPT_TOKEN(sym_connection); END_STATE(); - case 18: + case 22: ACCEPT_TOKEN(sym_connection); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '>') ADVANCE(17); + if (lookahead == '-') ADVANCE(22); + if (lookahead == '>') ADVANCE(21); END_STATE(); - case 19: + case 23: ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); - case 20: + case 24: ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); - case 21: + case 25: ACCEPT_TOKEN(aux_sym_label_token1); - if (lookahead == '"') ADVANCE(21); + if (lookahead == '"') ADVANCE(25); if (lookahead != 0 && - lookahead != '\n') ADVANCE(5); + lookahead != '\n') ADVANCE(8); END_STATE(); - case 22: + case 26: + ACCEPT_TOKEN(anon_sym_PIPE_BQUOTE); + END_STATE(); + case 27: + ACCEPT_TOKEN(aux_sym_label_codeblock_token1); + if (lookahead == '\n') ADVANCE(29); + if (lookahead == '`') ADVANCE(61); + if (lookahead != 0) ADVANCE(27); + END_STATE(); + case 28: + ACCEPT_TOKEN(aux_sym_label_codeblock_token1); + if (lookahead == '#') ADVANCE(27); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(28); + if (lookahead != 0 && + lookahead != '`') ADVANCE(29); + END_STATE(); + case 29: + ACCEPT_TOKEN(aux_sym_label_codeblock_token1); + if (lookahead != 0 && + lookahead != '`') ADVANCE(29); + END_STATE(); + case 30: + ACCEPT_TOKEN(anon_sym_BQUOTE_PIPE); + END_STATE(); + case 31: + ACCEPT_TOKEN(anon_sym_PIPE_PIPE_PIPE); + END_STATE(); + case 32: + ACCEPT_TOKEN(anon_sym_PIPE_PIPE_PIPE); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 33: + ACCEPT_TOKEN(anon_sym_PIPE_PIPE); + if (lookahead == '|') ADVANCE(31); + END_STATE(); + case 34: + ACCEPT_TOKEN(anon_sym_PIPE_PIPE); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 35: ACCEPT_TOKEN(anon_sym_PIPE); END_STATE(); - case 23: - ACCEPT_TOKEN(aux_sym__label_codeblock_token1); - if (lookahead == '\n') ADVANCE(25); - if (lookahead == '|') ADVANCE(39); - if (lookahead != 0) ADVANCE(23); + case 36: + ACCEPT_TOKEN(anon_sym_PIPE); + if (lookahead == '`') ADVANCE(26); + if (lookahead == '|') ADVANCE(33); END_STATE(); - case 24: - ACCEPT_TOKEN(aux_sym__label_codeblock_token1); - if (lookahead == '#') ADVANCE(23); + case 37: + ACCEPT_TOKEN(aux_sym_label_codeblock_token2); + if (lookahead == '\n') ADVANCE(39); + if (lookahead == '|') ADVANCE(61); + if (lookahead != 0) ADVANCE(37); + END_STATE(); + case 38: + ACCEPT_TOKEN(aux_sym_label_codeblock_token2); + if (lookahead == '#') ADVANCE(37); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(24); + lookahead == ' ') ADVANCE(38); if (lookahead != 0 && - lookahead != '|') ADVANCE(25); + lookahead != '|') ADVANCE(39); END_STATE(); - case 25: - ACCEPT_TOKEN(aux_sym__label_codeblock_token1); + case 39: + ACCEPT_TOKEN(aux_sym_label_codeblock_token2); if (lookahead != 0 && - lookahead != '|') ADVANCE(25); + lookahead != '|') ADVANCE(39); END_STATE(); - case 26: + case 40: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '#') ADVANCE(46); + if (lookahead == '|') ADVANCE(45); + if (lookahead == '\t' || + (0x0b <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(40); + if (lookahead != 0 && + (lookahead < '\t' || '\r' < lookahead)) ADVANCE(46); + END_STATE(); + case 41: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '#') ADVANCE(46); + if (lookahead == '|') ADVANCE(44); + if (lookahead == '\t' || + (0x0b <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(41); + if (lookahead != 0 && + (lookahead < '\t' || '\r' < lookahead)) ADVANCE(46); + END_STATE(); + case 42: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '#') ADVANCE(46); + if (lookahead == '\t' || + (0x0b <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(42); + if (lookahead != 0 && + (lookahead < '\t' || '\r' < lookahead)) ADVANCE(46); + END_STATE(); + case 43: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '|') ADVANCE(32); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 44: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '|') ADVANCE(34); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 45: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead == '|') ADVANCE(43); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 46: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token1); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(46); + END_STATE(); + case 47: + ACCEPT_TOKEN(aux_sym__label_codeblock_body_token2); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(47); + END_STATE(); + case 48: ACCEPT_TOKEN(aux_sym__label_base_token1); ADVANCE_MAP( - '-', 18, - '>', 17, - '#', 27, - '%', 27, - '&', 27, - '.', 27, - ':', 27, - '\\', 27, - '_', 27, + '-', 22, + '>', 21, + '#', 49, + '%', 49, + '&', 49, + '.', 49, + ':', 49, + '\\', 49, + '_', 49, ); END_STATE(); - case 27: + case 49: ACCEPT_TOKEN(aux_sym__label_base_token1); if (lookahead == '#' || lookahead == '%' || @@ -784,80 +985,80 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '.' || lookahead == ':' || lookahead == '\\' || - lookahead == '_') ADVANCE(27); + lookahead == '_') ADVANCE(49); END_STATE(); - case 28: + case 50: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); - case 29: + case 51: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); - case 30: + case 52: ACCEPT_TOKEN(sym_connection_identifier); END_STATE(); - case 31: + case 53: ACCEPT_TOKEN(anon_sym_DOT); END_STATE(); - case 32: + case 54: ACCEPT_TOKEN(aux_sym__ident_token1); - if (lookahead == '\n') ADVANCE(16); - if (lookahead == '-') ADVANCE(34); - if (lookahead == '<') ADVANCE(8); + if (lookahead == '\n') ADVANCE(20); + if (lookahead == '-') ADVANCE(56); + if (lookahead == '<') ADVANCE(11); if ((!eof && lookahead == 00) || - lookahead == ';') ADVANCE(15); + lookahead == ';') ADVANCE(19); if (lookahead == '\'' || - lookahead == '_') ADVANCE(36); + lookahead == '_') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(32); + lookahead == ' ') ADVANCE(54); END_STATE(); - case 33: + case 55: ACCEPT_TOKEN(aux_sym__ident_token1); - if (lookahead == '\n') ADVANCE(16); + if (lookahead == '\n') ADVANCE(20); if ((!eof && lookahead == 00) || - lookahead == ';') ADVANCE(15); + lookahead == ';') ADVANCE(19); if (lookahead == '\'' || lookahead == '-' || - lookahead == '_') ADVANCE(36); + lookahead == '_') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(33); + lookahead == ' ') ADVANCE(55); END_STATE(); - case 34: + case 56: ACCEPT_TOKEN(aux_sym__ident_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '>') ADVANCE(17); + if (lookahead == '-') ADVANCE(22); + if (lookahead == '>') ADVANCE(21); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ' || lookahead == '\'' || - lookahead == '_') ADVANCE(36); + lookahead == '_') ADVANCE(58); END_STATE(); - case 35: + case 57: ACCEPT_TOKEN(aux_sym__ident_token1); - if (lookahead == '-') ADVANCE(34); - if (lookahead == '<') ADVANCE(8); + if (lookahead == '-') ADVANCE(56); + if (lookahead == '<') ADVANCE(11); if (lookahead == '\'' || - lookahead == '_') ADVANCE(36); + lookahead == '_') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(35); + lookahead == ' ') ADVANCE(57); END_STATE(); - case 36: + case 58: ACCEPT_TOKEN(aux_sym__ident_token1); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ' || lookahead == '\'' || lookahead == '-' || - lookahead == '_') ADVANCE(36); + lookahead == '_') ADVANCE(58); END_STATE(); - case 37: + case 59: ACCEPT_TOKEN(anon_sym__); END_STATE(); - case 38: + case 60: ACCEPT_TOKEN(sym__ident_base); - if (set_contains(sym__ident_base_character_set_1, 430, lookahead)) ADVANCE(38); + if (set_contains(sym__ident_base_character_set_1, 431, lookahead)) ADVANCE(60); END_STATE(); - case 39: + case 61: ACCEPT_TOKEN(sym_comment); if (lookahead != 0 && - lookahead != '\n') ADVANCE(39); + lookahead != '\n') ADVANCE(61); END_STATE(); default: return false; @@ -869,7 +1070,15 @@ static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - ACCEPT_TOKEN(ts_builtin_sym_end); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(0); + if (('A' <= lookahead && lookahead <= 'Z') || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(1); + END_STATE(); + case 1: + ACCEPT_TOKEN(sym__label_codeblock_lang); + if (('A' <= lookahead && lookahead <= 'Z') || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(1); END_STATE(); default: return false; @@ -878,16 +1087,16 @@ static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 12}, + [1] = {.lex_state = 16}, [2] = {.lex_state = 1}, [3] = {.lex_state = 1}, [4] = {.lex_state = 1}, [5] = {.lex_state = 1}, - [6] = {.lex_state = 12}, - [7] = {.lex_state = 12}, - [8] = {.lex_state = 12}, - [9] = {.lex_state = 12}, - [10] = {.lex_state = 12}, + [6] = {.lex_state = 16}, + [7] = {.lex_state = 16}, + [8] = {.lex_state = 16}, + [9] = {.lex_state = 16}, + [10] = {.lex_state = 16}, [11] = {.lex_state = 3}, [12] = {.lex_state = 3}, [13] = {.lex_state = 3}, @@ -905,90 +1114,104 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [25] = {.lex_state = 2}, [26] = {.lex_state = 2}, [27] = {.lex_state = 2}, - [28] = {.lex_state = 12}, + [28] = {.lex_state = 16}, [29] = {.lex_state = 2}, - [30] = {.lex_state = 6}, - [31] = {.lex_state = 6}, - [32] = {.lex_state = 6}, + [30] = {.lex_state = 9}, + [31] = {.lex_state = 9}, + [32] = {.lex_state = 9}, [33] = {.lex_state = 4}, [34] = {.lex_state = 2}, [35] = {.lex_state = 2}, [36] = {.lex_state = 2}, [37] = {.lex_state = 2}, - [38] = {.lex_state = 2}, - [39] = {.lex_state = 2}, - [40] = {.lex_state = 12}, - [41] = {.lex_state = 12}, - [42] = {.lex_state = 12}, - [43] = {.lex_state = 12}, - [44] = {.lex_state = 12}, - [45] = {.lex_state = 12}, - [46] = {.lex_state = 12}, - [47] = {.lex_state = 2}, - [48] = {.lex_state = 12}, + [38] = {.lex_state = 16}, + [39] = {.lex_state = 16}, + [40] = {.lex_state = 16}, + [41] = {.lex_state = 2}, + [42] = {.lex_state = 16}, + [43] = {.lex_state = 16}, + [44] = {.lex_state = 16}, + [45] = {.lex_state = 16}, + [46] = {.lex_state = 16}, + [47] = {.lex_state = 16}, + [48] = {.lex_state = 16}, [49] = {.lex_state = 2}, - [50] = {.lex_state = 12}, - [51] = {.lex_state = 12}, - [52] = {.lex_state = 12}, - [53] = {.lex_state = 12}, - [54] = {.lex_state = 12}, - [55] = {.lex_state = 12}, - [56] = {.lex_state = 12}, - [57] = {.lex_state = 12}, - [58] = {.lex_state = 12}, - [59] = {.lex_state = 2}, - [60] = {.lex_state = 12}, - [61] = {.lex_state = 12}, - [62] = {.lex_state = 12}, - [63] = {.lex_state = 12}, - [64] = {.lex_state = 12}, - [65] = {.lex_state = 12}, - [66] = {.lex_state = 12}, - [67] = {.lex_state = 2}, - [68] = {.lex_state = 12}, - [69] = {.lex_state = 12}, - [70] = {.lex_state = 12}, - [71] = {.lex_state = 12}, - [72] = {.lex_state = 12}, - [73] = {.lex_state = 12}, - [74] = {.lex_state = 12}, + [50] = {.lex_state = 16}, + [51] = {.lex_state = 16}, + [52] = {.lex_state = 16}, + [53] = {.lex_state = 16}, + [54] = {.lex_state = 16}, + [55] = {.lex_state = 16}, + [56] = {.lex_state = 16}, + [57] = {.lex_state = 16}, + [58] = {.lex_state = 16}, + [59] = {.lex_state = 9}, + [60] = {.lex_state = 2}, + [61] = {.lex_state = 16}, + [62] = {.lex_state = 16}, + [63] = {.lex_state = 16}, + [64] = {.lex_state = 16}, + [65] = {.lex_state = 16}, + [66] = {.lex_state = 16}, + [67] = {.lex_state = 16}, + [68] = {.lex_state = 16}, + [69] = {.lex_state = 16}, + [70] = {.lex_state = 16}, + [71] = {.lex_state = 16}, + [72] = {.lex_state = 16}, + [73] = {.lex_state = 16}, + [74] = {.lex_state = 2}, [75] = {.lex_state = 2}, - [76] = {.lex_state = 12}, - [77] = {.lex_state = 12}, - [78] = {.lex_state = 6}, - [79] = {.lex_state = 2}, - [80] = {.lex_state = 2}, - [81] = {.lex_state = 12}, + [76] = {.lex_state = 16}, + [77] = {.lex_state = 2}, + [78] = {.lex_state = 16}, + [79] = {.lex_state = 16}, + [80] = {.lex_state = 5}, + [81] = {.lex_state = 16}, [82] = {.lex_state = 7}, - [83] = {.lex_state = 12}, - [84] = {.lex_state = 7}, - [85] = {.lex_state = 12}, - [86] = {.lex_state = 12}, - [87] = {.lex_state = 2}, + [83] = {.lex_state = 5}, + [84] = {.lex_state = 2}, + [85] = {.lex_state = 7}, + [86] = {.lex_state = 2}, + [87] = {.lex_state = 16}, [88] = {.lex_state = 2}, - [89] = {.lex_state = 2}, - [90] = {.lex_state = 12}, - [91] = {.lex_state = 12}, - [92] = {.lex_state = 12}, + [89] = {.lex_state = 6}, + [90] = {.lex_state = 16}, + [91] = {.lex_state = 6}, + [92] = {.lex_state = 2}, [93] = {.lex_state = 2}, - [94] = {.lex_state = 12}, - [95] = {.lex_state = 2}, - [96] = {.lex_state = 2}, - [97] = {.lex_state = 12}, - [98] = {.lex_state = 2}, - [99] = {.lex_state = 2}, + [94] = {.lex_state = 5}, + [95] = {.lex_state = 7}, + [96] = {.lex_state = 16}, + [97] = {.lex_state = 16}, + [98] = {.lex_state = 16}, + [99] = {.lex_state = 28}, [100] = {.lex_state = 2}, [101] = {.lex_state = 2}, - [102] = {.lex_state = 12}, - [103] = {.lex_state = 2}, - [104] = {.lex_state = 2}, - [105] = {.lex_state = 12}, - [106] = {.lex_state = 2}, - [107] = {.lex_state = 2}, + [102] = {.lex_state = 2}, + [103] = {.lex_state = 16}, + [104] = {.lex_state = 16}, + [105] = {.lex_state = 16}, + [106] = {.lex_state = 16}, + [107] = {.lex_state = 16}, [108] = {.lex_state = 2}, - [109] = {.lex_state = 2}, + [109] = {.lex_state = 16}, [110] = {.lex_state = 2}, - [111] = {.lex_state = 12}, + [111] = {.lex_state = 2}, + [112] = {.lex_state = 16}, + [113] = {.lex_state = 2}, + [114] = {.lex_state = 2}, + [115] = {.lex_state = 2}, + [116] = {.lex_state = 2}, + [117] = {.lex_state = 2}, + [118] = {.lex_state = 10}, + [119] = {.lex_state = 2}, + [120] = {.lex_state = 47}, + [121] = {.lex_state = 2}, + [122] = {.lex_state = 2}, + [123] = {.lex_state = 47}, + [124] = {.lex_state = 16}, + [125] = {.lex_state = 16}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -1000,7 +1223,12 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_LBRACE] = ACTIONS(1), [anon_sym_RBRACE] = ACTIONS(1), [aux_sym_label_token1] = ACTIONS(1), + [anon_sym_PIPE_BQUOTE] = ACTIONS(1), + [anon_sym_BQUOTE_PIPE] = ACTIONS(1), + [anon_sym_PIPE_PIPE_PIPE] = ACTIONS(1), + [anon_sym_PIPE_PIPE] = ACTIONS(1), [anon_sym_PIPE] = ACTIONS(1), + [sym__label_codeblock_lang] = ACTIONS(1), [aux_sym__label_base_token1] = ACTIONS(1), [anon_sym_LPAREN] = ACTIONS(1), [anon_sym_RPAREN] = ACTIONS(1), @@ -1010,10 +1238,10 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_comment] = ACTIONS(3), }, [1] = { - [sym_source_file] = STATE(94), + [sym_source_file] = STATE(97), [sym_declaration] = STATE(10), - [sym__expr] = STATE(47), - [sym_connection_refference] = STATE(59), + [sym__expr] = STATE(49), + [sym_connection_refference] = STATE(60), [sym_identifier] = STATE(25), [sym__ident] = STATE(14), [aux_sym_source_file_repeat1] = STATE(10), @@ -1026,7 +1254,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { }; static const uint16_t ts_small_parse_table[] = { - [0] = 11, + [0] = 13, ACTIONS(3), 1, sym_comment, ACTIONS(17), 1, @@ -1036,14 +1264,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(21), 1, aux_sym_label_token1, ACTIONS(23), 1, + anon_sym_PIPE_BQUOTE, + ACTIONS(25), 1, + anon_sym_PIPE_PIPE_PIPE, + ACTIONS(27), 1, + anon_sym_PIPE_PIPE, + ACTIONS(29), 1, anon_sym_PIPE, - STATE(84), 1, - aux_sym__label_codeblock_repeat1, STATE(88), 1, sym_label, - STATE(89), 1, - sym__label_codeblock, - STATE(106), 1, + STATE(93), 1, + sym_label_codeblock, + STATE(119), 1, sym_block, ACTIONS(15), 2, aux_sym__label_base_token1, @@ -1051,7 +1283,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(18), 2, sym__label_base, aux_sym_label_repeat1, - [36] = 11, + [42] = 13, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, @@ -1059,16 +1291,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(21), 1, aux_sym_label_token1, ACTIONS(23), 1, - anon_sym_PIPE, + anon_sym_PIPE_BQUOTE, ACTIONS(25), 1, + anon_sym_PIPE_PIPE_PIPE, + ACTIONS(27), 1, + anon_sym_PIPE_PIPE, + ACTIONS(29), 1, + anon_sym_PIPE, + ACTIONS(31), 1, aux_sym_declaration_token1, - STATE(80), 1, - sym_label, STATE(84), 1, - aux_sym__label_codeblock_repeat1, - STATE(89), 1, - sym__label_codeblock, - STATE(96), 1, + sym_label, + STATE(93), 1, + sym_label_codeblock, + STATE(108), 1, sym_block, ACTIONS(15), 2, aux_sym__label_base_token1, @@ -1076,7 +1312,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(18), 2, sym__label_base, aux_sym_label_repeat1, - [72] = 11, + [84] = 13, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, @@ -1084,15 +1320,19 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(21), 1, aux_sym_label_token1, ACTIONS(23), 1, - anon_sym_PIPE, + anon_sym_PIPE_BQUOTE, + ACTIONS(25), 1, + anon_sym_PIPE_PIPE_PIPE, ACTIONS(27), 1, + anon_sym_PIPE_PIPE, + ACTIONS(29), 1, + anon_sym_PIPE, + ACTIONS(33), 1, aux_sym_declaration_token1, - STATE(79), 1, + STATE(77), 1, sym_label, - STATE(84), 1, - aux_sym__label_codeblock_repeat1, - STATE(89), 1, - sym__label_codeblock, + STATE(93), 1, + sym_label_codeblock, STATE(110), 1, sym_block, ACTIONS(15), 2, @@ -1101,7 +1341,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(18), 2, sym__label_base, aux_sym_label_repeat1, - [108] = 11, + [126] = 13, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, @@ -1109,16 +1349,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(21), 1, aux_sym_label_token1, ACTIONS(23), 1, - anon_sym_PIPE, + anon_sym_PIPE_BQUOTE, + ACTIONS(25), 1, + anon_sym_PIPE_PIPE_PIPE, + ACTIONS(27), 1, + anon_sym_PIPE_PIPE, ACTIONS(29), 1, + anon_sym_PIPE, + ACTIONS(35), 1, aux_sym_declaration_token1, - STATE(84), 1, - aux_sym__label_codeblock_repeat1, - STATE(87), 1, + STATE(86), 1, sym_label, - STATE(89), 1, - sym__label_codeblock, - STATE(104), 1, + STATE(93), 1, + sym_label_codeblock, + STATE(117), 1, sym_block, ACTIONS(15), 2, aux_sym__label_base_token1, @@ -1126,1116 +1370,1202 @@ static const uint16_t ts_small_parse_table[] = { STATE(18), 2, sym__label_base, aux_sym_label_repeat1, - [144] = 10, + [168] = 10, ACTIONS(7), 1, sym__ident_base, ACTIONS(9), 1, anon_sym_LPAREN, ACTIONS(11), 1, anon_sym__, - ACTIONS(31), 1, + ACTIONS(37), 1, anon_sym_RBRACE, - ACTIONS(33), 1, + ACTIONS(39), 1, sym_comment, STATE(14), 1, sym__ident, STATE(25), 1, sym_identifier, - STATE(38), 1, - sym_connection_refference, - STATE(75), 1, + STATE(74), 1, sym__expr, + STATE(75), 1, + sym_connection_refference, STATE(9), 2, sym_declaration, aux_sym_block_repeat1, - [176] = 10, - ACTIONS(35), 1, + [200] = 10, + ACTIONS(41), 1, ts_builtin_sym_end, - ACTIONS(37), 1, + ACTIONS(43), 1, sym__ident_base, - ACTIONS(40), 1, + ACTIONS(46), 1, anon_sym_LPAREN, - ACTIONS(43), 1, + ACTIONS(49), 1, anon_sym__, - ACTIONS(46), 1, + ACTIONS(52), 1, sym_comment, STATE(14), 1, sym__ident, STATE(25), 1, sym_identifier, - STATE(47), 1, + STATE(49), 1, sym__expr, - STATE(59), 1, + STATE(60), 1, sym_connection_refference, STATE(7), 2, sym_declaration, aux_sym_source_file_repeat1, - [208] = 10, + [232] = 10, ACTIONS(7), 1, sym__ident_base, ACTIONS(9), 1, anon_sym_LPAREN, ACTIONS(11), 1, anon_sym__, - ACTIONS(33), 1, + ACTIONS(39), 1, sym_comment, - ACTIONS(49), 1, + ACTIONS(55), 1, anon_sym_RBRACE, STATE(14), 1, sym__ident, STATE(25), 1, sym_identifier, - STATE(38), 1, - sym_connection_refference, - STATE(75), 1, + STATE(74), 1, sym__expr, + STATE(75), 1, + sym_connection_refference, STATE(6), 2, sym_declaration, aux_sym_block_repeat1, - [240] = 10, - ACTIONS(33), 1, + [264] = 10, + ACTIONS(39), 1, sym_comment, - ACTIONS(51), 1, + ACTIONS(57), 1, sym__ident_base, - ACTIONS(54), 1, + ACTIONS(60), 1, anon_sym_RBRACE, - ACTIONS(56), 1, + ACTIONS(62), 1, anon_sym_LPAREN, - ACTIONS(59), 1, + ACTIONS(65), 1, anon_sym__, STATE(14), 1, sym__ident, STATE(25), 1, sym_identifier, - STATE(38), 1, - sym_connection_refference, - STATE(75), 1, + STATE(74), 1, sym__expr, + STATE(75), 1, + sym_connection_refference, STATE(9), 2, sym_declaration, aux_sym_block_repeat1, - [272] = 10, + [296] = 10, ACTIONS(7), 1, sym__ident_base, ACTIONS(9), 1, anon_sym_LPAREN, ACTIONS(11), 1, anon_sym__, - ACTIONS(62), 1, + ACTIONS(68), 1, ts_builtin_sym_end, - ACTIONS(64), 1, + ACTIONS(70), 1, sym_comment, STATE(14), 1, sym__ident, STATE(25), 1, sym_identifier, - STATE(47), 1, + STATE(49), 1, sym__expr, - STATE(59), 1, + STATE(60), 1, sym_connection_refference, STATE(7), 2, sym_declaration, aux_sym_source_file_repeat1, - [304] = 4, + [328] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(68), 1, + ACTIONS(74), 1, aux_sym__ident_token1, STATE(11), 1, aux_sym__ident_repeat1, - ACTIONS(66), 5, + ACTIONS(72), 5, anon_sym_COLON, aux_sym_declaration_token1, sym_connection, anon_sym_LBRACE, anon_sym_DOT, - [321] = 4, + [345] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(73), 1, + ACTIONS(79), 1, aux_sym__ident_token1, STATE(11), 1, aux_sym__ident_repeat1, - ACTIONS(71), 5, + ACTIONS(77), 5, anon_sym_COLON, aux_sym_declaration_token1, sym_connection, anon_sym_LBRACE, anon_sym_DOT, - [338] = 4, + [362] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(73), 1, + ACTIONS(79), 1, aux_sym__ident_token1, STATE(12), 1, aux_sym__ident_repeat1, - ACTIONS(75), 5, + ACTIONS(81), 5, anon_sym_COLON, aux_sym_declaration_token1, sym_connection, anon_sym_LBRACE, anon_sym_DOT, - [355] = 5, + [379] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(79), 1, + ACTIONS(85), 1, aux_sym_declaration_token1, - ACTIONS(81), 1, + ACTIONS(87), 1, anon_sym_DOT, STATE(15), 1, aux_sym__fields, - ACTIONS(77), 3, + ACTIONS(83), 3, anon_sym_COLON, sym_connection, anon_sym_LBRACE, - [373] = 5, + [397] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(81), 1, + ACTIONS(87), 1, anon_sym_DOT, - ACTIONS(85), 1, + ACTIONS(91), 1, aux_sym_declaration_token1, STATE(16), 1, aux_sym__fields, - ACTIONS(83), 3, + ACTIONS(89), 3, anon_sym_COLON, sym_connection, anon_sym_LBRACE, - [391] = 5, + [415] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(89), 1, + ACTIONS(95), 1, aux_sym_declaration_token1, - ACTIONS(91), 1, + ACTIONS(97), 1, anon_sym_DOT, STATE(16), 1, aux_sym__fields, - ACTIONS(87), 3, + ACTIONS(93), 3, anon_sym_COLON, sym_connection, anon_sym_LBRACE, - [409] = 2, + [433] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(66), 6, + ACTIONS(72), 6, anon_sym_COLON, aux_sym_declaration_token1, sym_connection, anon_sym_LBRACE, anon_sym_DOT, aux_sym__ident_token1, - [421] = 5, + [445] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(96), 1, + ACTIONS(102), 1, aux_sym_declaration_token1, - ACTIONS(98), 1, + ACTIONS(104), 1, anon_sym_LBRACE, - ACTIONS(94), 2, + ACTIONS(100), 2, aux_sym__label_base_token1, sym__ident_base, STATE(19), 2, sym__label_base, aux_sym_label_repeat1, - [439] = 5, + [463] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(103), 1, + ACTIONS(109), 1, aux_sym_declaration_token1, - ACTIONS(105), 1, + ACTIONS(111), 1, anon_sym_LBRACE, - ACTIONS(100), 2, + ACTIONS(106), 2, aux_sym__label_base_token1, sym__ident_base, STATE(19), 2, sym__label_base, aux_sym_label_repeat1, - [457] = 4, + [481] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(107), 1, + ACTIONS(113), 1, aux_sym__ident_token1, STATE(21), 1, aux_sym__ident_repeat1, - ACTIONS(71), 4, + ACTIONS(77), 4, anon_sym_COLON, aux_sym_declaration_token1, anon_sym_LBRACE, anon_sym_DOT, - [473] = 4, + [497] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(109), 1, + ACTIONS(115), 1, aux_sym__ident_token1, STATE(21), 1, aux_sym__ident_repeat1, - ACTIONS(66), 4, + ACTIONS(72), 4, anon_sym_COLON, aux_sym_declaration_token1, anon_sym_LBRACE, anon_sym_DOT, - [489] = 4, + [513] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(107), 1, + ACTIONS(113), 1, aux_sym__ident_token1, STATE(20), 1, aux_sym__ident_repeat1, - ACTIONS(75), 4, + ACTIONS(81), 4, anon_sym_COLON, aux_sym_declaration_token1, anon_sym_LBRACE, anon_sym_DOT, - [505] = 4, + [529] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(79), 1, + ACTIONS(85), 1, aux_sym_declaration_token1, STATE(15), 1, aux_sym__fields, - ACTIONS(77), 4, + ACTIONS(83), 4, anon_sym_COLON, sym_connection, anon_sym_LBRACE, anon_sym_DOT, - [521] = 5, + [545] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(114), 1, + ACTIONS(120), 1, aux_sym_declaration_token1, - ACTIONS(116), 1, + ACTIONS(122), 1, sym_connection, STATE(26), 1, aux_sym__expr_repeat1, - ACTIONS(112), 2, + ACTIONS(118), 2, anon_sym_COLON, anon_sym_LBRACE, - [538] = 5, + [562] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(116), 1, + ACTIONS(122), 1, sym_connection, - ACTIONS(120), 1, + ACTIONS(126), 1, aux_sym_declaration_token1, STATE(24), 1, aux_sym__expr_repeat1, - ACTIONS(118), 2, + ACTIONS(124), 2, anon_sym_COLON, anon_sym_LBRACE, - [555] = 5, + [579] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(124), 1, + ACTIONS(130), 1, aux_sym_declaration_token1, - ACTIONS(126), 1, + ACTIONS(132), 1, sym_connection, STATE(26), 1, aux_sym__expr_repeat1, - ACTIONS(122), 2, + ACTIONS(128), 2, anon_sym_COLON, anon_sym_LBRACE, - [572] = 3, + [596] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(131), 1, + ACTIONS(137), 1, aux_sym_declaration_token1, - ACTIONS(129), 4, + ACTIONS(135), 4, anon_sym_COLON, sym_connection, anon_sym_LBRACE, anon_sym_DOT, - [585] = 6, - ACTIONS(33), 1, + [609] = 6, + ACTIONS(39), 1, sym_comment, - ACTIONS(133), 1, + ACTIONS(139), 1, sym__ident_base, - ACTIONS(135), 1, + ACTIONS(141), 1, anon_sym__, - STATE(51), 1, + STATE(52), 1, sym__ident, - STATE(83), 1, + STATE(87), 1, sym_identifier, - STATE(105), 1, + STATE(124), 1, sym__expr, - [604] = 5, + [628] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(139), 1, + ACTIONS(145), 1, aux_sym_declaration_token1, - ACTIONS(141), 1, + ACTIONS(147), 1, anon_sym_DOT, STATE(34), 1, aux_sym__fields, - ACTIONS(137), 2, + ACTIONS(143), 2, anon_sym_COLON, anon_sym_LBRACE, - [621] = 4, + [645] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(143), 1, + ACTIONS(149), 1, aux_sym__ident_token1, STATE(30), 1, aux_sym__ident_repeat1, - ACTIONS(66), 3, + ACTIONS(72), 3, sym_connection, anon_sym_RPAREN, anon_sym_DOT, - [636] = 4, + [660] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(146), 1, + ACTIONS(152), 1, aux_sym__ident_token1, STATE(32), 1, aux_sym__ident_repeat1, - ACTIONS(75), 3, + ACTIONS(81), 3, sym_connection, anon_sym_RPAREN, anon_sym_DOT, - [651] = 4, + [675] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(146), 1, + ACTIONS(152), 1, aux_sym__ident_token1, STATE(30), 1, aux_sym__ident_repeat1, - ACTIONS(71), 3, + ACTIONS(77), 3, sym_connection, anon_sym_RPAREN, anon_sym_DOT, - [666] = 2, + [690] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(66), 5, + ACTIONS(72), 5, anon_sym_COLON, aux_sym_declaration_token1, anon_sym_LBRACE, anon_sym_DOT, aux_sym__ident_token1, - [677] = 5, + [701] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(141), 1, + ACTIONS(147), 1, anon_sym_DOT, - ACTIONS(150), 1, + ACTIONS(156), 1, aux_sym_declaration_token1, STATE(36), 1, aux_sym__fields, - ACTIONS(148), 2, + ACTIONS(154), 2, anon_sym_COLON, anon_sym_LBRACE, - [694] = 5, + [718] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(85), 1, + ACTIONS(91), 1, aux_sym_declaration_token1, - ACTIONS(141), 1, + ACTIONS(147), 1, anon_sym_DOT, STATE(36), 1, aux_sym__fields, - ACTIONS(83), 2, + ACTIONS(89), 2, anon_sym_COLON, anon_sym_LBRACE, - [711] = 5, + [735] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(89), 1, + ACTIONS(95), 1, aux_sym_declaration_token1, - ACTIONS(152), 1, + ACTIONS(158), 1, anon_sym_DOT, STATE(36), 1, aux_sym__fields, - ACTIONS(87), 2, + ACTIONS(93), 2, anon_sym_COLON, anon_sym_LBRACE, - [728] = 4, + [752] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(79), 1, + ACTIONS(85), 1, aux_sym_declaration_token1, STATE(35), 1, aux_sym__fields, - ACTIONS(77), 3, + ACTIONS(83), 3, anon_sym_COLON, anon_sym_LBRACE, anon_sym_DOT, - [743] = 5, - ACTIONS(3), 1, + [767] = 3, + ACTIONS(39), 1, sym_comment, - ACTIONS(19), 1, - anon_sym_LBRACE, - ACTIONS(155), 1, - anon_sym_COLON, - ACTIONS(157), 1, - aux_sym_declaration_token1, - STATE(103), 1, - sym_block, - [759] = 3, + STATE(58), 1, + aux_sym__fields, + ACTIONS(85), 3, + sym_connection, + anon_sym_RPAREN, + anon_sym_DOT, + [779] = 1, + ACTIONS(161), 5, + ts_builtin_sym_end, + anon_sym_LPAREN, + anon_sym__, + sym__ident_base, + sym_comment, + [787] = 1, + ACTIONS(163), 5, + ts_builtin_sym_end, + anon_sym_LPAREN, + anon_sym__, + sym__ident_base, + sym_comment, + [795] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(161), 1, + ACTIONS(167), 1, aux_sym_declaration_token1, - ACTIONS(159), 3, + ACTIONS(165), 3, anon_sym_COLON, sym_connection, anon_sym_LBRACE, - [771] = 1, - ACTIONS(163), 5, + [807] = 1, + ACTIONS(169), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [779] = 5, + [815] = 5, ACTIONS(7), 1, sym__ident_base, ACTIONS(11), 1, anon_sym__, - ACTIONS(33), 1, + ACTIONS(39), 1, sym_comment, STATE(14), 1, sym__ident, - STATE(39), 1, + STATE(41), 1, sym_identifier, - [795] = 1, - ACTIONS(165), 5, + [831] = 1, + ACTIONS(171), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [803] = 1, - ACTIONS(167), 5, + [839] = 1, + ACTIONS(173), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [811] = 5, + [847] = 5, ACTIONS(7), 1, sym__ident_base, - ACTIONS(33), 1, + ACTIONS(39), 1, sym_comment, - ACTIONS(169), 1, + ACTIONS(175), 1, anon_sym__, STATE(23), 1, sym__ident, STATE(27), 1, sym_identifier, - [827] = 1, - ACTIONS(171), 5, + [863] = 1, + ACTIONS(177), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [835] = 1, - ACTIONS(173), 5, + [871] = 1, + ACTIONS(179), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [843] = 5, + [879] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, - ACTIONS(175), 1, + ACTIONS(181), 1, anon_sym_COLON, - ACTIONS(177), 1, + ACTIONS(183), 1, aux_sym_declaration_token1, - STATE(99), 1, + STATE(113), 1, sym_block, - [859] = 1, - ACTIONS(179), 5, + [895] = 1, + ACTIONS(185), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [867] = 5, - ACTIONS(3), 1, - sym_comment, - ACTIONS(181), 1, - aux_sym_declaration_token1, - ACTIONS(183), 1, - anon_sym_LBRACE, - ACTIONS(185), 1, - anon_sym_PIPE, - STATE(67), 1, - aux_sym__label_codeblock_repeat1, - [883] = 1, + [903] = 1, ACTIONS(187), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [891] = 4, - ACTIONS(33), 1, + [911] = 4, + ACTIONS(39), 1, sym_comment, ACTIONS(189), 1, anon_sym_DOT, - STATE(57), 1, + STATE(58), 1, aux_sym__fields, - ACTIONS(79), 2, + ACTIONS(85), 2, sym_connection, anon_sym_RPAREN, - [905] = 1, + [925] = 1, ACTIONS(191), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [913] = 2, - ACTIONS(33), 1, + [933] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(191), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [923] = 2, - ACTIONS(33), 1, + [943] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(163), 4, + ACTIONS(169), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [933] = 5, - ACTIONS(33), 1, + [953] = 5, + ACTIONS(39), 1, sym_comment, - ACTIONS(133), 1, + ACTIONS(139), 1, sym__ident_base, - ACTIONS(135), 1, + ACTIONS(141), 1, anon_sym__, - STATE(51), 1, + STATE(52), 1, sym__ident, - STATE(91), 1, + STATE(90), 1, sym_identifier, - [949] = 5, - ACTIONS(33), 1, + [969] = 5, + ACTIONS(39), 1, sym_comment, - ACTIONS(133), 1, + ACTIONS(139), 1, sym__ident_base, ACTIONS(193), 1, anon_sym__, - STATE(74), 1, + STATE(38), 1, sym__ident, - STATE(86), 1, + STATE(81), 1, sym_identifier, - [965] = 4, - ACTIONS(33), 1, + [985] = 4, + ACTIONS(39), 1, sym_comment, ACTIONS(189), 1, anon_sym_DOT, - STATE(64), 1, + STATE(65), 1, aux_sym__fields, - ACTIONS(85), 2, + ACTIONS(91), 2, sym_connection, anon_sym_RPAREN, - [979] = 1, - ACTIONS(195), 5, - ts_builtin_sym_end, - anon_sym_LPAREN, - anon_sym__, - sym__ident_base, + [999] = 2, + ACTIONS(3), 1, sym_comment, - [987] = 5, + ACTIONS(72), 4, + sym_connection, + anon_sym_RPAREN, + anon_sym_DOT, + aux_sym__ident_token1, + [1009] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, - ACTIONS(197), 1, + ACTIONS(195), 1, anon_sym_COLON, - ACTIONS(199), 1, + ACTIONS(197), 1, aux_sym_declaration_token1, - STATE(93), 1, + STATE(111), 1, sym_block, - [1003] = 2, - ACTIONS(33), 1, + [1025] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(201), 4, + ACTIONS(199), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1013] = 2, - ACTIONS(33), 1, + [1035] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(203), 4, + ACTIONS(201), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1023] = 2, - ACTIONS(33), 1, + [1045] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(205), 4, + ACTIONS(161), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1033] = 2, - ACTIONS(33), 1, + [1055] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(195), 4, + ACTIONS(163), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1043] = 4, - ACTIONS(33), 1, + [1065] = 4, + ACTIONS(39), 1, sym_comment, - ACTIONS(207), 1, + ACTIONS(203), 1, anon_sym_DOT, - STATE(64), 1, + STATE(65), 1, aux_sym__fields, - ACTIONS(89), 2, + ACTIONS(95), 2, sym_connection, anon_sym_RPAREN, - [1057] = 2, - ACTIONS(33), 1, + [1079] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(165), 4, + ACTIONS(171), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1067] = 2, - ACTIONS(33), 1, + [1089] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(167), 4, + ACTIONS(173), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1077] = 5, - ACTIONS(3), 1, + [1099] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(210), 1, - aux_sym_declaration_token1, - ACTIONS(212), 1, - anon_sym_LBRACE, - ACTIONS(214), 1, - anon_sym_PIPE, - STATE(67), 1, - aux_sym__label_codeblock_repeat1, - [1093] = 2, - ACTIONS(33), 1, - sym_comment, - ACTIONS(171), 4, + ACTIONS(177), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1103] = 2, - ACTIONS(33), 1, + [1109] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(173), 4, + ACTIONS(179), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1113] = 2, - ACTIONS(33), 1, + [1119] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(179), 4, + ACTIONS(185), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1123] = 2, - ACTIONS(33), 1, + [1129] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(187), 4, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym__, sym__ident_base, - [1133] = 1, - ACTIONS(201), 5, + [1139] = 1, + ACTIONS(199), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [1141] = 5, - ACTIONS(33), 1, + [1147] = 5, + ACTIONS(39), 1, sym_comment, - ACTIONS(217), 1, + ACTIONS(206), 1, sym__ident_base, - ACTIONS(219), 1, + ACTIONS(208), 1, anon_sym__, STATE(27), 1, sym_identifier, STATE(37), 1, sym__ident, - [1157] = 3, - ACTIONS(33), 1, - sym_comment, - STATE(57), 1, - aux_sym__fields, - ACTIONS(79), 3, - sym_connection, - anon_sym_RPAREN, - anon_sym_DOT, - [1169] = 5, + [1163] = 5, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, - ACTIONS(221), 1, + ACTIONS(210), 1, anon_sym_COLON, - ACTIONS(223), 1, + ACTIONS(212), 1, aux_sym_declaration_token1, - STATE(107), 1, + STATE(114), 1, sym_block, - [1185] = 1, - ACTIONS(203), 5, - ts_builtin_sym_end, - anon_sym_LPAREN, - anon_sym__, - sym__ident_base, + [1179] = 5, + ACTIONS(3), 1, sym_comment, - [1193] = 1, - ACTIONS(205), 5, + ACTIONS(19), 1, + anon_sym_LBRACE, + ACTIONS(214), 1, + anon_sym_COLON, + ACTIONS(216), 1, + aux_sym_declaration_token1, + STATE(116), 1, + sym_block, + [1195] = 1, + ACTIONS(201), 5, ts_builtin_sym_end, anon_sym_LPAREN, anon_sym__, sym__ident_base, sym_comment, - [1201] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(66), 4, - sym_connection, - anon_sym_RPAREN, - anon_sym_DOT, - aux_sym__ident_token1, - [1211] = 4, + [1203] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, - ACTIONS(225), 1, + ACTIONS(218), 1, aux_sym_declaration_token1, - STATE(98), 1, + STATE(100), 1, sym_block, - [1224] = 4, - ACTIONS(3), 1, + [1216] = 4, + ACTIONS(39), 1, sym_comment, - ACTIONS(19), 1, - anon_sym_LBRACE, - ACTIONS(227), 1, - aux_sym_declaration_token1, - STATE(101), 1, - sym_block, - [1237] = 4, - ACTIONS(33), 1, + ACTIONS(120), 1, + anon_sym_RPAREN, + ACTIONS(220), 1, + sym_connection, + STATE(79), 1, + aux_sym__expr_repeat1, + [1229] = 4, + ACTIONS(39), 1, sym_comment, - ACTIONS(114), 1, + ACTIONS(130), 1, anon_sym_RPAREN, - ACTIONS(229), 1, + ACTIONS(222), 1, sym_connection, - STATE(85), 1, + STATE(79), 1, aux_sym__expr_repeat1, - [1250] = 4, + [1242] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(212), 1, - aux_sym__label_codeblock_token1, - ACTIONS(231), 1, - anon_sym_PIPE, - STATE(82), 1, - aux_sym__label_codeblock_repeat1, - [1263] = 4, - ACTIONS(33), 1, + ACTIONS(225), 1, + anon_sym_PIPE_PIPE_PIPE, + ACTIONS(227), 1, + aux_sym__label_codeblock_body_token1, + STATE(83), 1, + aux_sym__label_codeblock_body, + [1255] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(120), 1, + ACTIONS(137), 3, + sym_connection, anon_sym_RPAREN, + anon_sym_DOT, + [1264] = 4, + ACTIONS(3), 1, + sym_comment, + ACTIONS(225), 1, + anon_sym_PIPE_PIPE, ACTIONS(229), 1, - sym_connection, - STATE(81), 1, - aux_sym__expr_repeat1, - [1276] = 4, + aux_sym__label_codeblock_body_token1, + STATE(85), 1, + aux_sym__label_codeblock_body, + [1277] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(234), 1, - anon_sym_PIPE, + ACTIONS(231), 1, + anon_sym_PIPE_PIPE_PIPE, + ACTIONS(233), 1, + aux_sym__label_codeblock_body_token1, + STATE(83), 1, + aux_sym__label_codeblock_body, + [1290] = 4, + ACTIONS(3), 1, + sym_comment, + ACTIONS(19), 1, + anon_sym_LBRACE, ACTIONS(236), 1, - aux_sym__label_codeblock_token1, - STATE(82), 1, - aux_sym__label_codeblock_repeat1, - [1289] = 4, - ACTIONS(33), 1, + aux_sym_declaration_token1, + STATE(101), 1, + sym_block, + [1303] = 4, + ACTIONS(3), 1, sym_comment, - ACTIONS(124), 1, - anon_sym_RPAREN, + ACTIONS(231), 1, + anon_sym_PIPE_PIPE, ACTIONS(238), 1, - sym_connection, + aux_sym__label_codeblock_body_token1, STATE(85), 1, - aux_sym__expr_repeat1, - [1302] = 2, - ACTIONS(33), 1, - sym_comment, - ACTIONS(131), 3, - sym_connection, - anon_sym_RPAREN, - anon_sym_DOT, - [1311] = 4, + aux_sym__label_codeblock_body, + [1316] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, ACTIONS(241), 1, aux_sym_declaration_token1, - STATE(108), 1, + STATE(121), 1, sym_block, - [1324] = 4, + [1329] = 4, + ACTIONS(39), 1, + sym_comment, + ACTIONS(126), 1, + anon_sym_RPAREN, + ACTIONS(220), 1, + sym_connection, + STATE(78), 1, + aux_sym__expr_repeat1, + [1342] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(19), 1, anon_sym_LBRACE, ACTIONS(243), 1, aux_sym_declaration_token1, - STATE(109), 1, + STATE(122), 1, sym_block, - [1337] = 3, + [1355] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(96), 1, - aux_sym_declaration_token1, - ACTIONS(98), 1, - anon_sym_LBRACE, - [1347] = 3, - ACTIONS(33), 1, - sym_comment, ACTIONS(245), 1, - anon_sym_PIPE, - STATE(49), 1, - aux_sym__label_codeblock_repeat1, - [1357] = 2, - ACTIONS(33), 1, + aux_sym__label_codeblock_body_token1, + STATE(80), 1, + aux_sym__label_codeblock_body, + [1365] = 2, + ACTIONS(39), 1, sym_comment, - ACTIONS(161), 2, + ACTIONS(167), 2, sym_connection, anon_sym_RPAREN, - [1365] = 2, - ACTIONS(33), 1, + [1373] = 3, + ACTIONS(3), 1, sym_comment, ACTIONS(247), 1, - sym_connection_identifier, - [1372] = 2, + aux_sym__label_codeblock_body_token1, + STATE(82), 1, + aux_sym__label_codeblock_body, + [1383] = 3, ACTIONS(3), 1, sym_comment, ACTIONS(249), 1, aux_sym_declaration_token1, - [1379] = 2, - ACTIONS(33), 1, - sym_comment, ACTIONS(251), 1, - ts_builtin_sym_end, - [1386] = 2, + anon_sym_LBRACE, + [1393] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(253), 1, + ACTIONS(102), 1, aux_sym_declaration_token1, - [1393] = 2, + ACTIONS(104), 1, + anon_sym_LBRACE, + [1403] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(231), 2, + anon_sym_PIPE_PIPE_PIPE, + aux_sym__label_codeblock_body_token1, + [1411] = 2, ACTIONS(3), 1, sym_comment, + ACTIONS(231), 2, + anon_sym_PIPE_PIPE, + aux_sym__label_codeblock_body_token1, + [1419] = 2, + ACTIONS(39), 1, + sym_comment, + ACTIONS(253), 1, + sym_connection_identifier, + [1426] = 2, + ACTIONS(39), 1, + sym_comment, ACTIONS(255), 1, - aux_sym_declaration_token1, - [1400] = 2, - ACTIONS(33), 1, + ts_builtin_sym_end, + [1433] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(257), 1, sym__ident_base, - [1407] = 2, + [1440] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(259), 1, - aux_sym_declaration_token1, - [1414] = 2, + aux_sym_label_codeblock_token1, + [1447] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(261), 1, aux_sym_declaration_token1, - [1421] = 2, + [1454] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(263), 1, aux_sym_declaration_token1, - [1428] = 2, + [1461] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(265), 1, aux_sym_declaration_token1, - [1435] = 2, - ACTIONS(33), 1, + [1468] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(267), 1, - sym__ident_base, - [1442] = 2, - ACTIONS(3), 1, + sym__label_codeblock_lang, + [1475] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(269), 1, - aux_sym_declaration_token1, - [1449] = 2, - ACTIONS(3), 1, + anon_sym_PIPE, + [1482] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(271), 1, - aux_sym_declaration_token1, - [1456] = 2, - ACTIONS(33), 1, + sym__label_codeblock_lang, + [1489] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(273), 1, - anon_sym_RPAREN, - [1463] = 2, - ACTIONS(3), 1, + sym__label_codeblock_lang, + [1496] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(275), 1, - aux_sym_declaration_token1, - [1470] = 2, + sym__label_codeblock_lang, + [1503] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(277), 1, aux_sym_declaration_token1, - [1477] = 2, + [1510] = 2, + ACTIONS(39), 1, + sym_comment, + ACTIONS(269), 1, + anon_sym_BQUOTE_PIPE, + [1517] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(279), 1, aux_sym_declaration_token1, - [1484] = 2, + [1524] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(281), 1, aux_sym_declaration_token1, - [1491] = 2, - ACTIONS(3), 1, + [1531] = 2, + ACTIONS(39), 1, sym_comment, ACTIONS(283), 1, - aux_sym_declaration_token1, - [1498] = 2, - ACTIONS(33), 1, + sym__ident_base, + [1538] = 2, + ACTIONS(3), 1, sym_comment, ACTIONS(285), 1, + aux_sym_declaration_token1, + [1545] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(287), 1, + aux_sym_declaration_token1, + [1552] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(289), 1, + aux_sym_declaration_token1, + [1559] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(291), 1, + aux_sym_declaration_token1, + [1566] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(293), 1, + aux_sym_declaration_token1, + [1573] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(295), 1, + aux_sym_label_codeblock_token2, + [1580] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(297), 1, + aux_sym_declaration_token1, + [1587] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(299), 1, + aux_sym__label_codeblock_body_token2, + [1594] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(301), 1, + aux_sym_declaration_token1, + [1601] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(303), 1, + aux_sym_declaration_token1, + [1608] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(305), 1, + aux_sym__label_codeblock_body_token2, + [1615] = 2, + ACTIONS(39), 1, + sym_comment, + ACTIONS(307), 1, + anon_sym_RPAREN, + [1622] = 2, + ACTIONS(39), 1, + sym_comment, + ACTIONS(309), 1, sym__ident_base, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, - [SMALL_STATE(3)] = 36, - [SMALL_STATE(4)] = 72, - [SMALL_STATE(5)] = 108, - [SMALL_STATE(6)] = 144, - [SMALL_STATE(7)] = 176, - [SMALL_STATE(8)] = 208, - [SMALL_STATE(9)] = 240, - [SMALL_STATE(10)] = 272, - [SMALL_STATE(11)] = 304, - [SMALL_STATE(12)] = 321, - [SMALL_STATE(13)] = 338, - [SMALL_STATE(14)] = 355, - [SMALL_STATE(15)] = 373, - [SMALL_STATE(16)] = 391, - [SMALL_STATE(17)] = 409, - [SMALL_STATE(18)] = 421, - [SMALL_STATE(19)] = 439, - [SMALL_STATE(20)] = 457, - [SMALL_STATE(21)] = 473, - [SMALL_STATE(22)] = 489, - [SMALL_STATE(23)] = 505, - [SMALL_STATE(24)] = 521, - [SMALL_STATE(25)] = 538, - [SMALL_STATE(26)] = 555, - [SMALL_STATE(27)] = 572, - [SMALL_STATE(28)] = 585, - [SMALL_STATE(29)] = 604, - [SMALL_STATE(30)] = 621, - [SMALL_STATE(31)] = 636, - [SMALL_STATE(32)] = 651, - [SMALL_STATE(33)] = 666, - [SMALL_STATE(34)] = 677, - [SMALL_STATE(35)] = 694, - [SMALL_STATE(36)] = 711, - [SMALL_STATE(37)] = 728, - [SMALL_STATE(38)] = 743, - [SMALL_STATE(39)] = 759, - [SMALL_STATE(40)] = 771, - [SMALL_STATE(41)] = 779, - [SMALL_STATE(42)] = 795, - [SMALL_STATE(43)] = 803, - [SMALL_STATE(44)] = 811, - [SMALL_STATE(45)] = 827, - [SMALL_STATE(46)] = 835, - [SMALL_STATE(47)] = 843, - [SMALL_STATE(48)] = 859, - [SMALL_STATE(49)] = 867, - [SMALL_STATE(50)] = 883, - [SMALL_STATE(51)] = 891, - [SMALL_STATE(52)] = 905, - [SMALL_STATE(53)] = 913, - [SMALL_STATE(54)] = 923, - [SMALL_STATE(55)] = 933, - [SMALL_STATE(56)] = 949, - [SMALL_STATE(57)] = 965, - [SMALL_STATE(58)] = 979, - [SMALL_STATE(59)] = 987, - [SMALL_STATE(60)] = 1003, - [SMALL_STATE(61)] = 1013, - [SMALL_STATE(62)] = 1023, - [SMALL_STATE(63)] = 1033, - [SMALL_STATE(64)] = 1043, - [SMALL_STATE(65)] = 1057, - [SMALL_STATE(66)] = 1067, - [SMALL_STATE(67)] = 1077, - [SMALL_STATE(68)] = 1093, - [SMALL_STATE(69)] = 1103, - [SMALL_STATE(70)] = 1113, - [SMALL_STATE(71)] = 1123, - [SMALL_STATE(72)] = 1133, - [SMALL_STATE(73)] = 1141, - [SMALL_STATE(74)] = 1157, - [SMALL_STATE(75)] = 1169, - [SMALL_STATE(76)] = 1185, - [SMALL_STATE(77)] = 1193, - [SMALL_STATE(78)] = 1201, - [SMALL_STATE(79)] = 1211, - [SMALL_STATE(80)] = 1224, - [SMALL_STATE(81)] = 1237, - [SMALL_STATE(82)] = 1250, - [SMALL_STATE(83)] = 1263, - [SMALL_STATE(84)] = 1276, - [SMALL_STATE(85)] = 1289, - [SMALL_STATE(86)] = 1302, - [SMALL_STATE(87)] = 1311, - [SMALL_STATE(88)] = 1324, - [SMALL_STATE(89)] = 1337, - [SMALL_STATE(90)] = 1347, - [SMALL_STATE(91)] = 1357, - [SMALL_STATE(92)] = 1365, - [SMALL_STATE(93)] = 1372, - [SMALL_STATE(94)] = 1379, - [SMALL_STATE(95)] = 1386, - [SMALL_STATE(96)] = 1393, - [SMALL_STATE(97)] = 1400, - [SMALL_STATE(98)] = 1407, - [SMALL_STATE(99)] = 1414, - [SMALL_STATE(100)] = 1421, - [SMALL_STATE(101)] = 1428, - [SMALL_STATE(102)] = 1435, - [SMALL_STATE(103)] = 1442, - [SMALL_STATE(104)] = 1449, - [SMALL_STATE(105)] = 1456, - [SMALL_STATE(106)] = 1463, - [SMALL_STATE(107)] = 1470, - [SMALL_STATE(108)] = 1477, - [SMALL_STATE(109)] = 1484, - [SMALL_STATE(110)] = 1491, - [SMALL_STATE(111)] = 1498, + [SMALL_STATE(3)] = 42, + [SMALL_STATE(4)] = 84, + [SMALL_STATE(5)] = 126, + [SMALL_STATE(6)] = 168, + [SMALL_STATE(7)] = 200, + [SMALL_STATE(8)] = 232, + [SMALL_STATE(9)] = 264, + [SMALL_STATE(10)] = 296, + [SMALL_STATE(11)] = 328, + [SMALL_STATE(12)] = 345, + [SMALL_STATE(13)] = 362, + [SMALL_STATE(14)] = 379, + [SMALL_STATE(15)] = 397, + [SMALL_STATE(16)] = 415, + [SMALL_STATE(17)] = 433, + [SMALL_STATE(18)] = 445, + [SMALL_STATE(19)] = 463, + [SMALL_STATE(20)] = 481, + [SMALL_STATE(21)] = 497, + [SMALL_STATE(22)] = 513, + [SMALL_STATE(23)] = 529, + [SMALL_STATE(24)] = 545, + [SMALL_STATE(25)] = 562, + [SMALL_STATE(26)] = 579, + [SMALL_STATE(27)] = 596, + [SMALL_STATE(28)] = 609, + [SMALL_STATE(29)] = 628, + [SMALL_STATE(30)] = 645, + [SMALL_STATE(31)] = 660, + [SMALL_STATE(32)] = 675, + [SMALL_STATE(33)] = 690, + [SMALL_STATE(34)] = 701, + [SMALL_STATE(35)] = 718, + [SMALL_STATE(36)] = 735, + [SMALL_STATE(37)] = 752, + [SMALL_STATE(38)] = 767, + [SMALL_STATE(39)] = 779, + [SMALL_STATE(40)] = 787, + [SMALL_STATE(41)] = 795, + [SMALL_STATE(42)] = 807, + [SMALL_STATE(43)] = 815, + [SMALL_STATE(44)] = 831, + [SMALL_STATE(45)] = 839, + [SMALL_STATE(46)] = 847, + [SMALL_STATE(47)] = 863, + [SMALL_STATE(48)] = 871, + [SMALL_STATE(49)] = 879, + [SMALL_STATE(50)] = 895, + [SMALL_STATE(51)] = 903, + [SMALL_STATE(52)] = 911, + [SMALL_STATE(53)] = 925, + [SMALL_STATE(54)] = 933, + [SMALL_STATE(55)] = 943, + [SMALL_STATE(56)] = 953, + [SMALL_STATE(57)] = 969, + [SMALL_STATE(58)] = 985, + [SMALL_STATE(59)] = 999, + [SMALL_STATE(60)] = 1009, + [SMALL_STATE(61)] = 1025, + [SMALL_STATE(62)] = 1035, + [SMALL_STATE(63)] = 1045, + [SMALL_STATE(64)] = 1055, + [SMALL_STATE(65)] = 1065, + [SMALL_STATE(66)] = 1079, + [SMALL_STATE(67)] = 1089, + [SMALL_STATE(68)] = 1099, + [SMALL_STATE(69)] = 1109, + [SMALL_STATE(70)] = 1119, + [SMALL_STATE(71)] = 1129, + [SMALL_STATE(72)] = 1139, + [SMALL_STATE(73)] = 1147, + [SMALL_STATE(74)] = 1163, + [SMALL_STATE(75)] = 1179, + [SMALL_STATE(76)] = 1195, + [SMALL_STATE(77)] = 1203, + [SMALL_STATE(78)] = 1216, + [SMALL_STATE(79)] = 1229, + [SMALL_STATE(80)] = 1242, + [SMALL_STATE(81)] = 1255, + [SMALL_STATE(82)] = 1264, + [SMALL_STATE(83)] = 1277, + [SMALL_STATE(84)] = 1290, + [SMALL_STATE(85)] = 1303, + [SMALL_STATE(86)] = 1316, + [SMALL_STATE(87)] = 1329, + [SMALL_STATE(88)] = 1342, + [SMALL_STATE(89)] = 1355, + [SMALL_STATE(90)] = 1365, + [SMALL_STATE(91)] = 1373, + [SMALL_STATE(92)] = 1383, + [SMALL_STATE(93)] = 1393, + [SMALL_STATE(94)] = 1403, + [SMALL_STATE(95)] = 1411, + [SMALL_STATE(96)] = 1419, + [SMALL_STATE(97)] = 1426, + [SMALL_STATE(98)] = 1433, + [SMALL_STATE(99)] = 1440, + [SMALL_STATE(100)] = 1447, + [SMALL_STATE(101)] = 1454, + [SMALL_STATE(102)] = 1461, + [SMALL_STATE(103)] = 1468, + [SMALL_STATE(104)] = 1475, + [SMALL_STATE(105)] = 1482, + [SMALL_STATE(106)] = 1489, + [SMALL_STATE(107)] = 1496, + [SMALL_STATE(108)] = 1503, + [SMALL_STATE(109)] = 1510, + [SMALL_STATE(110)] = 1517, + [SMALL_STATE(111)] = 1524, + [SMALL_STATE(112)] = 1531, + [SMALL_STATE(113)] = 1538, + [SMALL_STATE(114)] = 1545, + [SMALL_STATE(115)] = 1552, + [SMALL_STATE(116)] = 1559, + [SMALL_STATE(117)] = 1566, + [SMALL_STATE(118)] = 1573, + [SMALL_STATE(119)] = 1580, + [SMALL_STATE(120)] = 1587, + [SMALL_STATE(121)] = 1594, + [SMALL_STATE(122)] = 1601, + [SMALL_STATE(123)] = 1608, + [SMALL_STATE(124)] = 1615, + [SMALL_STATE(125)] = 1622, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -2248,132 +2578,144 @@ static const TSParseActionEntry ts_parse_actions[] = { [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(8), - [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), - [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(84), - [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(), - [35] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), - [37] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(13), - [40] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(28), - [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(14), - [46] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(7), - [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(13), - [54] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), - [56] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(28), - [59] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(14), - [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [66] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), - [68] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(97), - [71] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__ident, 2, 0, 0), - [73] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), - [75] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__ident, 1, 0, 0), - [77] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 1, 0, 0), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 1, 0, 0), - [81] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44), - [83] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 2, 0, 4), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 2, 0, 4), - [87] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 10), - [91] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(44), - [94] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_label, 1, 0, 0), - [98] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_label, 1, 0, 0), - [100] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), SHIFT_REPEAT(19), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), - [105] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), - [107] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), - [109] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(111), - [112] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expr, 2, 0, 3), - [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 2, 0, 3), - [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(41), - [118] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expr, 1, 0, 1), - [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1, 0, 1), - [122] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), - [124] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), - [126] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), SHIFT_REPEAT(41), - [129] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 9), - [131] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 9), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [137] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_connection_refference, 4, 0, 11), - [139] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_connection_refference, 4, 0, 11), - [141] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), - [143] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(102), - [146] = {.entry = {.count = 1, .reusable = false}}, SHIFT(102), - [148] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_connection_refference, 5, 0, 16), - [150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_connection_refference, 5, 0, 16), - [152] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(73), - [155] = {.entry = {.count = 1, .reusable = false}}, SHIFT(2), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [159] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 7), - [161] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 7), - [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 2, 0, 0), - [165] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 12), - [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 13), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 14), - [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 15), - [175] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 5, 0, 17), - [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__label_codeblock, 3, 0, 0), - [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__label_codeblock, 3, 0, 0), - [185] = {.entry = {.count = 1, .reusable = false}}, SHIFT(67), + [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(93), + [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(103), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(105), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(106), + [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(107), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(), + [41] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), + [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(13), + [46] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(28), + [49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(14), + [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(7), + [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(13), + [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), + [62] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(28), + [65] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_block_repeat1, 2, 0, 0), SHIFT_REPEAT(14), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), + [70] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [72] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), + [74] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(98), + [77] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__ident, 2, 0, 0), + [79] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), + [81] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__ident, 1, 0, 0), + [83] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 1, 0, 0), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 1, 0, 0), + [87] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), + [89] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_identifier, 2, 0, 4), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_identifier, 2, 0, 4), + [93] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 10), + [97] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(46), + [100] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_label, 1, 0, 0), + [104] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_label, 1, 0, 0), + [106] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), SHIFT_REPEAT(19), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), + [111] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_label_repeat1, 2, 0, 0), + [113] = {.entry = {.count = 1, .reusable = false}}, SHIFT(125), + [115] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(125), + [118] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expr, 2, 0, 3), + [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 2, 0, 3), + [122] = {.entry = {.count = 1, .reusable = false}}, SHIFT(43), + [124] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__expr, 1, 0, 1), + [126] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1, 0, 1), + [128] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), + [130] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), + [132] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), SHIFT_REPEAT(43), + [135] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 9), + [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 9), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [143] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_connection_refference, 4, 0, 11), + [145] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_connection_refference, 4, 0, 11), + [147] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), + [149] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__ident_repeat1, 2, 0, 0), SHIFT_REPEAT(112), + [152] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [154] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_connection_refference, 5, 0, 16), + [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_connection_refference, 5, 0, 16), + [158] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(73), + [161] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 0), + [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 6), + [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 7), + [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 7), + [169] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 2, 0, 0), + [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 12), + [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 13), + [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [177] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 14), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 4, 0, 15), + [181] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 5, 0, 17), [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 5, 0, 18), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), [191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 2, 0, 2), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 6), - [197] = {.entry = {.count = 1, .reusable = false}}, SHIFT(4), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 2), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 5), - [205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 0), - [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(56), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__label_codeblock_repeat1, 2, 0, 0), - [212] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__label_codeblock_repeat1, 2, 0, 0), - [214] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__label_codeblock_repeat1, 2, 0, 0), SHIFT_REPEAT(67), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [221] = {.entry = {.count = 1, .reusable = false}}, SHIFT(5), - [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [231] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__label_codeblock_repeat1, 2, 0, 0), SHIFT_REPEAT(82), - [234] = {.entry = {.count = 1, .reusable = false}}, SHIFT(82), - [236] = {.entry = {.count = 1, .reusable = false}}, SHIFT(90), - [238] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), SHIFT_REPEAT(55), - [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [195] = {.entry = {.count = 1, .reusable = false}}, SHIFT(4), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 2), + [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_declaration, 3, 0, 5), + [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__fields, 2, 0, 10), SHIFT_REPEAT(57), + [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [210] = {.entry = {.count = 1, .reusable = false}}, SHIFT(5), + [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), + [214] = {.entry = {.count = 1, .reusable = false}}, SHIFT(2), + [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [222] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__expr_repeat1, 2, 0, 8), SHIFT_REPEAT(56), + [225] = {.entry = {.count = 1, .reusable = false}}, SHIFT(92), + [227] = {.entry = {.count = 1, .reusable = false}}, SHIFT(120), + [229] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), + [231] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__label_codeblock_body, 2, 0, 0), + [233] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__label_codeblock_body, 2, 0, 0), SHIFT_REPEAT(120), + [236] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [238] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__label_codeblock_body, 2, 0, 0), SHIFT_REPEAT(123), + [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [251] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [253] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 3, 0, 0), - [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), + [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_label_codeblock, 4, 0, 0), + [251] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_label_codeblock, 4, 0, 0), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [255] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 2, 0, 0), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [259] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 3, 0, 0), + [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), + [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block, 2, 0, 0), + [291] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [295] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), + [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [301] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), + [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), }; #ifdef __cplusplus diff --git a/test/corpus/docs/special_objects/text_and_code.txt b/test/corpus/docs/special_objects/text_and_code.txt index cd30e77..4c54f79 100644 --- a/test/corpus/docs/special_objects/text_and_code.txt +++ b/test/corpus/docs/special_objects/text_and_code.txt @@ -14,5 +14,333 @@ explanation: |md (source_file (declaration - identifier: (identifier) - label: (label))) + (identifier) + (label + (label_codeblock)))) + +====================||| +LaTeX +====================||| + +plankton -> formula: will steal +formula: { + equation: |latex + \\lim_{h \\rightarrow 0 } \\frac{f(x+h)-f(x)}{h} + | +} + +---||| + +(source_file + (declaration + (identifier) + (connection) + (identifier) + (label)) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock)))))) + +====================||| +Go +====================||| + +explanation: |go + awsSession := From(c.Request.Context()) + client := s3.New(awsSession) + + ctx, cancelFn := context.WithTimeout(c.Request.Context(), AWS_TIMEOUT) + defer cancelFn() +| + +---||| + +(source_file + (declaration + (identifier) + (label + (label_codeblock)))) + +====================||| +Advanced: Non-Markdown text +====================||| + +title: A winning strategy { + shape: text + near: top-center + style: { + font-size: 55 + italic: true + } +} + +poll the people -> results +results -> unfavorable -> poll the people +results -> favorable -> will of the people + +---||| + +(source_file + (declaration + (identifier) + (label) + (block + (declaration + (identifier) + (label)) + (declaration + (identifier) + (label)) + (declaration + (identifier) + (block + (declaration + (identifier) + (label)) + (declaration + (identifier) + (label)))))) + (declaration + (identifier) + (connection) + (identifier)) + (declaration + (identifier) + (connection) + (identifier) + (connection) + (identifier)) + (declaration + (identifier) + (connection) + (identifier) + (connection) + (identifier))) + +====================||| +Advanced: Block strings (double) +====================||| + +my_code: ||ts + declare function getSmallPet(): Fish | Bird; +|| + +---||| + +(source_file + (declaration + (identifier) + (label + (label_codeblock)))) + +====================||| +Advanced: Block strings (triple) +====================||| + +my_code: |||ts + declare function getSmallPet(): Fish | Bird; + const works = (a > 1) || (b < 2) +||| + +---||| + +(source_file + (declaration + (identifier) + (label + (label_codeblock)))) + +====================||| +Advanced: Block strings (triple, more code) +====================||| + +my_code: |||ts +fn main() { + let numbers: Vec = vec![1, 2, 3]; + + // using the map iterator adapter + let even_numbers: Vec = numbers.iter().map(|i| i * 2).collect(); + + println!("numbers = {:?}", numbers); + println!("even_numbers = {:?}", even_numbers); +} +||| + +---||| + +(source_file + (declaration + (identifier) + (label + (label_codeblock)))) + +====================||| +Advanced: Block strings (tick) +====================||| + +my_code: |`ts + declare function getSmallPet(): Fish | Bird; + const works = (a > 1) || (b < 2) +`| + +---||| + +(source_file + (declaration + (identifier) + (label + (label_codeblock)))) + +====================||| +Advanced: LaTeX plugins +====================||| + +grid-columns: 3 +grid-gap: 100 + +*.style.fill: transparent +*.style.stroke: black + +amscd plugin: { + ex: |tex + \\begin{CD} B @>{\\text{very long label}}>> C S^{{\\mathcal{W}}_\\Lambda}\\otimes T @>j>> T\\\\ @VVV V \\end{CD} + | +} + +braket plugin: { + ex: |tex + \\bra{a}\\ket{b} + | +} + +cancel plugin: { + ex: |tex + \\cancel{Culture + 5} + | +} + +color plugin: { + ex: |tex + \\textcolor{red}{y} = \\textcolor{green}{\\sin} x + | +} + +gensymb plugin: { + ex: |tex + \\lambda = 10.6\\,\\micro\\mathrm{m} + | +} + +mhchem plugin: { + ex: |tex + \ce{SO4^2- + Ba^2+ -> BaSO4 v} + | +} + +physics plugin: { + ex: |tex + \\var{F[g(x)]} + \\dd(\\cos\\theta) + | +} + +multilines: { + ex: |tex + \\displaylines{x = a + b \\\\ y = b + c} + \\sum_{k=1}^{n} h_{k} \\int_{0}^{1} \\bigl(\\partial_{k} f(x_{k-1}+t h_{k} e_{k}) -\\partial_{k} f(a)\\bigr) \\,dt + | +} + +asm: { + ex: |latex + \\min_{ \\mathclap{\\substack{ x \\in \\mathbb{R}^n \\ x \\geq 0 \\ Ax \\leq b }}} c^T x + | +} + +---||| + +(source_file + (declaration + (identifier) + (label)) + (declaration + (identifier) + (label)) + (declaration + (identifier + (identifier) + (identifier)) + (label)) + (declaration + (identifier + (identifier) + (identifier)) + (label)) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) + (declaration + (identifier) + (block + (declaration + (identifier) + (label + (label_codeblock))))) +)