From 2bef245b7a1ae11f023d3e3aa82df250a3488d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 6 Sep 2021 14:33:19 +0900 Subject: [PATCH] At least partly highlight tsx --- languages.toml | 11 +++++++++++ runtime/queries/tsx/highlights.scm | 1 + 2 files changed, 12 insertions(+) create mode 100644 runtime/queries/tsx/highlights.scm diff --git a/languages.toml b/languages.toml index b1c0f4795..c1ddbea25 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" diff --git a/runtime/queries/tsx/highlights.scm b/runtime/queries/tsx/highlights.scm new file mode 100644 index 000000000..1b61e36da --- /dev/null +++ b/runtime/queries/tsx/highlights.scm @@ -0,0 +1 @@ +; inherits: typescript