class Rouge::RegexLexer::ClosedState

def initialize(state)

def initialize(state)
  @state = state
end

def rule

def rule
  @state.rules.last
end

def to_s

def to_s
  rule = @state.rules.last
  msg = "State :#{state.name} cannot continue after #{rule.inspect}, which will always match."
  if rule.re.source.include?('*')
    msg += " Consider replacing * with +."
  end
  msg
end