From 42da26e9597443812da5a59b3fa48bdcbf619666 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 17 Nov 2020 20:02:46 +0100 Subject: parser,syntax: Add separate parser for stmt with optional semicolon Adjusting `grammar::fragments::stmt` to Optional or Yes will break original functionality and tests. --- crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rast | 1 - crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rs | 1 - crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rast | 1 - crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rs | 1 - .../syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rast | 1 - crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rs | 1 - .../parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rast | 1 - .../parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rs | 1 - 8 files changed, 8 deletions(-) delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rast delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rs delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rast delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rs delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rast delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rs delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rast delete mode 100644 crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rs (limited to 'crates/syntax/test_data/parser/fragments/stmt/err') diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rast b/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rast deleted file mode 100644 index 5df7507e2..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rast +++ /dev/null @@ -1 +0,0 @@ -ERROR diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rs b/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rs deleted file mode 100644 index a280f9a5c..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_fn_call.rs +++ /dev/null @@ -1 +0,0 @@ -foo(); diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rast b/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rast deleted file mode 100644 index 5df7507e2..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rast +++ /dev/null @@ -1 +0,0 @@ -ERROR diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rs b/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rs deleted file mode 100644 index de8a7f1fc..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_let_stmt.rs +++ /dev/null @@ -1 +0,0 @@ -let x = 10; diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rast b/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rast deleted file mode 100644 index 5df7507e2..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rast +++ /dev/null @@ -1 +0,0 @@ -ERROR diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rs b/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rs deleted file mode 100644 index 075f30159..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_let_stmt.rs +++ /dev/null @@ -1 +0,0 @@ -m1!{ let a = 0; }; diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rast b/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rast deleted file mode 100644 index 5df7507e2..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rast +++ /dev/null @@ -1 +0,0 @@ -ERROR diff --git a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rs b/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rs deleted file mode 100644 index 075f30159..000000000 --- a/crates/syntax/test_data/parser/fragments/stmt/err/0000_macro_unterminated_let_stmt.rs +++ /dev/null @@ -1 +0,0 @@ -m1!{ let a = 0; }; -- cgit v1.2.3