Add `.mts` and `.cts` to TypeScript file extensions

See also:

https://github.com/github/linguist/pull/5905
This commit is contained in:
Kid 2022-07-04 22:01:36 +08:00 committed by David Peter
parent 48541b8507
commit d7b6519422
4 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@
- Update `Command Help` syntax, see #2255
- `Julia`: Fix syntax highlighting for function name starting with `struct`, see #2230
- Minor update to `LiveScript`, see #2291
- Associate `.mts` and `.cts` files with the `TypeScript` syntax. See #2236 (@kidonng)
## Themes

View File

@ -4,6 +4,8 @@
name: TypeScript
file_extensions:
- ts
- mts
- cts
scope: source.ts
contexts:
main:

View File

@ -0,0 +1 @@
const dummy: string = "Regression test for https://github.com/sharkdp/bat/pull/2236";

View File

@ -0,0 +1 @@
const dummy: string = "Regression test for https://github.com/sharkdp/bat/pull/2236";