Class: CodeRay::Encoders::Term

Inherits:
Encoder
  • Object
show all
Defined in:
lib/coderay/encoders/term.rb

Constant Summary collapse

TOKEN_COLORS =
{
  :attribute_name => '33',
  :attribute_name_fat => '33',
  :attribute_value => '31',
  :attribute_value_fat => '31',
  :bin => '1;35',
  :char => {:self => '36', :delimiter => '34'},
  :class => '1;35',
  :class_variable => '36',
  :color => '32',
  :comment => '37',
  :constant => ['34', '4'],
  :definition => '1;32',
  :directive => ['32', '4'],
  :doc => '46',
  :doc_string => ['31', '4'],
  :entity => '33',
  :error => ['1;33', '41'],
  :exception => '1;31',
  :float => '1;35',
  :function => '1;34',
  :global_variable => '42',
  :hex => '1;36',
  :include => '33',
  :integer => '1;34',
  :interpreted => '1;35',
  :label => '1;4',
  :local_variable => '33',
  :oct => '1;35',
  :operator_name => '1;29',
  :pre_constant => '1;36',
  :pre_type => '1;30',
  :predefined => ['4', '1;34'],
  :preprocessor => '36',
  :regexp => {
    :content => '31',
    :delimiter => '1;29',
    :modifier => '35',
    :function => '1;29'
  },
  :reserved => '1;31',
  :shell => {:self => '42', :content => '1;29'},
  :string => '32',
  :symbol => '1;32',
  :tag => '34',
  :tag_fat => '1;34',
  :tag_special => ['34', '4'],
  :type => '1;34',
  :variable => '34'
}

Constants inherited from Encoder

Encoder::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Encoder

#options, #token_stream

Method Summary

Methods inherited from Encoder

const_missing, #encode, #encode_stream, #encode_tokens, #file_extension, #initialize, streamable?, #to_proc

Methods included from Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for, #title

Constructor Details

This class inherits a constructor from CodeRay::Encoders::Encoder