Skip to content

Commit

Permalink
fix(typescript) add mts and cts aliases (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
qtiki committed Feb 3, 2023
1 parent 2f3d5ff commit dacfacb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SUPPORTED_LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ The table below shows the full list of languages (and corresponding classes/alia
| TP | tp | |
| Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) |
| Twig | twig, craftcms | |
| TypeScript | typescript, ts, tsx | |
| TypeScript | typescript, ts, tsx, mts, cts | |
| Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) |
| VB.Net | vbnet, vb | |
| VBA | vba | [highlightjs-vba](https://github.com/dullin/highlightjs-vba) |
Expand Down
4 changes: 3 additions & 1 deletion src/languages/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export default function(hljs) {
name: 'TypeScript',
aliases: [
'ts',
'tsx'
'tsx',
'mts',
'cts'
]
});

Expand Down

0 comments on commit dacfacb

Please sign in to comment.