Class: Rich::BaseLexer

Inherits:
Object
  • Object
show all
Defined in:
lib/rich/syntax.rb

Overview

Base lexer class for tokenization

Instance Method Summary collapse

Instance Method Details

#tokenize(line, theme) ⇒ Object



303
304
305
# File 'lib/rich/syntax.rb', line 303

def tokenize(line, theme)
  [Segment.new(line, style: theme[:text])]
end