Skip to content

Commit

Permalink
Improve indentation rules
Browse files Browse the repository at this point in the history
- Add indentation for `private module`
- Add indentation for `abstract class` and `private class`
- Add indentation for `abstract def`
- Add indentation for `private macro`
- Remove indentation for `protected macro` (not valid)
  • Loading branch information
hovsater committed Dec 9, 2020
1 parent 5e032ff commit e125b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preferences/Miscellaneous.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>increaseIndentPattern</key>
<string>(?x)^
(\s*
(module|class|struct|union|lib|(private\s+|protected\s+)?(def|macro)
((private\s+)?module|((abstract|private)\s+)?class|struct|union|lib|((abstract|private|protected)\s+)?def|(private\s+)?macro
|unless|if|else|elsif
|case|when
|begin|rescue|ensure
Expand Down

0 comments on commit e125b48

Please sign in to comment.