Commit 137262f
committed
Add indent_method property for nontrivial indentation methods
This PR aims to solve the requirement of editorconfig/editorconfig#323 to add support for `smart_tabs`.
I propose to add a generic `indent_method` property to be able to
1. add support for non-trivial indentation methods
2. allow a backward compatible definition of indentation methods. Therefore the `indent_method` may override indent size and style if required.
I added two common (?) methods for the beginning: `smart_tabs` and `elastic_tabs`, the list may grow in the future.
I would prefer to also explain what `smart_tabs` and `elastic_tabs` refer to, for this it would be necessary to write a small explanation to avoid the risk any referenced website goes down.
What do you think?1 parent e02645d commit 137262f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
0 commit comments