Skip to content

Commit b2d67c7

Browse files
committed
Drop support for parsing type aliases with parens and braces
1 parent fcdd605 commit b2d67c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser/src/soft_keywords.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ where
113113
is_type_alias = true;
114114
break;
115115
}
116-
Tok::Lpar | Tok::Lsqb | Tok::Lbrace => nesting += 1,
117-
Tok::Rpar | Tok::Rsqb | Tok::Rbrace => nesting -= 1,
116+
Tok::Lsqb => nesting += 1,
117+
Tok::Rsqb => nesting -= 1,
118118
_ => {}
119119
}
120120
}

0 commit comments

Comments
 (0)