diff --git a/IPython/core/inputtransformer.py b/IPython/core/inputtransformer.py index 95abe72..6a41e71 100644 --- a/IPython/core/inputtransformer.py +++ b/IPython/core/inputtransformer.py @@ -272,7 +272,8 @@ _help_end_re = re.compile(r"""(%{0,2} [a-zA-Z_*][\w*]* # Variable name (\.[a-zA-Z_*][\w*]*)* # .etc.etc ) - (\?\??)$ # ? or ??""", + (\?\??)$ # ? or ?? + """, re.VERBOSE) def has_comment(src):