summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-06 05:33:19 +0000
committerBlaž Hrastnik2021-09-06 06:25:46 +0000
commit2bef245b7a1ae11f023d3e3aa82df250a3488d91 (patch)
treeb7cf9650f92fac418a36e1dc331a4b75366e3c79
parentd85a8adb2747e25589de82d821cd0c4e2dd244f5 (diff)
At least partly highlight tsx
-rw-r--r--languages.toml11
-rw-r--r--runtime/queries/tsx/highlights.scm1
2 files changed, 12 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index b1c0f479..c1ddbea2 100644
--- a/languages.toml
+++ b/languages.toml
@@ -117,6 +117,17 @@ 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"
injection-regex = "css"
diff --git a/runtime/queries/tsx/highlights.scm b/runtime/queries/tsx/highlights.scm
new file mode 100644
index 00000000..1b61e36d
--- /dev/null
+++ b/runtime/queries/tsx/highlights.scm
@@ -0,0 +1 @@
+; inherits: typescript