X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/80bd2b3134b4f01da4e279d040a224326b3577e5..65c52a655fd67480a2017a79c99094039dcaffa3:/tests/fmtonoff.py?ds=sidebyside 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}