From 3e9062492b6e648fbbdfc7c7052d2ad16119c221 Mon Sep 17 00:00:00 2001 From: Michael Bleuez Date: Tue, 29 Jun 2021 14:17:06 +0200 Subject: [PATCH] adding typescriptreact filetype match for typescript --- Cargo.lock | 2 +- src/interpreters/TypeScript_original.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 2d0d622d..1812f5dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,7 +251,7 @@ dependencies = [ [[package]] name = "sniprun" -version = "0.5.8" +version = "0.5.9" dependencies = [ "dirs", "libc", diff --git a/src/interpreters/TypeScript_original.rs b/src/interpreters/TypeScript_original.rs index 44fff6a7..3fc8fd39 100644 --- a/src/interpreters/TypeScript_original.rs +++ b/src/interpreters/TypeScript_original.rs @@ -37,6 +37,7 @@ impl Interpreter for TypeScript_original { String::from("TypeScript"), // in 1st position of vector, used for info only //':set ft?' in nvim to get the filetype of opened file String::from("typescript"), + String::from("typescriptreact"), String::from("ts"), //should not be necessary, but just in case // another similar name (like python and python3)? ]