mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 09:38:16 +03:00
Support numeric separator for typescript. (#524)
This commit is contained in:
parent
24b5c44ba3
commit
668c2713d9
@ -160,7 +160,7 @@ impl Syntax {
|
|||||||
|
|
||||||
pub fn num_sep(self) -> bool {
|
pub fn num_sep(self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Syntax::Es(EsConfig { num_sep: true, .. }) => true,
|
Syntax::Es(EsConfig { num_sep: true, .. }) | Syntax::Typescript(..) => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user