forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Unlike other languages, in Go, switches themselves are not indented; it's just each case body which is indented by one level: switch foo { case "bar": baz() } As such, we shouldn't `@indent` for type_switch_statement nor expression_switch_statement, as otherwise inserted lines show up as: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } With the fix, the inserted lines are indented properly: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } I also verified that indentation on selects similarly works well. Thanks to Triton171 for helping with this fix. |
1 year ago | |
---|---|---|
.. | ||
highlights.scm | 2 years ago | |
indents.scm | 1 year ago | |
injections.scm | 3 years ago | |
locals.scm | 1 year ago | |
tags.scm | 3 years ago | |
textobjects.scm | 2 years ago |