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
Currently there's a problem with multiline guards (and if lets) where the cases on their own lines will not be indented correctly. See an example here:
This is a hard problem. We can't only rely on the line above, or matching brackets/parens as we are everywhere else. Instead I guess we'll have to match multiple lines above, and find a guard/if. This will also have to handle the valid cases for closures in the statements such as:
Currently there's a problem with multiline guards (and
if let
s) where the cases on their own lines will not be indented correctly. See an example here:swift.vim/example/example.swift
Lines 327 to 331 in 7d7c6e3
This is a hard problem. We can't only rely on the line above, or matching brackets/parens as we are everywhere else. Instead I guess we'll have to match multiple lines above, and find a guard/if. This will also have to handle the valid cases for closures in the statements such as:
I took a stab at this by matching a line ending with a comma above the current line, and the current line having an
=
with:But this doesn't handle
where
clauses, or statements that are over more than 2 lines.The text was updated successfully, but these errors were encountered: