class Rouge::RegexLexer

def state?(state_name)

Check if `state_name` is the state on top of the state stack.
def state?(state_name)
  state_name.to_s == state.name
end