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 support for non-space indention #720

Merged
merged 3 commits into from
Feb 10, 2025
Merged

Conversation

nicholassm
Copy link
Contributor

  • Adds support for non-space indention - even a "weird" mix of e.g. tabs and spaces.
  • Note, I had to add String field to the Visitor struct becasue the whitespace before
    the macro keyword is not included in the syn crate.
  • I only added a few new test cases with pure tabs or a combination of tabs and white spaces
    as most existing tests were also impacted by the change (and thus also tested the feature).
  • Added changelog entry.

- Adds support for non-space indention - even a "weird" mix of e.g. tabs and spaces.
- Note, I had to add `String` field to the `Visitor` struct becasue the whitespace before
  the macro keyword is not included in the syn crate.
- I only added a few new test cases with pure tabs or a combination of tabs and white spaces
  as most existing tests were also impacted by the change (and thus also tested the feature).
@nicholassm
Copy link
Contributor Author

Sorry, nuked the old PR somehow. This fixes the conflicts and adds a changelog entry.

@max-sixty max-sixty changed the title Fixes https://github.com/mitsuhiko/insta/issues/679. Add support for non-space indention Feb 10, 2025
@max-sixty max-sixty merged commit d56ad0f into mitsuhiko:master Feb 10, 2025
15 checks passed
@max-sixty
Copy link
Collaborator

Thank you @nicholassm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants