Show More
@@ -255,7 +255,7 b" heredoclimitpat = r'\\s*<<\\s*(?P<lquote>[" | |||||
255 | class fileheredocmatcher(embeddedmatcher): |
|
255 | class fileheredocmatcher(embeddedmatcher): | |
256 | """Detect "cat > FILE << LIMIT" style embedded code |
|
256 | """Detect "cat > FILE << LIMIT" style embedded code | |
257 |
|
257 | |||
258 |
>>> matcher = fileheredocmatcher( |
|
258 | >>> matcher = fileheredocmatcher('heredoc .py file', r'[^<]+\\.py') | |
259 | >>> b2s(matcher.startsat(' $ cat > file.py << EOF\\n')) |
|
259 | >>> b2s(matcher.startsat(' $ cat > file.py << EOF\\n')) | |
260 | ('file.py', ' > EOF\\n') |
|
260 | ('file.py', ' > EOF\\n') | |
261 | >>> b2s(matcher.startsat(' $ cat >>file.py <<EOF\\n')) |
|
261 | >>> b2s(matcher.startsat(' $ cat >>file.py <<EOF\\n')) |
General Comments 0
You need to be logged in to leave comments.
Login now