Module: Rouge::Token::Tokens

Included in:
Lexer, Lexers::SassCommon, Rouge::Theme
Defined in:
lib/rouge/token.rb

Constant Summary collapse

Num =

convenience

Literal::Number
Str =
Literal::String

Class Method Summary collapse

Class Method Details

.token(name, shortname, &b) ⇒ Object



67
68
69
70
# File 'lib/rouge/token.rb', line 67

def self.token(name, shortname, &b)
  tok = Token.make_token(name, shortname, &b)
  const_set(name, tok)
end