diff --git a/crates/swc_ecma_parser/src/token.rs b/crates/swc_ecma_parser/src/token.rs index 51cea339c5e2..f5ca0e42defa 100644 --- a/crates/swc_ecma_parser/src/token.rs +++ b/crates/swc_ecma_parser/src/token.rs @@ -139,10 +139,6 @@ impl Token { | Self::PlusPlus | Self::MinusMinus | Self::Tilde - | Self::Str { .. } - | Self::Regex(..) - | Self::Num { .. } - | Self::BigInt { .. } | Self::JSXText { .. } => true, _ => false, } @@ -161,6 +157,10 @@ impl Token { | Self::PlusPlus | Self::MinusMinus | Self::Tilde + | Self::Str { .. } + | Self::Regex(..) + | Self::Num { .. } + | Self::BigInt { .. } | Self::JSXTagStart => true, _ => false, }