From 2bef245b7a1ae11f023d3e3aa82df250a3488d91 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 6 Sep 2021 14:33:19 +0900 Subject: At least partly highlight tsx --- languages.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index b1c0f479..c1ddbea2 100644 --- a/languages.toml +++ b/languages.toml @@ -116,6 +116,17 @@ roots = [] language-server = { command = "typescript-language-server", args = ["--stdio"] } indent = { tab-width = 2, unit = " " } +[[language]] +name = "tsx" +scope = "source.tsx" +injection-regex = "^(tsx)$" # |typescript +file-types = ["tsx"] +roots = [] +# TODO: highlights-jsx, highlights-params + +language-server = { command = "typescript-language-server", args = ["--stdio"] } +indent = { tab-width = 2, unit = " " } + [[language]] name = "css" scope = "source.css" -- cgit v1.2.3-70-g09d2