X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f99fad1b78a773f2a712b9ce21496e80cce6cf4f..23fec8b0f73a142d1796c8ca958230ad52d83c24:/tests/data/fmtonoff.py diff --git a/tests/data/fmtonoff.py b/tests/data/fmtonoff.py index fff751e..5a50eb1 100644 --- a/tests/data/fmtonoff.py +++ b/tests/data/fmtonoff.py @@ -108,9 +108,13 @@ def on_and_off_broken(): # fmt: on # fmt: off this=should.not_be.formatted() - but=it is formatted + and_=indeed . it is not formatted because . the . handling . inside . generate_ignored_nodes() - doesnt . consider . ordering . within . one . prefix + now . considers . multiple . fmt . directives . within . one . prefix + # fmt: on + # fmt: off + # ...but comments still get reformatted even though they should not be + # fmt: on def long_lines(): if True: typedargslist.extend( @@ -318,10 +322,14 @@ def on_and_off_broken(): """Another known limitation.""" # fmt: on # fmt: off - this = should.not_be.formatted() - but = it is formatted - because.the.handling.inside.generate_ignored_nodes() - doesnt.consider.ordering.within.one.prefix + this=should.not_be.formatted() + and_=indeed . it is not formatted + because . the . handling . inside . generate_ignored_nodes() + now . considers . multiple . fmt . directives . within . one . prefix + # fmt: on + # fmt: off + # ...but comments still get reformatted even though they should not be + # fmt: on def long_lines():