class Rouge::RegexLexer

def self.get_state(name)

Other tags:
    Private: -
def self.get_state(name)
  return name if name.is_a? State
  states[name.to_sym] ||= begin
    defn = state_definitions[name.to_s] or raise "unknown state: #{name.inspect}"
    defn.to_state(self)
  end
end