Multiline inconsistent indented (inconsistent scope) # fmt: on
/ # fmt: off
fails: Black produced code that is not equivalent to the source on pass 1
#2745
Labels
F: fmtoff
fmt: off implementation
R: duplicate
This issue or pull request already exists
T: bug
Something isn't working
Describe the bug
I am writing my own Concrete Syntax Tree parser/emitter in Python, but I am using black as my code formatter so I want black to ignore the 'fancy' Python syntax I am trying to support with my parser. So I've got a bunch of badly formatted Python code that I want to support with my parser.
To Reproduce
Expected behavior
It should work
Actual behavior
INTERNAL ERROR: Black produced code that is not equivalent to the source on pass 1. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /tmp/blk_6ciutkwa.log
Environment
https://black.vercel.app/?version=main&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4AE_AKFdAD2IimZxl1N_WlbvK5V8IsyYXSZYzCxvB11Od7QFS_cUQRnVWTnEOnFGqeIVOh-6xpWYQw80rntIdUcNTZAqIYyewDaXyz571F0uxel5QXJBPZz4vzo0EFPhMsonxVlUzlqOg0_Xb1km-YJFCPRioooVe1ft1ydHHh6KUs4CK4ZdWV7pO9zBDSqDJun-2hPLYtedLWs2Bub_aZDRwt75JGqiAAAAAMTZEyWxsHatAAG9AcACAACux6gtscRn-wIAAAAABFla
The text was updated successfully, but these errors were encountered: