You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example got wiped out, but this is likely a case of our whitespace manager not handling it correctly. We'll likely need to add a special rule of to restore the newline even though we didn't match on it.
Unfortunately I don't think this is a feasible thing to fix.
To get the desired behavior you'll have to insert the newline, and indent the desired amount in the snippet. Padding is implemented this way as the correct amount to pad is a function of the rewrite, not the source. For example
engine marzano(0.1)
language python
`def $method($args):
while true:
$body` => `def $method($args): $body`
should indent $body only once corresponding to the single function scope, but if we tried to calculate based on the source, we would indent for two scopes, first the function, and then the loop.
The following pattern
Should return the exact same thing, but that is not the case as you can see in the following example. https://app.grit.io/studio?key=m44jIoo2l3JuT1lcAXkEm
The text was updated successfully, but these errors were encountered: