mirror of
https://github.com/sharkdp/bat
synced 2024-11-06 21:20:25 +00:00
Merge pull request #2236 from kidonng/patch-1
Add `.mts` and `.cts` to TypeScript file extensions
This commit is contained in:
commit
ca9843fa83
@ -24,6 +24,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
|
||||
|
||||
|
@ -4,6 +4,8 @@
|
||||
name: TypeScript
|
||||
file_extensions:
|
||||
- ts
|
||||
- mts
|
||||
- cts
|
||||
scope: source.ts
|
||||
contexts:
|
||||
main:
|
||||
|
1
tests/syntax-tests/highlighted/TypeScript/example.cts
vendored
Normal file
1
tests/syntax-tests/highlighted/TypeScript/example.cts
vendored
Normal file
@ -0,0 +1 @@
|
||||
[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;255;255;255mdummy[0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mstring[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mRegression test for https://github.com/sharkdp/bat/pull/2236[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
1
tests/syntax-tests/source/TypeScript/example.cts
vendored
Normal file
1
tests/syntax-tests/source/TypeScript/example.cts
vendored
Normal file
@ -0,0 +1 @@
|
||||
const dummy: string = "Regression test for https://github.com/sharkdp/bat/pull/2236";
|
Loading…
Reference in New Issue
Block a user