Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indent_method property for nontrivial indentation methods #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 25, 2023

  1. 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?
    florianb committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    137262f View commit details
    Browse the repository at this point in the history