diff --git a/compiler/python_archive.py b/compiler/python_archive.py index fc810c6..167c314 100755 --- a/compiler/python_archive.py +++ b/compiler/python_archive.py @@ -64,7 +64,8 @@ ('[^'].*?') | # module doc comment form 1 ("[^"].*?") | # module doc comment form 2 (\'\'\'.*?(\'\'\')) | # module doc comment form 3 - (""".*?""") # module doc comment form 4 + (""".*?""") | # module doc comment form 4 + (r""".*?""") # module doc comment form 5 ) [\\r\\n]+ # end of line(s) for Mac, Unix and/or Windows )* diff --git a/compiler/python_archive_test.py b/compiler/python_archive_test.py index b918399..4d819ed 100644 --- a/compiler/python_archive_test.py +++ b/compiler/python_archive_test.py @@ -170,6 +170,8 @@ def test_generate_main(self): b"'''Triple-single-quote module \"'\n\n docstring'''\nBOILERPLATE\n"), (b'"""Triple-double-quote module "\'\n\n docstring"""\n', b'"""Triple-double-quote module "\'\n\n docstring"""\nBOILERPLATE\n'), + (b'r"""Triple-double-quote module "\'\n\n raw docstring"""\n', + b'r"""Triple-double-quote module "\'\n\n raw docstring"""\nBOILERPLATE\n'), ] for main_content, expected in cases: with test_utils.temp_file(main_content) as main_file: