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, _ => {} } }