21 lines
303 B
Ruby
21 lines
303 B
Ruby
|
# -*- coding: utf-8 -*- #
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
module Rouge
|
||
|
module Lexers
|
||
|
load_lexer 'jsx.rb'
|
||
|
load_lexer 'typescript/common.rb'
|
||
|
|
||
|
class TSX < JSX
|
||
|
include TypescriptCommon
|
||
|
|
||
|
title 'TypeScript'
|
||
|
desc 'tsx'
|
||
|
|
||
|
tag 'tsx'
|
||
|
filenames '*.tsx'
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|