X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/80bd2b3134b4f01da4e279d040a224326b3577e5..00cadd43eeeaa24d7f01badacacd5dd5f8c21d5f:/tests/fmtonoff.py diff --git a/tests/fmtonoff.py b/tests/fmtonoff.py index 4bacfcf..16c3925 100644 --- a/tests/fmtonoff.py +++ b/tests/fmtonoff.py @@ -71,6 +71,18 @@ def long_lines(): $ """, re.MULTILINE | re.VERBOSE ) +def single_literal_yapf_disable(): + """Black does not support this.""" + BAZ = { + (1, 2, 3, 4), + (5, 6, 7, 8), + (9, 10, 11, 12), + } # yapf: disable +# fmt: off +# No formatting to the end of the file +l=[1,2,3] +d={'a':1, + 'b':2} # output @@ -175,3 +187,15 @@ def long_lines(): """, re.MULTILINE | re.VERBOSE, ) + + +def single_literal_yapf_disable(): + """Black does not support this.""" + BAZ = {(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12)} # yapf: disable + + +# fmt: off +# No formatting to the end of the file +l=[1,2,3] +d={'a':1, + 'b':2}