From dd496223f50232fe98312ee8edc89eb4b5ee3d85 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 15 Dec 2020 19:23:51 +0100 Subject: Node-ify lifetimes --- .../test_data/lexer/err/0057_lifetime_starts_with_a_number.rs | 2 ++ .../test_data/lexer/err/0057_lifetime_starts_with_a_number.txt | 6 ++++++ .../test_data/lexer/err/0057_lifetime_strarts_with_a_number.rs | 2 -- .../test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt | 6 ------ 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs create mode 100644 crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt delete mode 100644 crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.rs delete mode 100644 crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt (limited to 'crates/syntax/test_data/lexer/err') diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs new file mode 100644 index 000000000..a7698a404 --- /dev/null +++ b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs @@ -0,0 +1,2 @@ +'1 +'1lifetime diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt new file mode 100644 index 000000000..11e0ae14a --- /dev/null +++ b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt @@ -0,0 +1,6 @@ +LIFETIME_IDENT 2 "\'1" +WHITESPACE 1 "\n" +LIFETIME_IDENT 10 "\'1lifetime" +WHITESPACE 1 "\n" +> error0..2 token("\'1") msg(Lifetime name cannot start with a number) +> error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.rs b/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.rs deleted file mode 100644 index a7698a404..000000000 --- a/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.rs +++ /dev/null @@ -1,2 +0,0 @@ -'1 -'1lifetime diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt b/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt deleted file mode 100644 index e138bcebc..000000000 --- a/crates/syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt +++ /dev/null @@ -1,6 +0,0 @@ -LIFETIME 2 "\'1" -WHITESPACE 1 "\n" -LIFETIME 10 "\'1lifetime" -WHITESPACE 1 "\n" -> error0..2 token("\'1") msg(Lifetime name cannot start with a number) -> error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) -- cgit v1.2.3