##// END OF EJS Templates
testparseutil: escape backslash in docstring...
Gregory Szorc -
r41693:99b4c6d7 default
parent child Browse files
Show More
@@ -265,7 +265,7 b" heredoclimitpat = br'\\s*<<\\s*(?P<lquote>"
265 class fileheredocmatcher(embeddedmatcher):
265 class fileheredocmatcher(embeddedmatcher):
266 """Detect "cat > FILE << LIMIT" style embedded code
266 """Detect "cat > FILE << LIMIT" style embedded code
267
267
268 >>> matcher = fileheredocmatcher(b'heredoc .py file', br'[^<]+\.py')
268 >>> matcher = fileheredocmatcher(b'heredoc .py file', br'[^<]+\\.py')
269 >>> b2s(matcher.startsat(b' $ cat > file.py << EOF\\n'))
269 >>> b2s(matcher.startsat(b' $ cat > file.py << EOF\\n'))
270 ('file.py', ' > EOF\\n')
270 ('file.py', ' > EOF\\n')
271 >>> b2s(matcher.startsat(b' $ cat >>file.py <<EOF\\n'))
271 >>> b2s(matcher.startsat(b' $ cat >>file.py <<EOF\\n'))
General Comments 0
You need to be logged in to leave comments. Login now