From da3815122d743a144db7fe1b7d1fb8dddb987894 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Sat, 14 Sep 2019 17:07:04 -0700 Subject: Bless old tests containing a `..` pattern --- crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt | 3 ++- crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt | 3 ++- crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt | 3 ++- crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt | 3 ++- crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt index 80bb7733c..3812adc9e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt @@ -82,7 +82,8 @@ SOURCE_FILE@[0; 103) NAME_REF@[87; 90) IDENT@[87; 90) "Bar" L_PAREN@[90; 91) "(" - DOTDOT@[91; 93) ".." + DOT_DOT_PAT@[91; 93) + DOTDOT@[91; 93) ".." R_PAREN@[93; 94) ")" WHITESPACE@[94; 95) " " EQ@[95; 96) "=" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt index c1d669e54..48aaeaf07 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt @@ -27,7 +27,8 @@ SOURCE_FILE@[0; 39) IDENT@[24; 25) "b" COMMA@[25; 26) "," WHITESPACE@[26; 27) " " - DOTDOT@[27; 29) ".." + DOT_DOT_PAT@[27; 29) + DOTDOT@[27; 29) ".." R_BRACK@[29; 30) "]" WHITESPACE@[30; 31) " " EQ@[31; 32) "=" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt index adc8931e2..666386d31 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt @@ -84,7 +84,8 @@ SOURCE_FILE@[0; 97) UNDERSCORE@[78; 79) "_" COMMA@[79; 80) "," WHITESPACE@[80; 81) " " - DOTDOT@[81; 83) ".." + DOT_DOT_PAT@[81; 83) + DOTDOT@[81; 83) ".." WHITESPACE@[83; 84) " " COMMA@[84; 85) "," WHITESPACE@[85; 86) " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt index 3fee3a1cf..674dec493 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt @@ -27,7 +27,8 @@ SOURCE_FILE@[0; 39) IDENT@[24; 25) "b" COMMA@[25; 26) "," WHITESPACE@[26; 27) " " - DOTDOT@[27; 29) ".." + DOT_DOT_PAT@[27; 29) + DOTDOT@[27; 29) ".." R_PAREN@[29; 30) ")" WHITESPACE@[30; 31) " " EQ@[31; 32) "=" diff --git a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt index c18e3c329..3326ab2ae 100644 --- a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt +++ b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt @@ -1656,7 +1656,8 @@ SOURCE_FILE@[0; 3813) PARAM@[2952; 2962) TUPLE_PAT@[2952; 2956) L_PAREN@[2952; 2953) "(" - DOTDOT@[2953; 2955) ".." + DOT_DOT_PAT@[2953; 2955) + DOTDOT@[2953; 2955) ".." R_PAREN@[2955; 2956) ")" COLON@[2956; 2957) ":" TUPLE_TYPE@[2957; 2962) -- cgit v1.2.3