Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar.rs')
-rw-r--r--crates/parser/src/grammar.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs
index 2930190cb3..7ae1e5f82e 100644
--- a/crates/parser/src/grammar.rs
+++ b/crates/parser/src/grammar.rs
@@ -165,42 +165,6 @@ pub(crate) mod entry {
}
m.complete(p, ERROR);
}
-
- pub(crate) fn eager_macro_input(p: &mut Parser<'_>) {
- let m = p.start();
-
- let closing_paren_kind = match p.current() {
- T!['{'] => T!['}'],
- T!['('] => T![')'],
- T!['['] => T![']'],
- _ => {
- p.error("expected `{`, `[`, `(`");
- while !p.at(EOF) {
- p.bump_any();
- }
- m.complete(p, ERROR);
- return;
- }
- };
- p.bump_any();
- while !p.at(EOF) && !p.at(closing_paren_kind) {
- if expressions::expr(p).is_none() {
- break;
- }
- if !p.at(EOF) && !p.at(closing_paren_kind) {
- p.expect(T![,]);
- }
- }
- p.expect(closing_paren_kind);
- if p.at(EOF) {
- m.complete(p, MACRO_EAGER_INPUT);
- return;
- }
- while !p.at(EOF) {
- p.bump_any();
- }
- m.complete(p, ERROR);
- }
}
}