Open pelletencate opened 2 months ago
Previously, whenever a block is being opened, we assume we can't format them because a SyntaxTree can't be established based on an unended block.
This PR attempts to resolve that for most blocks by doing the following:
do
{
if
unless
while
until
This will successfully format most blocks open statements.
Previously, whenever a block is being opened, we assume we can't format them because a SyntaxTree can't be established based on an unended block.
This PR attempts to resolve that for most blocks by doing the following:
do
block: assume you get a valid Ruby statement if you remove the terminatingdo
or{
and the parameter listif
,unless
,while
oruntil
block: assume you get a valid Ruby expression if you remove the first word (if/unless/while/until).This will successfully format most blocks open statements.
Dependencies: