class Rouge::RegexLexer

def self.state(name, &b)

The block will be evaluated in the context of a {StateDSL}.
Define a new state for this lexer with the given name.
def self.state(name, &b)
  name = name.to_s
  state_definitions[name] = StateDSL.new(name, &b)
end