fix: classify safe as a contextual kw

This commit is contained in:
roife 2024-10-21 02:56:21 +08:00
parent 002f6ad6f1
commit 834ccbffba
5 changed files with 11 additions and 11 deletions

View file

@ -135,8 +135,8 @@ pub(super) fn opt_item(p: &mut Parser<'_>, m: Marker) -> Result<(), Marker> {
has_mods = true;
}
if p.at(T![safe]) {
p.eat(T![safe]);
if p.at_contextual_kw(T![safe]) {
p.eat_contextual_kw(T![safe]);
has_mods = true;
}

File diff suppressed because one or more lines are too long