lib/nanodoc/filters/literate_pyg.rb
# Feed one token to the state machine.
Feed one token to the state machine.
Feed one token to the state machine .
def feed_token(text, type, css_class)
    @token = [ text, css_class ]
    token_machine.trigger case type
                          when 'Text.Newline'    then :newline
                          when 'Text.Whitespace' then :whitespace
                          when /^Comment/        then :comment
                          else                        :code
                          end
  end
def feed_token ( text , type , css_class ) @token = [ text , css_class ] token_machine . trigger case type when 'Text.Newline' then :newline when 'Text.Whitespace' then :whitespace when / ^Comment / then :comment else :code end end
Feed one token to the state machine.
Feed one token to the state machine .
text
<not_specific>
type
<not_specific>
css_class
<not_specific>