From ca6e93f091bc6f2e9dc26e842fc87d614089cf9d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:10:02 +0300 Subject: G: use names in structs --- tests/data/parser/err/0006_named_field_recovery.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/data/parser/err/0006_named_field_recovery.txt') diff --git a/tests/data/parser/err/0006_named_field_recovery.txt b/tests/data/parser/err/0006_named_field_recovery.txt index 0437bf2e7..7886beeb8 100644 --- a/tests/data/parser/err/0006_named_field_recovery.txt +++ b/tests/data/parser/err/0006_named_field_recovery.txt @@ -1,9 +1,10 @@ FILE@[0; 74) STRUCT_ITEM@[0; 74) STRUCT_KW@[0; 6) - WHITESPACE@[6; 7) - IDENT@[7; 8) "S" - WHITESPACE@[8; 9) + NAME@[6; 9) + WHITESPACE@[6; 7) + IDENT@[7; 8) "S" + WHITESPACE@[8; 9) L_CURLY@[9; 10) NAMED_FIELD@[10; 21) WHITESPACE@[10; 15) -- cgit v1.2.3 From c13e6db774acca952577fa7a18599b75b407f3c2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:13:30 +0300 Subject: G: use names in fields --- tests/data/parser/err/0006_named_field_recovery.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tests/data/parser/err/0006_named_field_recovery.txt') diff --git a/tests/data/parser/err/0006_named_field_recovery.txt b/tests/data/parser/err/0006_named_field_recovery.txt index 7886beeb8..b772671e9 100644 --- a/tests/data/parser/err/0006_named_field_recovery.txt +++ b/tests/data/parser/err/0006_named_field_recovery.txt @@ -7,8 +7,9 @@ FILE@[0; 74) WHITESPACE@[8; 9) L_CURLY@[9; 10) NAMED_FIELD@[10; 21) - WHITESPACE@[10; 15) - IDENT@[15; 16) "f" + NAME@[10; 16) + WHITESPACE@[10; 15) + IDENT@[15; 16) "f" COLON@[16; 17) WHITESPACE@[17; 18) IDENT@[18; 21) "u32" @@ -17,11 +18,11 @@ FILE@[0; 74) WHITESPACE@[22; 27) PUB_KW@[27; 30) WHITESPACE@[30; 31) - err: `expected IDENT` ERROR@[31; 38) err: `expected field declaration` INT_NUMBER@[31; 33) WHITESPACE@[33; 38) + err: `expected COMMA` ERROR@[38; 40) err: `expected field declaration` PLUS@[38; 39) @@ -38,14 +39,16 @@ FILE@[0; 74) VISIBILITY@[48; 52) PUB_KW@[48; 51) WHITESPACE@[51; 52) - IDENT@[52; 53) "x" + NAME@[52; 53) + IDENT@[52; 53) "x" COLON@[53; 54) WHITESPACE@[54; 55) IDENT@[55; 58) "u32" COMMA@[58; 59) NAMED_FIELD@[59; 70) - WHITESPACE@[59; 64) - IDENT@[64; 65) "z" + NAME@[59; 65) + WHITESPACE@[59; 64) + IDENT@[64; 65) "z" COLON@[65; 66) WHITESPACE@[66; 67) IDENT@[67; 70) "f64" -- cgit v1.2.3