Sha256: d45f62949af7e4267ae5060e4984723bb014324f03bb3b54cb8a9377bf6f8e11

Contents?: true

Size: 478 Bytes

Versions: 7

Compression:

Stored size: 478 Bytes

Contents

# -*- coding: utf-8 -*- #
# frozen_string_literal: true

module Rouge
  module Lexers
    load_lexer 'javascript.rb'
    load_lexer 'typescript/common.rb'

    class Typescript < Javascript
      extend TypescriptCommon

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

      tag 'typescript'
      aliases 'ts'

      filenames '*.ts', '*.d.ts', '*.cts', '*.mts'

      mimetypes 'text/typescript'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rouge-4.5.1 lib/rouge/lexers/typescript.rb
rouge-4.5.0 lib/rouge/lexers/typescript.rb
rouge-4.4.0 lib/rouge/lexers/typescript.rb
rouge-4.3.0 lib/rouge/lexers/typescript.rb
rouge-4.2.1 lib/rouge/lexers/typescript.rb
rouge-4.2.0 lib/rouge/lexers/typescript.rb
rouge-4.1.3 lib/rouge/lexers/typescript.rb