From b2d67c70f3554596e20253d170d4e0d2f8f7b67d Mon Sep 17 00:00:00 2001 From: Zanie Date: Mon, 17 Jul 2023 09:42:13 -0500 Subject: [PATCH] Drop support for parsing type aliases with parens and braces --- parser/src/soft_keywords.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/src/soft_keywords.rs b/parser/src/soft_keywords.rs index 6e00744..523452c 100644 --- a/parser/src/soft_keywords.rs +++ b/parser/src/soft_keywords.rs @@ -113,8 +113,8 @@ where is_type_alias = true; break; } - Tok::Lpar | Tok::Lsqb | Tok::Lbrace => nesting += 1, - Tok::Rpar | Tok::Rsqb | Tok::Rbrace => nesting -= 1, + Tok::Lsqb => nesting += 1, + Tok::Rsqb => nesting -= 1, _ => {} } }