parameters: ()
docstring: Fix the regular expression for bash lexer so that the "prompt"
      token also consumes the following space(s). This allows us to
      style that prompt as 'user-select:none'.
docstring_summary: Fix the regular expression for bash lexer so that the "prompt"
      token also consumes the following space(s). This allows us to
      style that prompt as 'user-select:none'.
docstring_tokens: Fix the regular expression for bash lexer so that the prompt token also consumes the following space ( s ) . This allows us to style that prompt as user - select : none .
function: def patch_bash_session_lexer():
      """
      Fix the regular expression for bash lexer so that the "prompt"
      token also consumes the following space(s). This allows us to
      style that prompt as 'user-select:none'.
      """
      from pygments.lexers import BashSessionLexer
      ps1 = BashSessionLexer._ps1rgx.pattern
      tail = r")(.*\n?)"
      if ps1.endswith(tail):
          BashSessionLexer._ps1rgx = re.compile(ps1[:-len(tail)] + r"\s*" + tail)
function_tokens: def patch_bash_session_lexer ( ) : from pygments . lexers import BashSessionLexer ps1 = BashSessionLexer . _ps1rgx . pattern tail = r")(.*\n?)" if ps1 . endswith ( tail ) : BashSessionLexer . _ps1rgx = re . compile ( ps1 [ : - len ( tail ) ] + r"\s*" + tail )