diff options
author | Oleh Prypin <oleh@pryp.in> | 2021-01-20 10:48:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 10:48:45 +0100 |
commit | 6f4309217326430145564ae8b1bb393ea684f39f (patch) | |
tree | bf4025a5e709426dc927c4afc4fd2286f8450ed9 /tests/examplefiles/python/linecontinuation.py | |
parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
download | pygments-git-6f4309217326430145564ae8b1bb393ea684f39f.tar.gz |
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/python/linecontinuation.py')
-rw-r--r-- | tests/examplefiles/python/linecontinuation.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/examplefiles/python/linecontinuation.py b/tests/examplefiles/python/linecontinuation.py new file mode 100644 index 00000000..2a41c31c --- /dev/null +++ b/tests/examplefiles/python/linecontinuation.py @@ -0,0 +1,47 @@ +apple.filter(x, y) +apple.\ + filter(x, y) + +1 \ + . \ + __str__ + +from os import path +from \ + os \ + import \ + path + +import os.path as something + +import \ + os.path \ + as \ + something + +class \ + Spam: + pass + +class Spam: pass + +class Spam(object): + pass + +class \ + Spam \ + ( + object + ) \ + : + pass + + +def \ + spam \ + ( \ + ) \ + : \ + pass + + |