Module: Rouge::Lexers::TypescriptCommon
- Included in:
- TSX, Typescript
- Defined in:
- lib/rouge/lexers/typescript/common.rb
Class Method Summary collapse
Class Method Details
.builtins ⇒ Object
26 27 28 29 30 |
# File 'lib/rouge/lexers/typescript/common.rb', line 26 def self.builtins @builtins ||= super + %w( Pick Partial Readonly Record ) end |
.declarations ⇒ Object
13 14 15 16 17 |
# File 'lib/rouge/lexers/typescript/common.rb', line 13 def self.declarations @declarations ||= super + Set.new(%w( type abstract )) end |
.keywords ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rouge/lexers/typescript/common.rb', line 6 def self.keywords @keywords ||= super + Set.new(%w( is namespace static private protected public implements readonly )) end |
.reserved ⇒ Object
19 20 21 22 23 24 |
# File 'lib/rouge/lexers/typescript/common.rb', line 19 def self.reserved @reserved ||= super + Set.new(%w( string any void number namespace module declare default interface keyof )) end |