class_docstr: Lexer for the DOS/Windows Batch file format.
  
  .. versionadded:: 0.7
class_docstr_tok: ["Lexer","for","the","DOS\/Windows","Batch","file","format",".","..","versionadded",":",":","0.7"]
code: def _make_follow_state(
      compound,
      _label=_label,
      _label_compound=_label_compound,
      _nl=_nl,
      _space=_space,
      _start_label=_start_label,
      _token=_token,
      _token_compound=_token_compound,
      _ws=_ws,
  ):
      suffix = "/compound" if compound else ""
      state = []
      if compound:
          state.append((r"(?=\))", Text, "#pop"))
      state += [
          (
              r"%s([%s]*)(%s)(.*)"
              % (
                  _start_label,
                  _ws,
                  _label_compound if compound else _label,
              ),
              bygroups(
                  Text, Punctuation, Text, Name.Label, Comment.Single
              ),
          ),
          include("redirect%s" % suffix),
          (r"(?=[%s])" % _nl, Text, "#pop"),
          (r"\|\|?|&&?", Punctuation, "#pop"),
          include("text"),
      ]
      return state
  
imports: import re
  from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups, include, default, this, using, words
  from pygments.token import Punctuation, Text, Comment, Operator, Keyword, Name, String, Number, Generic
  from pygments.util import shebang_matches
label_desc: Use image node_id 2 for calling the BatchLexer obj's underlying member method code with example usage: obj._make_follow_state(compound, _label, _label_compound, _nl, _space, _start_label, _token, _token_compound, _ws) and returns: state