From a838a95e989d17f23400f2356442c76926e42dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 24 Mar 2023 11:21:10 +0900 Subject: [PATCH] Fix --- crates/swc_ecma_parser/src/token.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, }