Module: Rouge::Lexers::TypescriptCommon

Included in:
TSX, Typescript
Defined in:
lib/rouge/lexers/typescript/common.rb

Class Method Summary collapse

Class Method Details

.builtinsObject


27
28
29
30
31
# File 'lib/rouge/lexers/typescript/common.rb', line 27

def self.builtins
  @builtins ||= super + %w(
    Pick Partial Readonly Record
  )
end

.declarationsObject


14
15
16
17
18
# File 'lib/rouge/lexers/typescript/common.rb', line 14

def self.declarations
  @declarations ||= super + Set.new(%w(
    type abstract
  ))
end

.keywordsObject


7
8
9
10
11
12
# File 'lib/rouge/lexers/typescript/common.rb', line 7

def self.keywords
  @keywords ||= super + Set.new(%w(
    is namespace static private protected public
    implements readonly
  ))
end

.reservedObject


20
21
22
23
24
25
# File 'lib/rouge/lexers/typescript/common.rb', line 20

def self.reserved
  @reserved ||= super + Set.new(%w(
    string any void number namespace module
    declare default interface keyof
  ))
end