on master help sign in
At least partly highlight tsx
commit2bef245b7a1ae11f023d3e3aa82df250a3488d91 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 6 Sep 2021, 14:33 (5 years ago) parentd85a8ad
2 files changed+12
languages.toml+11 runtime/queries/tsx/highlights.scm+1
languages.toml+11
@@ -116,6 +116,17 @@ roots = []
116116language-server = { command = "typescript-language-server", args = ["--stdio"] }
117117indent = { tab-width = 2, unit = " " }
118118
119+[[language]]
120+name = "tsx"
121+scope = "source.tsx"
122+injection-regex = "^(tsx)$" # |typescript
123+file-types = ["tsx"]
124+roots = []
125+# TODO: highlights-jsx, highlights-params
126+
127+language-server = { command = "typescript-language-server", args = ["--stdio"] }
128+indent = { tab-width = 2, unit = " " }
129+
119130[[language]]
120131name = "css"
121132scope = "source.css"
runtime/queries/tsx/highlights.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: typescript