diff --git a/corpus/custom.txt b/corpus/custom.txt index 3efce03..77a27ab 100644 --- a/corpus/custom.txt +++ b/corpus/custom.txt @@ -27,12 +27,22 @@ key -------------------------------------------------------------------------------- (document + (ERROR + (quoted_key) + (bare_key) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (ERROR) (boolean)) + (ERROR + (quoted_key) + (bare_key) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (ERROR) (boolean))) @@ -48,8 +58,18 @@ invalid_both = 1 .0 e 2 (document (ERROR - (key) - (integer))) + (bare_key) + (integer) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key))) ================================================================================ INVALID - offset date time - whitespaces between its components are not allowed @@ -62,10 +82,15 @@ invalid2 = 1979-05-27 T 07:32:00 Z (document (ERROR - (key) + (bare_key) (local_date) (local_time) - (local_time))) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (local_time) + (bare_key))) ================================================================================ INVALID - local date time - whitespaces between its components are not allowed @@ -78,9 +103,12 @@ invalid2 = 1979-05-27 T 07:32:00 (document (ERROR - (key) + (bare_key) (local_date) (local_time) + (bare_key) + (bare_key) + (bare_key) (local_time))) ================================================================================ @@ -93,7 +121,7 @@ valid = 1979-05-27 (document (pair - (key) + (bare_key) (local_date))) ================================================================================ @@ -118,10 +146,20 @@ key (document (table - (key) + (ERROR + (quoted_key) + (bare_key) + (bare_key) + (bare_key)) + (bare_key) (ERROR)) (table - (key) + (ERROR + (quoted_key) + (bare_key) + (bare_key) + (bare_key)) + (bare_key) (ERROR))) ================================================================================ @@ -136,11 +174,11 @@ key = { (document (pair - (key) + (bare_key) (inline_table (ERROR) (pair - (key) + (bare_key) (boolean)) (ERROR)))) @@ -166,7 +204,16 @@ key (document (ERROR - (key))) + (ERROR + (quoted_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key) + (bare_key)) + (bare_key))) ================================================================================ VALID - table - empty content separated by comments @@ -180,7 +227,7 @@ VALID - table - empty content separated by comments (document (table - (key) + (bare_key) (comment))) ================================================================================ @@ -195,7 +242,7 @@ VALID - array of tables - empty content separated by comments (document (table_array_element - (key) + (bare_key) (comment))) ================================================================================ @@ -214,13 +261,13 @@ b = 2 (document (table - (key) + (bare_key) (pair - (key) + (bare_key) (integer)) (comment) (pair - (key) + (bare_key) (integer)))) ================================================================================ @@ -239,11 +286,11 @@ b = 2 (document (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (integer)) (comment) (pair - (key) + (bare_key) (integer)))) diff --git a/corpus/spec.txt b/corpus/spec.txt index 6543ffc..030eb7c 100644 --- a/corpus/spec.txt +++ b/corpus/spec.txt @@ -10,7 +10,7 @@ key = "value" # This is a comment at the end of a line (document (comment) (pair - (key) + (bare_key) (string) (comment))) @@ -24,7 +24,7 @@ key = "value" (document (pair - (key) + (bare_key) (string))) ================================================================================ @@ -37,7 +37,7 @@ key = # INVALID (document (ERROR - (key) + (bare_key) (comment))) ================================================================================ @@ -50,11 +50,11 @@ first = "Tom" last = "Preston-Werner" # INVALID (document (pair - (key) + (bare_key) (string) (MISSING _line_ending_or_eof)) (pair - (key) + (bare_key) (string) (comment))) @@ -71,16 +71,16 @@ bare-key = "value" (document (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -97,19 +97,19 @@ VALID - keys - quoted keys (document (pair - (key) + (quoted_key) (string)) (pair - (key) + (quoted_key) (string)) (pair - (key) + (quoted_key) (string)) (pair - (key) + (quoted_key) (string)) (pair - (key) + (quoted_key) (string))) ================================================================================ @@ -123,17 +123,15 @@ INVALID - keys - empty bare key -------------------------------------------------------------------------------- (document + (ERROR) (pair - (key - (MISSING _bare_key)) + (quoted_key) + (comment) + (ERROR) (string) (comment)) (pair - (key) - (string) - (comment)) - (pair - (key) + (quoted_key) (string) (comment))) @@ -150,22 +148,22 @@ site."google.com" = true (document (pair - (key) + (bare_key) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (quoted_key)) (boolean))) ================================================================================ @@ -181,10 +179,10 @@ name = "Pradyun" (document (comment) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -204,15 +202,15 @@ fruit.orange = 2 (pair (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (boolean)) (comment) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (integer))) ================================================================================ @@ -235,17 +233,17 @@ fruit.apple.smooth = true (comment) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (integer)) (comment) (comment) (pair (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (boolean))) ================================================================================ @@ -279,64 +277,64 @@ orange.color = "orange" (comment) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (comment) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string))) ================================================================================ @@ -349,7 +347,7 @@ str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF." (document (pair - (key) + (bare_key) (string (escape_sequence) (escape_sequence) @@ -370,7 +368,7 @@ Violets are blue""" (document (pair - (key) + (bare_key) (string))) ================================================================================ @@ -398,15 +396,15 @@ str3 = """\ (document (comment) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string (escape_sequence) (escape_sequence))) (pair - (key) + (bare_key) (string (escape_sequence) (escape_sequence) @@ -429,15 +427,15 @@ str7 = """"This," she said, "is just a pointless statement."""" (document (pair - (key) + (bare_key) (string)) (comment) (pair - (key) + (bare_key) (string (escape_sequence))) (pair - (key) + (bare_key) (string (escape_sequence) (escape_sequence) @@ -446,7 +444,7 @@ str7 = """"This," she said, "is just a pointless statement."""" (escape_sequence))) (comment) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -464,16 +462,16 @@ regex = '<\i\c*\s*>' (document (comment) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -492,10 +490,10 @@ trimmed in raw strings. (document (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -514,15 +512,15 @@ str = ''''That's still pointless', she said.''' (document (pair - (key) + (bare_key) (string)) (comment) (pair - (key) + (bare_key) (string)) (comment) (pair - (key) + (bare_key) (string))) ================================================================================ @@ -538,16 +536,16 @@ int4 = -17 (document (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer))) ================================================================================ @@ -562,13 +560,13 @@ int7 = 1_2_3_4_5 # VALID but discouraged (document (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer) (comment))) @@ -593,25 +591,25 @@ bin1 = 0b11010110 (document (comment) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)) (comment) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer) (comment)) (comment) (pair - (key) + (bare_key) (integer))) ================================================================================ @@ -636,27 +634,27 @@ flt7 = 6.626e-34 (document (comment) (pair - (key) + (bare_key) (float)) (pair - (key) + (bare_key) (float)) (pair - (key) + (bare_key) (float)) (comment) (pair - (key) + (bare_key) (float)) (pair - (key) + (bare_key) (float)) (pair - (key) + (bare_key) (float)) (comment) (pair - (key) + (bare_key) (float))) ================================================================================ @@ -669,7 +667,7 @@ flt8 = 224_617.445_991_228 (document (pair - (key) + (bare_key) (float))) ================================================================================ @@ -691,28 +689,28 @@ sf6 = -nan # valid, actual encoding is implementation specific (document (comment) (pair - (key) + (bare_key) (float) (comment)) (pair - (key) + (bare_key) (float) (comment)) (pair - (key) + (bare_key) (float) (comment)) (comment) (pair - (key) + (bare_key) (float) (comment)) (pair - (key) + (bare_key) (float) (comment)) (pair - (key) + (bare_key) (float) (comment))) @@ -727,10 +725,10 @@ bool2 = false (document (pair - (key) + (bare_key) (boolean)) (pair - (key) + (bare_key) (boolean))) ================================================================================ @@ -745,13 +743,13 @@ odt3 = 1979-05-27T00:32:00.999999-07:00 (document (pair - (key) + (bare_key) (offset_date_time)) (pair - (key) + (bare_key) (offset_date_time)) (pair - (key) + (bare_key) (offset_date_time))) ================================================================================ @@ -764,7 +762,7 @@ odt4 = 1979-05-27 07:32:00Z (document (pair - (key) + (bare_key) (offset_date_time))) ================================================================================ @@ -778,10 +776,10 @@ ldt2 = 1979-05-27T00:32:00.999999 (document (pair - (key) + (bare_key) (local_date_time)) (pair - (key) + (bare_key) (local_date_time))) ================================================================================ @@ -794,7 +792,7 @@ ld1 = 1979-05-27 (document (pair - (key) + (bare_key) (local_date))) ================================================================================ @@ -808,10 +806,10 @@ lt2 = 00:32:00.999999 (document (pair - (key) + (bare_key) (local_time)) (pair - (key) + (bare_key) (local_time))) ================================================================================ @@ -835,19 +833,19 @@ contributors = [ (document (pair - (key) + (bare_key) (array (integer) (integer) (integer))) (pair - (key) + (bare_key) (array (string) (string) (string))) (pair - (key) + (bare_key) (array (array (integer) @@ -857,7 +855,7 @@ contributors = [ (integer) (integer)))) (pair - (key) + (bare_key) (array (array (integer) @@ -867,7 +865,7 @@ contributors = [ (string) (string)))) (pair - (key) + (bare_key) (array (string) (string) @@ -875,7 +873,7 @@ contributors = [ (string))) (comment) (pair - (key) + (bare_key) (array (float) (float) @@ -884,18 +882,18 @@ contributors = [ (integer) (integer))) (pair - (key) + (bare_key) (array (string) (inline_table (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)))))) ================================================================================ @@ -915,13 +913,13 @@ integers3 = [ (document (pair - (key) + (bare_key) (array (integer) (integer) (integer))) (pair - (key) + (bare_key) (array (integer) (integer) @@ -937,7 +935,7 @@ VALID - table - header (document (table - (key))) + (bare_key))) ================================================================================ VALID - table - basic @@ -955,20 +953,20 @@ key2 = 456 (document (table - (key) + (bare_key) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (integer))) (table - (key) + (bare_key) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (integer)))) ================================================================================ @@ -983,12 +981,12 @@ type.name = "pug" (document (table (dotted_key - (key) - (key)) + (bare_key) + (quoted_key)) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)))) ================================================================================ @@ -1006,30 +1004,30 @@ VALID - table- header with whitespaces (table (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (comment)) (table (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (comment)) (table (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (comment)) (table (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (quoted_key)) + (quoted_key)) (comment))) ================================================================================ @@ -1053,13 +1051,13 @@ VALID - table - directly defined nested header key (dotted_key (dotted_key (dotted_key - (key) - (key)) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) + (bare_key)) (comment)) (table - (key) + (bare_key) (comment))) ================================================================================ @@ -1079,14 +1077,14 @@ orange = "orange" (document (comment) (table - (key) + (bare_key) (pair - (key) + (bare_key) (string))) (table - (key) + (bare_key) (pair - (key) + (bare_key) (string)))) ================================================================================ @@ -1106,16 +1104,16 @@ texture = "smooth" (document (comment) (table - (key) + (bare_key) (pair - (key) + (bare_key) (string))) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string)))) ================================================================================ @@ -1138,25 +1136,25 @@ VALID - table - order (comment) (table (dotted_key - (key) - (key))) + (bare_key) + (bare_key))) (table - (key)) + (bare_key)) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (comment)) (table (dotted_key - (key) - (key))) + (bare_key) + (bare_key))) (table (dotted_key - (key) - (key))) + (bare_key) + (bare_key))) (table - (key))) + (bare_key))) ================================================================================ VALID - table - sub-table @@ -1176,30 +1174,30 @@ smooth = true (document (table - (key) + (bare_key) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (pair (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (boolean)) (comment) (comment)) (table (dotted_key (dotted_key - (key) - (key)) - (key)) + (bare_key) + (bare_key)) + (bare_key)) (comment) (pair - (key) + (bare_key) (boolean)))) ================================================================================ @@ -1214,30 +1212,30 @@ animal = { type.name = "pug" } (document (pair - (key) + (bare_key) (inline_table (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)))) (pair - (key) + (bare_key) (inline_table (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (integer)))) (pair - (key) + (bare_key) (inline_table (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string))))) ================================================================================ @@ -1256,20 +1254,20 @@ type.name = "Nail" (document (table - (key) + (bare_key) (pair - (key) + (bare_key) (inline_table (pair - (key) + (bare_key) (string)))) (comment)) (table - (key) + (bare_key) (pair (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (string)) (comment))) @@ -1293,25 +1291,25 @@ color = "gray" (document (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (integer))) (table_array_element - (key)) + (bare_key)) (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (integer)) (pair - (key) + (bare_key) (string)))) ================================================================================ @@ -1341,47 +1339,47 @@ VALID - array of tables - nested arrays of tables (document (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (string))) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (comment) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) (table_array_element (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (comment) (pair - (key) + (bare_key) (string))) (table_array_element (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string))) (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (string))) (table_array_element (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string)))) ================================================================================ @@ -1403,21 +1401,21 @@ VALID - array of tables - append to array in undefined table (semantically INVAL (comment) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (comment) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string))) (table_array_element - (key) + (bare_key) (comment) (comment) (pair - (key) + (bare_key) (string)))) ================================================================================ @@ -1434,10 +1432,10 @@ fruit = [] (document (comment) (pair - (key) + (bare_key) (array)) (table_array_element - (key) + (bare_key) (comment))) ================================================================================ @@ -1468,40 +1466,40 @@ VALID - array of tables - append to table (semantically INVALID) (document (comment) (table_array_element - (key) + (bare_key) (pair - (key) + (bare_key) (string))) (table_array_element (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string)) (comment)) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string))) (table (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string)) (pair - (key) + (bare_key) (string)) (comment)) (table_array_element (dotted_key - (key) - (key)) + (bare_key) + (bare_key)) (pair - (key) + (bare_key) (string)))) diff --git a/grammar.js b/grammar.js index cb431c0..3ef19e5 100644 --- a/grammar.js +++ b/grammar.js @@ -45,7 +45,7 @@ module.exports = grammar({ table: $ => seq( "[", - choice($.dotted_key, $.key), + choice($.dotted_key, $._key), "]", $._line_ending_or_eof, repeat(choice($.pair, newline)), @@ -54,19 +54,19 @@ module.exports = grammar({ table_array_element: $ => seq( "[[", - choice($.dotted_key, $.key), + choice($.dotted_key, $._key), "]]", $._line_ending_or_eof, repeat(choice($.pair, newline)), ), pair: $ => seq($._inline_pair, $._line_ending_or_eof), - _inline_pair: $ => seq(choice($.dotted_key, $.key), "=", $._inline_value), + _inline_pair: $ => seq(choice($.dotted_key, $._key), "=", $._inline_value), - key: $ => choice($._bare_key, $._quoted_key), - dotted_key: $ => seq(choice($.dotted_key, $.key), ".", $.key), - _bare_key: $ => /[A-Za-z0-9_-]+/, - _quoted_key: $ => choice($._basic_string, $._literal_string), + _key: $ => choice($.bare_key, $.quoted_key), + dotted_key: $ => seq(choice($.dotted_key, $._key), ".", $._key), + bare_key: $ => /[A-Za-z0-9_-]+/, + quoted_key: $ => choice($._basic_string, $._literal_string), _inline_value: $ => choice( diff --git a/package.json b/package.json index 05947df..6c2420b 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,21 @@ }, "files": [ "/src/", + "/queries/", "/binding.gyp", "/grammar.js", "/index.js" + ], + "tree-sitter": [ + { + "scope": "source.toml", + "file-types": [ + "toml" + ], + "highlights": [ + "queries/highlights.scm" + ], + "injection-regex": "^toml$" + } ] } diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..e4d6966 --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,33 @@ +; Properties +;----------- + +(bare_key) @property +(quoted_key) @string + +; Literals +;--------- + +(boolean) @constant.builtin +(comment) @comment +(string) @string +(integer) @number +(float) @number +(offset_date_time) @string.special +(local_date_time) @string.special +(local_date) @string.special +(local_time) @string.special + +; Punctuation +;------------ + +"." @punctuation.delimiter +"," @punctuation.delimiter + +"=" @operator + +"[" @punctuation.bracket +"]" @punctuation.bracket +"[[" @punctuation.bracket +"]]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket diff --git a/scripts/generate-playground.js b/scripts/generate-playground.js index 8e5b434..4b64494 100644 --- a/scripts/generate-playground.js +++ b/scripts/generate-playground.js @@ -1,40 +1,15 @@ +const fs = require("fs"); +const path = require("path"); const generatePlayground = require("../tree-sitter/script/generate-playground"); generatePlayground("docs", { name: "TOML", - example: ` -# This is a TOML document. - -title = "TOML Example" - -[owner] -name = "Tom Preston-Werner" -dob = 1979-05-27T07:32:00-08:00 # First class dates - -[database] -server = "192.168.1.1" -ports = [ 8001, 8001, 8002 ] -connection_max = 5000 -enabled = true - -[servers] - - # Indentation (tabs and/or spaces) is allowed but not required - [servers.alpha] - ip = "10.0.0.1" - dc = "eqdc10" - - [servers.beta] - ip = "10.0.0.2" - dc = "eqdc10" - -[clients] -data = [ ["gamma", "delta"], [1, 2] ] - -# Line breaks are OK when inside arrays -hosts = [ - "alpha", - "omega" -] -`.trim() + codeExample: fs.readFileSync( + path.resolve(__dirname, "../examples/toml-lang.toml"), + "utf8", + ), + queryExample: fs.readFileSync( + path.resolve(__dirname, "../queries/highlights.scm"), + "utf8", + ), }); diff --git a/src/grammar.json b/src/grammar.json index 35242d6..3e77e3d 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -73,7 +73,7 @@ }, { "type": "SYMBOL", - "name": "key" + "name": "_key" } ] }, @@ -119,7 +119,7 @@ }, { "type": "SYMBOL", - "name": "key" + "name": "_key" } ] }, @@ -174,7 +174,7 @@ }, { "type": "SYMBOL", - "name": "key" + "name": "_key" } ] }, @@ -188,16 +188,16 @@ } ] }, - "key": { + "_key": { "type": "CHOICE", "members": [ { "type": "SYMBOL", - "name": "_bare_key" + "name": "bare_key" }, { "type": "SYMBOL", - "name": "_quoted_key" + "name": "quoted_key" } ] }, @@ -213,7 +213,7 @@ }, { "type": "SYMBOL", - "name": "key" + "name": "_key" } ] }, @@ -223,15 +223,15 @@ }, { "type": "SYMBOL", - "name": "key" + "name": "_key" } ] }, - "_bare_key": { + "bare_key": { "type": "PATTERN", "value": "[A-Za-z0-9_-]+" }, - "_quoted_key": { + "quoted_key": { "type": "CHOICE", "members": [ { diff --git a/src/node-types.json b/src/node-types.json index bc2bfc9..e1cfdb6 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -81,12 +81,16 @@ "multiple": true, "required": true, "types": [ + { + "type": "bare_key", + "named": true + }, { "type": "dotted_key", "named": true }, { - "type": "key", + "type": "quoted_key", "named": true } ] @@ -117,21 +121,6 @@ "named": true, "fields": {} }, - { - "type": "key", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "escape_sequence", - "named": true - } - ] - } - }, { "type": "pair", "named": true, @@ -144,6 +133,10 @@ "type": "array", "named": true }, + { + "type": "bare_key", + "named": true + }, { "type": "boolean", "named": true @@ -164,10 +157,6 @@ "type": "integer", "named": true }, - { - "type": "key", - "named": true - }, { "type": "local_date", "named": true @@ -184,6 +173,10 @@ "type": "offset_date_time", "named": true }, + { + "type": "quoted_key", + "named": true + }, { "type": "string", "named": true @@ -191,6 +184,21 @@ ] } }, + { + "type": "quoted_key", + "named": true, + "fields": {}, + "children": { + "multiple": true, + "required": false, + "types": [ + { + "type": "escape_sequence", + "named": true + } + ] + } + }, { "type": "string", "named": true, @@ -214,16 +222,20 @@ "multiple": true, "required": true, "types": [ + { + "type": "bare_key", + "named": true + }, { "type": "dotted_key", "named": true }, { - "type": "key", + "type": "pair", "named": true }, { - "type": "pair", + "type": "quoted_key", "named": true } ] @@ -237,16 +249,20 @@ "multiple": true, "required": true, "types": [ + { + "type": "bare_key", + "named": true + }, { "type": "dotted_key", "named": true }, { - "type": "key", + "type": "pair", "named": true }, { - "type": "pair", + "type": "quoted_key", "named": true } ] @@ -296,6 +312,10 @@ "type": "]]", "named": false }, + { + "type": "bare_key", + "named": true + }, { "type": "boolean", "named": true diff --git a/src/parser.c b/src/parser.c index bf9f5d2..e0bb20a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -24,7 +24,7 @@ enum { anon_sym_RBRACK_RBRACK = 6, anon_sym_EQ = 7, anon_sym_DOT = 8, - sym__bare_key = 9, + sym_bare_key = 9, anon_sym_DQUOTE = 10, aux_sym__basic_string_token1 = 11, anon_sym_DQUOTE2 = 12, @@ -60,9 +60,9 @@ enum { sym_table_array_element = 42, sym_pair = 43, sym__inline_pair = 44, - sym_key = 45, + sym__key = 45, sym_dotted_key = 46, - sym__quoted_key = 47, + sym_quoted_key = 47, sym__inline_value = 48, sym_string = 49, sym__basic_string = 50, @@ -93,7 +93,7 @@ static const char *ts_symbol_names[] = { [anon_sym_RBRACK_RBRACK] = "]]", [anon_sym_EQ] = "=", [anon_sym_DOT] = ".", - [sym__bare_key] = "_bare_key", + [sym_bare_key] = "bare_key", [anon_sym_DQUOTE] = "\"", [aux_sym__basic_string_token1] = "_basic_string_token1", [anon_sym_DQUOTE2] = "\"", @@ -129,9 +129,9 @@ static const char *ts_symbol_names[] = { [sym_table_array_element] = "table_array_element", [sym_pair] = "pair", [sym__inline_pair] = "_inline_pair", - [sym_key] = "key", + [sym__key] = "_key", [sym_dotted_key] = "dotted_key", - [sym__quoted_key] = "_quoted_key", + [sym_quoted_key] = "quoted_key", [sym__inline_value] = "_inline_value", [sym_string] = "string", [sym__basic_string] = "_basic_string", @@ -162,7 +162,7 @@ static TSSymbol ts_symbol_map[] = { [anon_sym_RBRACK_RBRACK] = anon_sym_RBRACK_RBRACK, [anon_sym_EQ] = anon_sym_EQ, [anon_sym_DOT] = anon_sym_DOT, - [sym__bare_key] = sym__bare_key, + [sym_bare_key] = sym_bare_key, [anon_sym_DQUOTE] = anon_sym_DQUOTE, [aux_sym__basic_string_token1] = aux_sym__basic_string_token1, [anon_sym_DQUOTE2] = anon_sym_DQUOTE, @@ -198,9 +198,9 @@ static TSSymbol ts_symbol_map[] = { [sym_table_array_element] = sym_table_array_element, [sym_pair] = sym_pair, [sym__inline_pair] = sym__inline_pair, - [sym_key] = sym_key, + [sym__key] = sym__key, [sym_dotted_key] = sym_dotted_key, - [sym__quoted_key] = sym__quoted_key, + [sym_quoted_key] = sym_quoted_key, [sym__inline_value] = sym__inline_value, [sym_string] = sym_string, [sym__basic_string] = sym__basic_string, @@ -258,8 +258,8 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [sym__bare_key] = { - .visible = false, + [sym_bare_key] = { + .visible = true, .named = true, }, [anon_sym_DQUOTE] = { @@ -402,16 +402,16 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = true, }, - [sym_key] = { - .visible = true, + [sym__key] = { + .visible = false, .named = true, }, [sym_dotted_key] = { .visible = true, .named = true, }, - [sym__quoted_key] = { - .visible = false, + [sym_quoted_key] = { + .visible = true, .named = true, }, [sym__inline_value] = { @@ -935,7 +935,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ACCEPT_TOKEN(anon_sym_DOT); END_STATE(); case 87: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == ':') ADVANCE(46); if (lookahead == '_') ADVANCE(119); @@ -944,7 +944,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 88: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == ':') ADVANCE(46); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); @@ -953,7 +953,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 89: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == '_') ADVANCE(119); if (('0' <= lookahead && lookahead <= '3')) ADVANCE(87); @@ -962,7 +962,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 90: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == '_') ADVANCE(119); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(87); @@ -970,7 +970,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 91: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == '_') ADVANCE(119); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(91); @@ -978,7 +978,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 92: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (lookahead == 'b') ADVANCE(113); if (lookahead == 'o') ADVANCE(115); @@ -989,7 +989,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 93: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(96); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); if (('A' <= lookahead && lookahead <= 'Z') || @@ -997,7 +997,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 94: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-') ADVANCE(97); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || @@ -1005,7 +1005,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 95: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '0') ADVANCE(121); if (lookahead == 'i') ADVANCE(108); if (lookahead == 'n') ADVANCE(103); @@ -1016,7 +1016,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 96: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '0') ADVANCE(117); if (lookahead == '1') ADVANCE(114); if (lookahead == '-' || @@ -1026,7 +1026,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 97: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '0') ADVANCE(116); if (lookahead == '3') ADVANCE(112); if (lookahead == '1' || @@ -1038,7 +1038,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 98: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '_') ADVANCE(113); if (lookahead == '0' || lookahead == '1') ADVANCE(98); @@ -1048,7 +1048,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 99: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '_') ADVANCE(115); if (('0' <= lookahead && lookahead <= '7')) ADVANCE(99); if (lookahead == '-' || @@ -1058,7 +1058,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 100: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '_') ADVANCE(120); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || @@ -1068,7 +1068,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('g' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 101: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '_') ADVANCE(119); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(101); if (lookahead == '-' || @@ -1076,7 +1076,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 102: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'a') ADVANCE(106); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1085,7 +1085,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('b' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 103: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'a') ADVANCE(107); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1094,7 +1094,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('b' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 104: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'e') ADVANCE(121); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1103,7 +1103,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 105: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'f') ADVANCE(121); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1112,7 +1112,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 106: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'l') ADVANCE(110); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1121,7 +1121,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 107: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'n') ADVANCE(121); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1130,7 +1130,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 108: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'n') ADVANCE(105); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1139,7 +1139,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 109: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'r') ADVANCE(111); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1148,7 +1148,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 110: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 's') ADVANCE(104); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1157,7 +1157,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 111: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == 'u') ADVANCE(104); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || @@ -1166,7 +1166,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 112: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '0' || lookahead == '1') ADVANCE(121); if (lookahead == '-' || @@ -1176,7 +1176,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 113: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '0' || lookahead == '1') ADVANCE(98); if (lookahead == '-' || @@ -1186,7 +1186,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 114: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('0' <= lookahead && lookahead <= '2')) ADVANCE(94); if (lookahead == '-' || ('3' <= lookahead && lookahead <= '9') || @@ -1195,7 +1195,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 115: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('0' <= lookahead && lookahead <= '7')) ADVANCE(99); if (lookahead == '-' || lookahead == '8' || @@ -1205,7 +1205,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 116: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('1' <= lookahead && lookahead <= '9')) ADVANCE(121); if (lookahead == '-' || lookahead == '0' || @@ -1214,7 +1214,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 117: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('1' <= lookahead && lookahead <= '9')) ADVANCE(94); if (lookahead == '-' || lookahead == '0' || @@ -1223,7 +1223,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 118: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(121); if (lookahead == '-' || ('A' <= lookahead && lookahead <= 'Z') || @@ -1231,7 +1231,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 119: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(101); if (lookahead == '-' || ('A' <= lookahead && lookahead <= 'Z') || @@ -1239,7 +1239,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 120: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); @@ -1249,7 +1249,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('g' <= lookahead && lookahead <= 'z')) ADVANCE(121); END_STATE(); case 121: - ACCEPT_TOKEN(sym__bare_key); + ACCEPT_TOKEN(sym_bare_key); if (lookahead == '-' || ('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'Z') || @@ -1618,17 +1618,17 @@ static TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 9}, - [109] = {.lex_state = 9}, + [109] = {.lex_state = 0}, [110] = {.lex_state = 0}, - [111] = {.lex_state = 0}, - [112] = {.lex_state = 3}, - [113] = {.lex_state = 0}, - [114] = {.lex_state = 3}, - [115] = {.lex_state = 0}, + [111] = {.lex_state = 9}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 3}, + [114] = {.lex_state = 0}, + [115] = {.lex_state = 9}, [116] = {.lex_state = 9}, [117] = {.lex_state = 9}, [118] = {.lex_state = 9}, - [119] = {.lex_state = 9}, + [119] = {.lex_state = 3}, [120] = {.lex_state = 3}, [121] = {.lex_state = 0}, [122] = {.lex_state = 9}, @@ -1649,13 +1649,13 @@ static TSLexMode ts_lex_modes[STATE_COUNT] = { [137] = {.lex_state = 0, .external_lex_state = 4}, [138] = {.lex_state = 0, .external_lex_state = 4}, [139] = {.lex_state = 0, .external_lex_state = 4}, - [140] = {.lex_state = 9}, + [140] = {.lex_state = 0, .external_lex_state = 4}, [141] = {.lex_state = 0, .external_lex_state = 4}, [142] = {.lex_state = 0, .external_lex_state = 4}, [143] = {.lex_state = 0, .external_lex_state = 4}, - [144] = {.lex_state = 0}, - [145] = {.lex_state = 0, .external_lex_state = 4}, - [146] = {.lex_state = 0, .external_lex_state = 4}, + [144] = {.lex_state = 0, .external_lex_state = 4}, + [145] = {.lex_state = 0}, + [146] = {.lex_state = 9}, [147] = {.lex_state = 0, .external_lex_state = 4}, [148] = {.lex_state = 0, .external_lex_state = 4}, [149] = {.lex_state = 0, .external_lex_state = 4}, @@ -1710,7 +1710,7 @@ static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_LBRACK_LBRACK] = ACTIONS(1), [anon_sym_EQ] = ACTIONS(1), [anon_sym_DOT] = ACTIONS(1), - [sym__bare_key] = ACTIONS(1), + [sym_bare_key] = ACTIONS(1), [anon_sym_DQUOTE] = ACTIONS(1), [anon_sym_DQUOTE2] = ACTIONS(1), [anon_sym_DQUOTE_DQUOTE_DQUOTE] = ACTIONS(1), @@ -1738,16 +1738,16 @@ static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym__multiline_literal_string_end] = ACTIONS(1), }, [1] = { - [sym_document] = STATE(144), + [sym_document] = STATE(145), [sym_table] = STATE(52), [sym_table_array_element] = STATE(52), [sym_pair] = STATE(27), - [sym__inline_pair] = STATE(142), - [sym_key] = STATE(115), - [sym_dotted_key] = STATE(115), - [sym__quoted_key] = STATE(106), - [sym__basic_string] = STATE(106), - [sym__literal_string] = STATE(106), + [sym__inline_pair] = STATE(144), + [sym__key] = STATE(121), + [sym_dotted_key] = STATE(121), + [sym_quoted_key] = STATE(121), + [sym__basic_string] = STATE(100), + [sym__literal_string] = STATE(100), [aux_sym_document_repeat1] = STATE(27), [aux_sym_document_repeat2] = STATE(52), [ts_builtin_sym_end] = ACTIONS(5), @@ -1755,7 +1755,7 @@ static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_comment] = ACTIONS(3), [anon_sym_LBRACK] = ACTIONS(9), [anon_sym_LBRACK_LBRACK] = ACTIONS(11), - [sym__bare_key] = ACTIONS(13), + [sym_bare_key] = ACTIONS(13), [anon_sym_DQUOTE] = ACTIONS(15), [anon_sym_SQUOTE] = ACTIONS(17), }, @@ -2872,7 +2872,7 @@ static uint16_t ts_small_parse_table[] = { sym__multiline_basic_string, sym__literal_string, sym__multiline_literal_string, - STATE(111), 6, + STATE(110), 6, sym__inline_value, sym_string, sym_integer, @@ -2915,7 +2915,7 @@ static uint16_t ts_small_parse_table[] = { sym__multiline_basic_string, sym__literal_string, sym__multiline_literal_string, - STATE(137), 6, + STATE(127), 6, sym__inline_value, sym_string, sym_integer, @@ -2958,7 +2958,7 @@ static uint16_t ts_small_parse_table[] = { ACTIONS(11), 1, anon_sym_LBRACK_LBRACK, ACTIONS(13), 1, - sym__bare_key, + sym_bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, @@ -2967,27 +2967,27 @@ static uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, ACTIONS(148), 1, aux_sym_document_token1, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, STATE(32), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, + STATE(100), 2, + sym__basic_string, + sym__literal_string, STATE(48), 3, sym_table, sym_table_array_element, aux_sym_document_repeat2, - STATE(106), 3, - sym__quoted_key, - sym__basic_string, - sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1639] = 11, ACTIONS(3), 1, sym_comment, ACTIONS(13), 1, - sym__bare_key, + sym_bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, @@ -2996,7 +2996,7 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(154), 1, anon_sym_LBRACK, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, ACTIONS(150), 2, ts_builtin_sym_end, @@ -3004,18 +3004,18 @@ static uint16_t ts_small_parse_table[] = { STATE(31), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1678] = 11, ACTIONS(3), 1, sym_comment, ACTIONS(13), 1, - sym__bare_key, + sym_bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, @@ -3024,7 +3024,7 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(160), 1, anon_sym_LBRACK, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, ACTIONS(156), 2, ts_builtin_sym_end, @@ -3032,18 +3032,18 @@ static uint16_t ts_small_parse_table[] = { STATE(30), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1717] = 11, ACTIONS(3), 1, sym_comment, ACTIONS(13), 1, - sym__bare_key, + sym_bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, @@ -3052,7 +3052,7 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(164), 1, anon_sym_LBRACK, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, ACTIONS(162), 2, ts_builtin_sym_end, @@ -3060,18 +3060,18 @@ static uint16_t ts_small_parse_table[] = { STATE(32), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1756] = 11, ACTIONS(3), 1, sym_comment, ACTIONS(13), 1, - sym__bare_key, + sym_bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, @@ -3080,7 +3080,7 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(168), 1, anon_sym_LBRACK, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, ACTIONS(166), 2, ts_builtin_sym_end, @@ -3088,13 +3088,13 @@ static uint16_t ts_small_parse_table[] = { STATE(32), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1795] = 11, ACTIONS(3), 1, sym_comment, @@ -3103,12 +3103,12 @@ static uint16_t ts_small_parse_table[] = { ACTIONS(175), 1, anon_sym_LBRACK, ACTIONS(177), 1, - sym__bare_key, + sym_bare_key, ACTIONS(180), 1, anon_sym_DQUOTE, ACTIONS(183), 1, anon_sym_SQUOTE, - STATE(142), 1, + STATE(144), 1, sym__inline_pair, ACTIONS(170), 2, ts_builtin_sym_end, @@ -3116,169 +3116,169 @@ static uint16_t ts_small_parse_table[] = { STATE(32), 2, sym_pair, aux_sym_document_repeat1, - STATE(115), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(121), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1834] = 8, ACTIONS(3), 1, sym_comment, - ACTIONS(13), 1, - sym__bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, ACTIONS(186), 1, + sym_bare_key, + ACTIONS(188), 1, anon_sym_RBRACE, STATE(94), 1, sym__inline_pair, - STATE(110), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(112), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1862] = 8, ACTIONS(3), 1, sym_comment, - ACTIONS(13), 1, - sym__bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, - ACTIONS(188), 1, + ACTIONS(186), 1, + sym_bare_key, + ACTIONS(190), 1, anon_sym_RBRACE, STATE(99), 1, sym__inline_pair, - STATE(110), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(112), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1890] = 7, ACTIONS(3), 1, sym_comment, - ACTIONS(13), 1, - sym__bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, - STATE(113), 1, + ACTIONS(186), 1, + sym_bare_key, + STATE(114), 1, sym__inline_pair, - STATE(110), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(112), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1915] = 6, ACTIONS(3), 1, sym_comment, - ACTIONS(13), 1, - sym__bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, - STATE(121), 2, - sym_key, - sym_dotted_key, - STATE(106), 3, - sym__quoted_key, + ACTIONS(192), 1, + sym_bare_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(109), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1937] = 6, ACTIONS(3), 1, sym_comment, - ACTIONS(190), 1, - sym__bare_key, - ACTIONS(192), 1, - anon_sym_DQUOTE, ACTIONS(194), 1, + sym_bare_key, + ACTIONS(196), 1, + anon_sym_DQUOTE, + ACTIONS(198), 1, anon_sym_SQUOTE, STATE(122), 2, - sym_key, - sym_dotted_key, - STATE(109), 3, - sym__quoted_key, sym__basic_string, sym__literal_string, + STATE(108), 3, + sym__key, + sym_dotted_key, + sym_quoted_key, [1959] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(198), 1, - aux_sym__basic_string_token1, ACTIONS(202), 1, + aux_sym__basic_string_token1, + ACTIONS(206), 1, sym__multiline_basic_string_end, STATE(39), 1, aux_sym__multiline_basic_string_repeat1, - ACTIONS(200), 4, + ACTIONS(204), 4, sym__multiline_basic_string_content, aux_sym__multiline_basic_string_token1, sym_escape_sequence, sym__escape_line_ending, [1978] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(204), 1, + ACTIONS(208), 1, aux_sym__basic_string_token1, - ACTIONS(210), 1, + ACTIONS(214), 1, sym__multiline_basic_string_end, STATE(39), 1, aux_sym__multiline_basic_string_repeat1, - ACTIONS(207), 4, + ACTIONS(211), 4, sym__multiline_basic_string_content, aux_sym__multiline_basic_string_token1, sym_escape_sequence, sym__escape_line_ending, [1997] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(212), 1, - aux_sym__basic_string_token1, ACTIONS(216), 1, + aux_sym__basic_string_token1, + ACTIONS(220), 1, sym__multiline_basic_string_end, STATE(38), 1, aux_sym__multiline_basic_string_repeat1, - ACTIONS(214), 4, + ACTIONS(218), 4, sym__multiline_basic_string_content, aux_sym__multiline_basic_string_token1, sym_escape_sequence, sym__escape_line_ending, [2016] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(218), 1, - aux_sym__basic_string_token1, ACTIONS(222), 1, + aux_sym__basic_string_token1, + ACTIONS(226), 1, sym__multiline_basic_string_end, STATE(42), 1, aux_sym__multiline_basic_string_repeat1, - ACTIONS(220), 4, + ACTIONS(224), 4, sym__multiline_basic_string_content, aux_sym__multiline_basic_string_token1, sym_escape_sequence, sym__escape_line_ending, [2035] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(198), 1, + ACTIONS(202), 1, aux_sym__basic_string_token1, - ACTIONS(224), 1, + ACTIONS(228), 1, sym__multiline_basic_string_end, STATE(39), 1, aux_sym__multiline_basic_string_repeat1, - ACTIONS(200), 4, + ACTIONS(204), 4, sym__multiline_basic_string_content, aux_sym__multiline_basic_string_token1, sym_escape_sequence, @@ -3286,49 +3286,49 @@ static uint16_t ts_small_parse_table[] = { [2054] = 6, ACTIONS(3), 1, sym_comment, - ACTIONS(190), 1, - sym__bare_key, - ACTIONS(192), 1, + ACTIONS(196), 1, anon_sym_DQUOTE, - ACTIONS(194), 1, + ACTIONS(198), 1, anon_sym_SQUOTE, - STATE(108), 1, - sym_key, - STATE(109), 3, - sym__quoted_key, + ACTIONS(230), 1, + sym_bare_key, + STATE(111), 2, + sym__key, + sym_quoted_key, + STATE(122), 2, sym__basic_string, sym__literal_string, [2075] = 6, ACTIONS(3), 1, sym_comment, - ACTIONS(13), 1, - sym__bare_key, ACTIONS(15), 1, anon_sym_DQUOTE, ACTIONS(17), 1, anon_sym_SQUOTE, - STATE(104), 1, - sym_key, - STATE(106), 3, - sym__quoted_key, + ACTIONS(232), 1, + sym_bare_key, + STATE(100), 2, sym__basic_string, sym__literal_string, + STATE(105), 2, + sym__key, + sym_quoted_key, [2096] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(228), 1, + ACTIONS(236), 1, anon_sym_LBRACK, - ACTIONS(226), 6, + ACTIONS(234), 6, ts_builtin_sym_end, aux_sym_document_token1, anon_sym_LBRACK_LBRACK, - sym__bare_key, + sym_bare_key, anon_sym_DQUOTE, anon_sym_SQUOTE, [2111] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(230), 6, + ACTIONS(238), 6, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_EQ, @@ -3338,11 +3338,11 @@ static uint16_t ts_small_parse_table[] = { [2123] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(232), 1, + ACTIONS(240), 1, ts_builtin_sym_end, - ACTIONS(234), 1, + ACTIONS(242), 1, anon_sym_LBRACK, - ACTIONS(237), 1, + ACTIONS(245), 1, anon_sym_LBRACK_LBRACK, STATE(47), 3, sym_table, @@ -3355,7 +3355,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(11), 1, anon_sym_LBRACK_LBRACK, - ACTIONS(240), 1, + ACTIONS(248), 1, ts_builtin_sym_end, STATE(47), 3, sym_table, @@ -3364,7 +3364,7 @@ static uint16_t ts_small_parse_table[] = { [2159] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(242), 6, + ACTIONS(250), 6, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_EQ, @@ -3374,7 +3374,7 @@ static uint16_t ts_small_parse_table[] = { [2171] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(244), 6, + ACTIONS(252), 6, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_EQ, @@ -3384,7 +3384,7 @@ static uint16_t ts_small_parse_table[] = { [2183] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(246), 6, + ACTIONS(254), 6, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_EQ, @@ -3409,22 +3409,22 @@ static uint16_t ts_small_parse_table[] = { sym_comment, ACTIONS(95), 1, anon_sym_RBRACK, - ACTIONS(248), 1, + ACTIONS(256), 1, aux_sym_document_token1, - ACTIONS(250), 1, + ACTIONS(258), 1, anon_sym_COMMA, STATE(58), 1, aux_sym_array_repeat1, - STATE(100), 1, + STATE(101), 1, aux_sym_array_repeat2, [2232] = 6, ACTIONS(3), 1, sym_comment, ACTIONS(23), 1, anon_sym_RBRACK, - ACTIONS(252), 1, + ACTIONS(260), 1, aux_sym_document_token1, - ACTIONS(254), 1, + ACTIONS(262), 1, anon_sym_COMMA, STATE(57), 1, aux_sym_array_repeat1, @@ -3435,24 +3435,24 @@ static uint16_t ts_small_parse_table[] = { sym_comment, ACTIONS(73), 1, anon_sym_RBRACK, - ACTIONS(256), 1, + ACTIONS(264), 1, aux_sym_document_token1, - ACTIONS(258), 1, + ACTIONS(266), 1, anon_sym_COMMA, STATE(65), 1, aux_sym_array_repeat1, - STATE(105), 1, + STATE(106), 1, aux_sym_array_repeat2, [2270] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(262), 1, + ACTIONS(270), 1, aux_sym__literal_string_token1, - ACTIONS(264), 1, + ACTIONS(272), 1, sym__multiline_literal_string_end, STATE(60), 1, aux_sym__multiline_literal_string_repeat1, - ACTIONS(260), 2, + ACTIONS(268), 2, sym__multiline_literal_string_content, aux_sym__multiline_basic_string_token1, [2287] = 6, @@ -3462,11 +3462,11 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(73), 1, anon_sym_RBRACK, - ACTIONS(258), 1, + ACTIONS(266), 1, anon_sym_COMMA, STATE(26), 1, aux_sym_array_repeat1, - STATE(105), 1, + STATE(106), 1, aux_sym_array_repeat2, [2306] = 6, ACTIONS(3), 1, @@ -3475,34 +3475,34 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(77), 1, anon_sym_RBRACK, - ACTIONS(266), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(26), 1, aux_sym_array_repeat1, STATE(98), 1, aux_sym_array_repeat2, [2325] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(270), 1, - aux_sym__literal_string_token1, - ACTIONS(272), 1, - sym__multiline_literal_string_end, - STATE(63), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(268), 2, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - [2342] = 5, - ACTIONS(196), 1, - sym_comment, - ACTIONS(277), 1, + ACTIONS(278), 1, aux_sym__literal_string_token1, ACTIONS(280), 1, sym__multiline_literal_string_end, + STATE(63), 1, + aux_sym__multiline_literal_string_repeat1, + ACTIONS(276), 2, + sym__multiline_literal_string_content, + aux_sym__multiline_basic_string_token1, + [2342] = 5, + ACTIONS(200), 1, + sym_comment, + ACTIONS(285), 1, + aux_sym__literal_string_token1, + ACTIONS(288), 1, + sym__multiline_literal_string_end, STATE(60), 1, aux_sym__multiline_literal_string_repeat1, - ACTIONS(274), 2, + ACTIONS(282), 2, sym__multiline_literal_string_content, aux_sym__multiline_basic_string_token1, [2359] = 6, @@ -3510,36 +3510,36 @@ static uint16_t ts_small_parse_table[] = { sym_comment, ACTIONS(105), 1, anon_sym_RBRACK, - ACTIONS(282), 1, + ACTIONS(290), 1, aux_sym_document_token1, - ACTIONS(284), 1, + ACTIONS(292), 1, anon_sym_COMMA, STATE(64), 1, aux_sym_array_repeat1, STATE(103), 1, aux_sym_array_repeat2, [2378] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(288), 1, + ACTIONS(296), 1, aux_sym__literal_string_token1, - ACTIONS(290), 1, + ACTIONS(298), 1, sym__multiline_literal_string_end, STATE(56), 1, aux_sym__multiline_literal_string_repeat1, - ACTIONS(286), 2, + ACTIONS(294), 2, sym__multiline_literal_string_content, aux_sym__multiline_basic_string_token1, [2395] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(262), 1, + ACTIONS(270), 1, aux_sym__literal_string_token1, - ACTIONS(292), 1, + ACTIONS(300), 1, sym__multiline_literal_string_end, STATE(60), 1, aux_sym__multiline_literal_string_repeat1, - ACTIONS(260), 2, + ACTIONS(268), 2, sym__multiline_literal_string_content, aux_sym__multiline_basic_string_token1, [2412] = 6, @@ -3549,11 +3549,11 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(95), 1, anon_sym_RBRACK, - ACTIONS(250), 1, + ACTIONS(258), 1, anon_sym_COMMA, STATE(26), 1, aux_sym_array_repeat1, - STATE(100), 1, + STATE(101), 1, aux_sym_array_repeat2, [2431] = 6, ACTIONS(3), 1, @@ -3562,26 +3562,26 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, ACTIONS(69), 1, anon_sym_RBRACK, - ACTIONS(294), 1, + ACTIONS(302), 1, anon_sym_COMMA, STATE(26), 1, aux_sym_array_repeat1, - STATE(107), 1, + STATE(95), 1, aux_sym_array_repeat2, [2450] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(296), 1, + ACTIONS(304), 1, aux_sym_document_token1, STATE(81), 1, aux_sym_array_repeat1, - ACTIONS(298), 2, + ACTIONS(306), 2, anon_sym_RBRACK, anon_sym_COMMA, [2464] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(300), 4, + ACTIONS(308), 4, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_COMMA, @@ -3589,67 +3589,67 @@ static uint16_t ts_small_parse_table[] = { [2474] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(302), 1, + ACTIONS(310), 1, aux_sym_document_token1, STATE(74), 1, aux_sym_array_repeat1, - ACTIONS(304), 2, + ACTIONS(312), 2, anon_sym_RBRACK, anon_sym_COMMA, [2488] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(306), 1, + ACTIONS(314), 1, aux_sym__basic_string_token1, - ACTIONS(308), 1, + ACTIONS(316), 1, anon_sym_DQUOTE2, - ACTIONS(310), 1, + ACTIONS(318), 1, sym_escape_sequence, - STATE(73), 1, + STATE(72), 1, aux_sym__basic_string_repeat1, [2504] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(312), 1, + ACTIONS(320), 1, aux_sym__basic_string_token1, - ACTIONS(314), 1, + ACTIONS(322), 1, anon_sym_DQUOTE2, - ACTIONS(316), 1, + ACTIONS(324), 1, sym_escape_sequence, STATE(69), 1, aux_sym__basic_string_repeat1, [2520] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(318), 1, + ACTIONS(314), 1, aux_sym__basic_string_token1, - ACTIONS(320), 1, - anon_sym_DQUOTE2, - ACTIONS(322), 1, + ACTIONS(318), 1, sym_escape_sequence, + ACTIONS(326), 1, + anon_sym_DQUOTE2, STATE(72), 1, aux_sym__basic_string_repeat1, [2536] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(306), 1, + ACTIONS(328), 1, aux_sym__basic_string_token1, - ACTIONS(310), 1, - sym_escape_sequence, - ACTIONS(324), 1, + ACTIONS(331), 1, anon_sym_DQUOTE2, - STATE(73), 1, + ACTIONS(333), 1, + sym_escape_sequence, + STATE(72), 1, aux_sym__basic_string_repeat1, [2552] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(326), 1, + ACTIONS(314), 1, aux_sym__basic_string_token1, - ACTIONS(329), 1, - anon_sym_DQUOTE2, - ACTIONS(331), 1, + ACTIONS(318), 1, sym_escape_sequence, - STATE(73), 1, + ACTIONS(336), 1, + anon_sym_DQUOTE2, + STATE(72), 1, aux_sym__basic_string_repeat1, [2568] = 4, ACTIONS(3), 1, @@ -3658,35 +3658,35 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, STATE(26), 1, aux_sym_array_repeat1, - ACTIONS(298), 2, + ACTIONS(306), 2, anon_sym_RBRACK, anon_sym_COMMA, [2582] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(306), 1, + ACTIONS(338), 1, aux_sym__basic_string_token1, - ACTIONS(310), 1, - sym_escape_sequence, - ACTIONS(334), 1, + ACTIONS(340), 1, anon_sym_DQUOTE2, + ACTIONS(342), 1, + sym_escape_sequence, STATE(73), 1, aux_sym__basic_string_repeat1, [2598] = 5, - ACTIONS(196), 1, + ACTIONS(200), 1, sym_comment, - ACTIONS(336), 1, + ACTIONS(344), 1, aux_sym__basic_string_token1, - ACTIONS(338), 1, + ACTIONS(346), 1, anon_sym_DQUOTE2, - ACTIONS(340), 1, + ACTIONS(348), 1, sym_escape_sequence, - STATE(75), 1, + STATE(71), 1, aux_sym__basic_string_repeat1, [2614] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(342), 4, + ACTIONS(350), 4, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_COMMA, @@ -3694,7 +3694,7 @@ static uint16_t ts_small_parse_table[] = { [2624] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(344), 4, + ACTIONS(352), 4, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_COMMA, @@ -3702,7 +3702,7 @@ static uint16_t ts_small_parse_table[] = { [2634] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(346), 4, + ACTIONS(354), 4, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_COMMA, @@ -3710,7 +3710,7 @@ static uint16_t ts_small_parse_table[] = { [2644] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(348), 4, + ACTIONS(356), 4, aux_sym_document_token1, anon_sym_RBRACK, anon_sym_COMMA, @@ -3722,42 +3722,10 @@ static uint16_t ts_small_parse_table[] = { aux_sym_document_token1, STATE(26), 1, aux_sym_array_repeat1, - ACTIONS(350), 2, + ACTIONS(358), 2, anon_sym_RBRACK, anon_sym_COMMA, [2668] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(352), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2678] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(354), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2688] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(356), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2698] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(358), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2708] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(360), 4, @@ -3765,7 +3733,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2718] = 2, + [2678] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(362), 4, @@ -3773,7 +3741,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2728] = 2, + [2688] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(364), 4, @@ -3781,7 +3749,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2738] = 2, + [2698] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(366), 4, @@ -3789,7 +3757,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2748] = 2, + [2708] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(368), 4, @@ -3797,7 +3765,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2758] = 2, + [2718] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(370), 4, @@ -3805,7 +3773,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2768] = 2, + [2728] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(372), 4, @@ -3813,7 +3781,7 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, - [2778] = 2, + [2738] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(374), 4, @@ -3821,39 +3789,71 @@ static uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, anon_sym_COMMA, anon_sym_RBRACE, + [2748] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(376), 4, + aux_sym_document_token1, + anon_sym_RBRACK, + anon_sym_COMMA, + anon_sym_RBRACE, + [2758] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(378), 4, + aux_sym_document_token1, + anon_sym_RBRACK, + anon_sym_COMMA, + anon_sym_RBRACE, + [2768] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(380), 4, + aux_sym_document_token1, + anon_sym_RBRACK, + anon_sym_COMMA, + anon_sym_RBRACE, + [2778] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(382), 4, + aux_sym_document_token1, + anon_sym_RBRACK, + anon_sym_COMMA, + anon_sym_RBRACE, [2788] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(376), 1, + ACTIONS(384), 1, anon_sym_COMMA, - ACTIONS(378), 1, + ACTIONS(386), 1, anon_sym_RBRACE, STATE(102), 1, aux_sym_inline_table_repeat1, [2801] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(376), 1, + ACTIONS(53), 1, + anon_sym_RBRACK, + ACTIONS(388), 1, anon_sym_COMMA, - ACTIONS(380), 1, - anon_sym_RBRACE, - STATE(101), 1, - aux_sym_inline_table_repeat1, + STATE(97), 1, + aux_sym_array_repeat2, [2814] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(73), 1, anon_sym_RBRACK, - ACTIONS(258), 1, + ACTIONS(266), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, [2827] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(304), 1, + ACTIONS(312), 1, anon_sym_RBRACK, - ACTIONS(382), 1, + ACTIONS(390), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, @@ -3862,328 +3862,328 @@ static uint16_t ts_small_parse_table[] = { sym_comment, ACTIONS(65), 1, anon_sym_RBRACK, - ACTIONS(385), 1, + ACTIONS(393), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, [2853] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(376), 1, + ACTIONS(384), 1, anon_sym_COMMA, - ACTIONS(387), 1, + ACTIONS(395), 1, anon_sym_RBRACE, - STATE(95), 1, + STATE(107), 1, aux_sym_inline_table_repeat1, - [2866] = 4, + [2866] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(397), 3, + anon_sym_RBRACK, + anon_sym_EQ, + anon_sym_DOT, + [2875] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(77), 1, anon_sym_RBRACK, - ACTIONS(266), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, - [2879] = 4, + [2888] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(389), 1, + ACTIONS(384), 1, anon_sym_COMMA, - ACTIONS(392), 1, + ACTIONS(399), 1, anon_sym_RBRACE, - STATE(101), 1, + STATE(104), 1, aux_sym_inline_table_repeat1, - [2892] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(376), 1, - anon_sym_COMMA, - ACTIONS(394), 1, - anon_sym_RBRACE, - STATE(101), 1, - aux_sym_inline_table_repeat1, - [2905] = 4, + [2901] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(95), 1, anon_sym_RBRACK, - ACTIONS(250), 1, + ACTIONS(258), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, - [2918] = 2, + [2914] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(396), 3, + ACTIONS(401), 1, + anon_sym_COMMA, + ACTIONS(404), 1, + anon_sym_RBRACE, + STATE(104), 1, + aux_sym_inline_table_repeat1, + [2927] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(406), 3, anon_sym_RBRACK, anon_sym_EQ, anon_sym_DOT, - [2927] = 4, + [2936] = 4, ACTIONS(3), 1, sym_comment, ACTIONS(69), 1, anon_sym_RBRACK, - ACTIONS(294), 1, + ACTIONS(302), 1, anon_sym_COMMA, STATE(97), 1, aux_sym_array_repeat2, - [2940] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(398), 3, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, [2949] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(53), 1, - anon_sym_RBRACK, - ACTIONS(400), 1, + ACTIONS(384), 1, anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2962] = 2, + ACTIONS(408), 1, + anon_sym_RBRACE, + STATE(104), 1, + aux_sym_inline_table_repeat1, + [2962] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(396), 2, + ACTIONS(410), 1, anon_sym_RBRACK_RBRACK, + ACTIONS(412), 1, anon_sym_DOT, - [2970] = 2, + [2972] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(398), 2, - anon_sym_RBRACK_RBRACK, + ACTIONS(414), 1, + anon_sym_RBRACK, + ACTIONS(416), 1, anon_sym_DOT, - [2978] = 3, + [2982] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(402), 1, - anon_sym_EQ, - ACTIONS(404), 1, - anon_sym_DOT, - [2988] = 2, + ACTIONS(418), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2990] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(406), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2996] = 3, - ACTIONS(196), 1, - sym_comment, - ACTIONS(408), 1, - aux_sym__literal_string_token1, - ACTIONS(410), 1, - anon_sym_SQUOTE2, - [3006] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(412), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [3014] = 3, - ACTIONS(196), 1, - sym_comment, - ACTIONS(414), 1, - aux_sym__literal_string_token1, - ACTIONS(416), 1, - anon_sym_SQUOTE2, - [3024] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(404), 1, + anon_sym_RBRACK_RBRACK, anon_sym_DOT, - ACTIONS(418), 1, + [2998] = 3, + ACTIONS(3), 1, + sym_comment, + ACTIONS(416), 1, + anon_sym_DOT, + ACTIONS(420), 1, anon_sym_EQ, + [3008] = 3, + ACTIONS(200), 1, + sym_comment, + ACTIONS(422), 1, + aux_sym__literal_string_token1, + ACTIONS(424), 1, + anon_sym_SQUOTE2, + [3018] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(426), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [3026] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(254), 2, + anon_sym_RBRACK_RBRACK, + anon_sym_DOT, [3034] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(246), 2, + ACTIONS(252), 2, anon_sym_RBRACK_RBRACK, anon_sym_DOT, [3042] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(244), 2, + ACTIONS(238), 2, anon_sym_RBRACK_RBRACK, anon_sym_DOT, [3050] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(230), 2, + ACTIONS(250), 2, anon_sym_RBRACK_RBRACK, anon_sym_DOT, - [3058] = 2, - ACTIONS(3), 1, + [3058] = 3, + ACTIONS(200), 1, sym_comment, - ACTIONS(242), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3066] = 3, - ACTIONS(196), 1, - sym_comment, - ACTIONS(420), 1, - aux_sym__literal_string_token1, - ACTIONS(422), 1, - anon_sym_SQUOTE2, - [3076] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(404), 1, - anon_sym_DOT, - ACTIONS(424), 1, - anon_sym_RBRACK, - [3086] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(426), 1, - anon_sym_RBRACK_RBRACK, ACTIONS(428), 1, + aux_sym__literal_string_token1, + ACTIONS(430), 1, + anon_sym_SQUOTE2, + [3068] = 3, + ACTIONS(200), 1, + sym_comment, + ACTIONS(432), 1, + aux_sym__literal_string_token1, + ACTIONS(434), 1, + anon_sym_SQUOTE2, + [3078] = 3, + ACTIONS(3), 1, + sym_comment, + ACTIONS(416), 1, + anon_sym_DOT, + ACTIONS(436), 1, + anon_sym_EQ, + [3088] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(397), 2, + anon_sym_RBRACK_RBRACK, anon_sym_DOT, [3096] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(246), 1, + ACTIONS(362), 1, sym__line_ending_or_eof, [3103] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(244), 1, + ACTIONS(382), 1, sym__line_ending_or_eof, [3110] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(372), 1, + ACTIONS(380), 1, sym__line_ending_or_eof, [3117] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(360), 1, + ACTIONS(368), 1, sym__line_ending_or_eof, [3124] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(366), 1, + ACTIONS(418), 1, sym__line_ending_or_eof, [3131] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(356), 1, + ACTIONS(364), 1, sym__line_ending_or_eof, [3138] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(354), 1, + ACTIONS(250), 1, sym__line_ending_or_eof, [3145] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(348), 1, + ACTIONS(238), 1, sym__line_ending_or_eof, [3152] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(362), 1, + ACTIONS(370), 1, sym__line_ending_or_eof, [3159] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(430), 1, + ACTIONS(438), 1, sym__line_ending_or_eof, [3166] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(432), 1, + ACTIONS(440), 1, sym__line_ending_or_eof, [3173] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(370), 1, + ACTIONS(378), 1, sym__line_ending_or_eof, [3180] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(434), 1, + ACTIONS(442), 1, anon_sym_SQUOTE2, [3187] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(368), 1, + ACTIONS(252), 1, sym__line_ending_or_eof, [3194] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(406), 1, + ACTIONS(360), 1, sym__line_ending_or_eof, [3201] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(364), 1, + ACTIONS(372), 1, sym__line_ending_or_eof, [3208] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(230), 1, + ACTIONS(254), 1, sym__line_ending_or_eof, [3215] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(436), 1, - anon_sym_SQUOTE2, + ACTIONS(354), 1, + sym__line_ending_or_eof, [3222] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(358), 1, - sym__line_ending_or_eof, - [3229] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(438), 1, - sym__line_ending_or_eof, - [3236] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(342), 1, - sym__line_ending_or_eof, - [3243] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(440), 1, - ts_builtin_sym_end, - [3250] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(300), 1, - sym__line_ending_or_eof, - [3257] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(352), 1, - sym__line_ending_or_eof, - [3264] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(346), 1, - sym__line_ending_or_eof, - [3271] = 2, ACTIONS(3), 1, sym_comment, ACTIONS(374), 1, sym__line_ending_or_eof, + [3229] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(376), 1, + sym__line_ending_or_eof, + [3236] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(350), 1, + sym__line_ending_or_eof, + [3243] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(444), 1, + sym__line_ending_or_eof, + [3250] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(446), 1, + ts_builtin_sym_end, + [3257] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(448), 1, + anon_sym_SQUOTE2, + [3264] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(356), 1, + sym__line_ending_or_eof, + [3271] = 2, + ACTIONS(3), 1, + sym_comment, + ACTIONS(366), 1, + sym__line_ending_or_eof, [3278] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(344), 1, + ACTIONS(352), 1, sym__line_ending_or_eof, [3285] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(442), 1, + ACTIONS(450), 1, anon_sym_SQUOTE2, [3292] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(242), 1, + ACTIONS(308), 1, sym__line_ending_or_eof, }; @@ -4287,28 +4287,28 @@ static uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(98)] = 2840, [SMALL_STATE(99)] = 2853, [SMALL_STATE(100)] = 2866, - [SMALL_STATE(101)] = 2879, - [SMALL_STATE(102)] = 2892, - [SMALL_STATE(103)] = 2905, - [SMALL_STATE(104)] = 2918, + [SMALL_STATE(101)] = 2875, + [SMALL_STATE(102)] = 2888, + [SMALL_STATE(103)] = 2901, + [SMALL_STATE(104)] = 2914, [SMALL_STATE(105)] = 2927, - [SMALL_STATE(106)] = 2940, + [SMALL_STATE(106)] = 2936, [SMALL_STATE(107)] = 2949, [SMALL_STATE(108)] = 2962, - [SMALL_STATE(109)] = 2970, - [SMALL_STATE(110)] = 2978, - [SMALL_STATE(111)] = 2988, - [SMALL_STATE(112)] = 2996, - [SMALL_STATE(113)] = 3006, - [SMALL_STATE(114)] = 3014, - [SMALL_STATE(115)] = 3024, + [SMALL_STATE(109)] = 2972, + [SMALL_STATE(110)] = 2982, + [SMALL_STATE(111)] = 2990, + [SMALL_STATE(112)] = 2998, + [SMALL_STATE(113)] = 3008, + [SMALL_STATE(114)] = 3018, + [SMALL_STATE(115)] = 3026, [SMALL_STATE(116)] = 3034, [SMALL_STATE(117)] = 3042, [SMALL_STATE(118)] = 3050, [SMALL_STATE(119)] = 3058, - [SMALL_STATE(120)] = 3066, - [SMALL_STATE(121)] = 3076, - [SMALL_STATE(122)] = 3086, + [SMALL_STATE(120)] = 3068, + [SMALL_STATE(121)] = 3078, + [SMALL_STATE(122)] = 3088, [SMALL_STATE(123)] = 3096, [SMALL_STATE(124)] = 3103, [SMALL_STATE(125)] = 3110, @@ -4348,15 +4348,15 @@ static TSParseActionEntry ts_parse_actions[] = { [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36), [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), + [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(71), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(76), [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), + [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(120), [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), [33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(83), [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), @@ -4368,7 +4368,7 @@ static TSParseActionEntry ts_parse_actions[] = { [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), [49] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66), [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), [57] = {.entry = {.count = 1, .reusable = false}}, SHIFT(68), [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), @@ -4376,7 +4376,7 @@ static TSParseActionEntry ts_parse_actions[] = { [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147), [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), @@ -4398,18 +4398,18 @@ static TSParseActionEntry ts_parse_actions[] = { [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), [119] = {.entry = {.count = 1, .reusable = false}}, SHIFT(70), [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [127] = {.entry = {.count = 1, .reusable = false}}, SHIFT(129), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [127] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137), - [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127), [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2), SHIFT_REPEAT(26), [142] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2), @@ -4429,133 +4429,137 @@ static TSParseActionEntry ts_parse_actions[] = { [170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), [172] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(32), [175] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), - [177] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(106), - [180] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(71), - [183] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(114), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [196] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(), - [198] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), - [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [204] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), SHIFT_REPEAT(39), - [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), SHIFT_REPEAT(39), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), - [212] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [218] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pair, 2), - [228] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_pair, 2), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 3), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), - [234] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(36), - [237] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(37), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 3), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 2), - [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 2), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [262] = {.entry = {.count = 1, .reusable = false}}, SHIFT(60), - [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(145), - [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [270] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63), - [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [274] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), SHIFT_REPEAT(60), - [277] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), SHIFT_REPEAT(60), - [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [288] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56), - [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 3), - [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 3), - [302] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [304] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), - [306] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), - [308] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), - [310] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [312] = {.entry = {.count = 1, .reusable = false}}, SHIFT(69), - [314] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), - [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [318] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72), - [320] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [322] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [324] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [326] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__basic_string_repeat1, 2), SHIFT_REPEAT(73), - [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), - [331] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), SHIFT_REPEAT(73), - [334] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [336] = {.entry = {.count = 1, .reusable = false}}, SHIFT(75), - [338] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), - [340] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 8), - [344] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 7), - [346] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 6), - [348] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 5), - [350] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 4), - [352] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 4, .production_id = 1), - [354] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer, 1), - [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_float, 1), - [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 3, .production_id = 1), - [360] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 1), - [362] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4), - [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 2), - [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 2), - [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 2), - [370] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 2), - [372] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3), - [374] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 3), - [376] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [378] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [380] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146), - [382] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), SHIFT_REPEAT(22), - [385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), - [389] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), SHIFT_REPEAT(35), - [392] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), - [394] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [396] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dotted_key, 3), - [398] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_key, 1), - [400] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [402] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [404] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [406] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__inline_pair, 3), - [408] = {.entry = {.count = 1, .reusable = false}}, SHIFT(150), - [410] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [412] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2, .production_id = 1), - [414] = {.entry = {.count = 1, .reusable = false}}, SHIFT(135), - [416] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [418] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [420] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), - [422] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [424] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [426] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [428] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [430] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [432] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [434] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [436] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [440] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(151), + [177] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(121), + [180] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(76), + [183] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(120), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), + [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), + [200] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(), + [202] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), + [204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [208] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), SHIFT_REPEAT(39), + [211] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), SHIFT_REPEAT(39), + [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), + [216] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [222] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), + [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [230] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pair, 2), + [236] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_pair, 2), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 3), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), + [242] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(36), + [245] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(37), + [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 3), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 2), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 2), + [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), + [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [270] = {.entry = {.count = 1, .reusable = false}}, SHIFT(60), + [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(151), + [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [276] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [278] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63), + [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [282] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), SHIFT_REPEAT(60), + [285] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), SHIFT_REPEAT(60), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), + [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56), + [298] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), + [300] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [302] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 3), + [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 3), + [310] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [312] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), + [314] = {.entry = {.count = 1, .reusable = false}}, SHIFT(72), + [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [318] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [320] = {.entry = {.count = 1, .reusable = false}}, SHIFT(69), + [322] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), + [324] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [328] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__basic_string_repeat1, 2), SHIFT_REPEAT(72), + [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), + [333] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), SHIFT_REPEAT(72), + [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [338] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), + [340] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [342] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [344] = {.entry = {.count = 1, .reusable = false}}, SHIFT(71), + [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [348] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [350] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 8), + [352] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 7), + [354] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 6), + [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 5), + [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 4), + [360] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 4, .production_id = 1), + [362] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer, 1), + [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_float, 1), + [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 3, .production_id = 1), + [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 1), + [370] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4), + [372] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 2), + [374] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 2), + [376] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 2), + [378] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 2), + [380] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3), + [382] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 3), + [384] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [386] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [388] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [390] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), SHIFT_REPEAT(22), + [393] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148), + [397] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_key, 1), + [399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [401] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), SHIFT_REPEAT(35), + [404] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), + [406] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dotted_key, 3), + [408] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137), + [410] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [412] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [414] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), + [416] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [418] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__inline_pair, 3), + [420] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [422] = {.entry = {.count = 1, .reusable = false}}, SHIFT(150), + [424] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), + [426] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2, .production_id = 1), + [428] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146), + [430] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), + [432] = {.entry = {.count = 1, .reusable = false}}, SHIFT(135), + [434] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [436] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [440] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [444] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [446] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [448] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [450] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), }; #ifdef __cplusplus