diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2019-10-02 23:46:36 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-02 10:46:36 -0400 |
commit | d32f39f2ec271c7517bbd5113827dc43a7e40641 (patch) | |
tree | 66ecb0e069792a485d54ad03184cbdd727addf4a /cli/msg.rs | |
parent | a646c2a88505819e07b5b967b9f8afacbac5aeef (diff) |
feat: JSX Support (#3038)
Diffstat (limited to 'cli/msg.rs')
-rw-r--r-- | cli/msg.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/msg.rs b/cli/msg.rs index 4416c7d71..20ab9db13 100644 --- a/cli/msg.rs +++ b/cli/msg.rs @@ -66,15 +66,19 @@ pub enum ErrorKind { #[derive(Clone, Copy, PartialEq, Debug)] pub enum MediaType { JavaScript = 0, - TypeScript = 1, - Json = 2, - Unknown = 3, + JSX = 1, + TypeScript = 2, + TSX = 3, + Json = 4, + Unknown = 5, } pub fn enum_name_media_type(mt: MediaType) -> &'static str { match mt { MediaType::JavaScript => "JavaScript", + MediaType::JSX => "JSX", MediaType::TypeScript => "TypeScript", + MediaType::TSX => "TSX", MediaType::Json => "Json", MediaType::Unknown => "Unknown", } |