From ff71cb1f6de07479610fb0f45e740b249e8a01c6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 12:32:53 +0300 Subject: Introduce param & arg list --- tests/data/parser/err/0005_attribute_recover.txt | 14 ++++++++------ tests/data/parser/err/0007_stray_curly_in_file.txt | 5 +++-- tests/data/parser/err/0008_item_block_recovery.txt | 14 ++++++++------ 3 files changed, 19 insertions(+), 14 deletions(-) (limited to 'tests/data/parser/err') diff --git a/tests/data/parser/err/0005_attribute_recover.txt b/tests/data/parser/err/0005_attribute_recover.txt index 74dd38959..78e58e0df 100644 --- a/tests/data/parser/err/0005_attribute_recover.txt +++ b/tests/data/parser/err/0005_attribute_recover.txt @@ -26,10 +26,11 @@ FILE@[0; 54) NAME@[21; 25) WHITESPACE@[21; 22) IDENT@[22; 25) "foo" - L_PAREN@[25; 26) - R_PAREN@[26; 27) - BLOCK@[27; 34) + PARAM_LIST@[25; 28) + L_PAREN@[25; 26) + R_PAREN@[26; 27) WHITESPACE@[27; 28) + BLOCK@[28; 34) L_CURLY@[28; 29) WHITESPACE@[29; 30) R_CURLY@[30; 31) @@ -48,10 +49,11 @@ FILE@[0; 54) NAME@[43; 47) WHITESPACE@[43; 44) IDENT@[44; 47) "foo" - L_PAREN@[47; 48) - R_PAREN@[48; 49) - BLOCK@[49; 54) + PARAM_LIST@[47; 50) + L_PAREN@[47; 48) + R_PAREN@[48; 49) WHITESPACE@[49; 50) + BLOCK@[50; 54) L_CURLY@[50; 51) WHITESPACE@[51; 52) R_CURLY@[52; 53) diff --git a/tests/data/parser/err/0007_stray_curly_in_file.txt b/tests/data/parser/err/0007_stray_curly_in_file.txt index cfc714cc6..6995ec6ff 100644 --- a/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/tests/data/parser/err/0007_stray_curly_in_file.txt @@ -19,8 +19,9 @@ err: `expected item` NAME@[19; 23) WHITESPACE@[19; 20) IDENT@[20; 23) "foo" - L_PAREN@[23; 24) - R_PAREN@[24; 25) + PARAM_LIST@[23; 25) + L_PAREN@[23; 24) + R_PAREN@[24; 25) BLOCK@[25; 29) L_CURLY@[25; 26) R_CURLY@[26; 27) diff --git a/tests/data/parser/err/0008_item_block_recovery.txt b/tests/data/parser/err/0008_item_block_recovery.txt index ca332bcf0..05be13646 100644 --- a/tests/data/parser/err/0008_item_block_recovery.txt +++ b/tests/data/parser/err/0008_item_block_recovery.txt @@ -4,10 +4,11 @@ FILE@[0; 95) NAME@[2; 6) WHITESPACE@[2; 3) IDENT@[3; 6) "foo" - L_PAREN@[6; 7) - R_PAREN@[7; 8) - BLOCK@[8; 14) + PARAM_LIST@[6; 9) + L_PAREN@[6; 7) + R_PAREN@[7; 8) WHITESPACE@[8; 9) + BLOCK@[9; 14) L_CURLY@[9; 10) WHITESPACE@[10; 11) R_CURLY@[11; 12) @@ -55,10 +56,11 @@ FILE@[0; 95) NAME@[84; 88) WHITESPACE@[84; 85) IDENT@[85; 88) "baz" - L_PAREN@[88; 89) - R_PAREN@[89; 90) - BLOCK@[90; 95) + PARAM_LIST@[88; 91) + L_PAREN@[88; 89) + R_PAREN@[89; 90) WHITESPACE@[90; 91) + BLOCK@[91; 95) L_CURLY@[91; 92) WHITESPACE@[92; 93) R_CURLY@[93; 94) -- cgit v1.2.3