In Smart Mode, when a cursor leaves a "paren-trail holding area", indentation should be corrected.
These paren trail holding areas allow the user to enter intermediate states that are incorrectly formatted, because they may be on the path to a correctly formatted state that parinfer cannot predict.
For example, the (sdfsdf... line should be dedented when the the cursor moves to a different line to prevent [] from swallowing subsequent lines.
In Smart Mode, when a cursor leaves a "paren-trail holding area", indentation should be corrected.
These paren trail holding areas allow the user to enter intermediate states that are incorrectly formatted, because they may be on the path to a correctly formatted state that parinfer cannot predict.
For example, the
(sdfsdf...
line should be dedented when the the cursor moves to a different line to prevent[]
from swallowing subsequent lines.❌vscode bug:
✅atom showing correct behavior: