Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NimPretty has troubles with source code filter #9384
If you try to format files that use source code filter,
For the simplest example found in the docs:
If in-place (i.e.
If output is a different file:
I am guessing
Well, since @Araq seems to be working hard fixing more important issues, I am going to answer my own question. After digging through the source code, I found that
before calling the procedure you defined in
I said "conventional" because, after some testing, the file extension doesn't seem to matter, you can use
However, if you use
I really like this source code filtering feature. It's a shame that not much people are using it. I will try to make a PR to update the documentation with the above info.