Skip to content

Commit

Permalink
Add guessing specs for Typescript extesions
Browse files Browse the repository at this point in the history
  • Loading branch information
tancnle committed Jul 25, 2023
1 parent fa7c89d commit 6451657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/typescript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Typescript < Javascript
extend TypescriptCommon

title "TypeScript"
desc "TypeScript, a superset of JavaScript"
desc "TypeScript, a superset of JavaScript (https://www.typescriptlang.org/)"

tag 'typescript'
aliases 'ts'
Expand Down
2 changes: 2 additions & 0 deletions spec/lexers/typescript_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
it 'guesses by filename' do
assert_guess :filename => 'foo.ts'
assert_guess :filename => 'foo.d.ts'
assert_guess :filename => 'foo.cts'
assert_guess :filename => 'foo.mts'
end

it 'guesses by mimetype' do
Expand Down

0 comments on commit 6451657

Please sign in to comment.