X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9854d4b375ef84d651892785165a6c7b0e9f391b..6140f04fe17ae7c542a29c207c9a45f6200f4e2c:/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():