From f3ee5a15090d8ba6ec220e1f907ed3af27e57734 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 9 Aug 2019 12:16:47 +0200 Subject: Move numeric names inside of `NameRef` --- .../test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt') diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt index a21b29c80..465e79e7b 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt @@ -30,7 +30,8 @@ SOURCE_FILE@[0; 47) NAME_REF@[25; 26) IDENT@[25; 26) "x" DOT@[26; 27) "." - INT_NUMBER@[27; 31) "1i32" + NAME_REF@[27; 31) + INT_NUMBER@[27; 31) "1i32" SEMI@[31; 32) ";" WHITESPACE@[32; 37) "\n " EXPR_STMT@[37; 44) @@ -41,11 +42,11 @@ SOURCE_FILE@[0; 47) NAME_REF@[37; 38) IDENT@[37; 38) "x" DOT@[38; 39) "." - INT_NUMBER@[39; 43) "0x01" + NAME_REF@[39; 43) + INT_NUMBER@[39; 43) "0x01" SEMI@[43; 44) ";" WHITESPACE@[44; 45) "\n" R_CURLY@[45; 46) "}" WHITESPACE@[46; 47) "\n" -error [17; 19): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix -- cgit v1.2.3