parameters: (cls)
return_statement: return re.compile(r'''
              (''(?!')|""(?!")|'{6}|"{6}    # Empty strings (all 4 types)
               |'(?:[^\\']|\\.)+?'          # Single quotes (')
               |"(?:[^\\"]|\\.)+?"          # Double quotes (")
               |'{3}(?:[^\\]|\\.|\n)+?'{3}  # Triple-quoted strings (')
               |"{3}(?:[^\\]|\\.|\n)+?"{3}  # Triple-quoted strings (")
               |\#.*                        # Comments
              )''', re.VERBOSE)
docstring: This matches comments and all kinds of quoted strings but does
              NOT match comments (#...) within quoted strings. (trust me)
docstring_summary: This matches comments and all kinds of quoted strings but does
              NOT match comments (#...) within quoted strings. (trust me)
docstring_tokens: This matches comments and all kinds of quoted strings but does NOT match comments ( # ... ) within quoted strings . ( trust me )
function: def re_pytokens(cls):
          ''' This matches comments and all kinds of quoted strings but does
              NOT match comments (#...) within quoted strings. (trust me) '''
          return re.compile(r'''
              (''(?!')|""(?!")|'{6}|"{6}    # Empty strings (all 4 types)
               |'(?:[^\\']|\\.)+?'          # Single quotes (')
               |"(?:[^\\"]|\\.)+?"          # Double quotes (")
               |'{3}(?:[^\\]|\\.|\n)+?'{3}  # Triple-quoted strings (')
               |"{3}(?:[^\\]|\\.|\n)+?"{3}  # Triple-quoted strings (")
               |\#.*                        # Comments
              )''', re.VERBOSE)
function_tokens: def re_pytokens ( cls ) : return re . compile ( r'''
              (''(?!')|""(?!")|'{6}|"{6}    # Empty strings (all 4 types)
               |'(?:[^\\']|\\.)+?'          # Single quotes (')
               |"(?:[^\\"]|\\.)+?"          # Double quotes (")
               |'{3}(?:[^\\]|\\.|\n)+?'{3}  # Triple-quoted strings (')
               |"{3}(?:[^\\]|\\.|\n)+?"{3}  # Triple-quoted strings (")
               |\#.*                        # Comments
              )''' , re . VERBOSE )