class Byebug::NextCommand

Implements byebug “next” command.

def description

def description
  %{n[ext][+-]?[ nnn]\tstep over once or nnn times,
    \t\t'+' forces to move to another line.
    \t\t'-' is the opposite of '+' and disables the :forcestep setting.
   }
end

def execute

def execute
  steps, force = parse_stepping_args("Next", @match)
  return unless steps
  @state.context.step_over steps, @state.frame_pos, force
  @state.proceed
end

def names

def names
  %w(next)
end

def regexp

def regexp
  /^\s* n(?:ext)?([+-])? (?:\s+(\S+))? \s*$/x
end