For at least two years Leo has been able to read external files formatted with
black.
Indeed, black will change the format of Leo's sentinel lines, inserting two spaces between the comment delimiter and the `@` that signals the start of a sentinel comment.
Imo, starting with Leo 6.5, Leo should write sentinel comments so that black will not reformat sentinel comments. This change will make it possible to make black the default formatting standard for Leo's own code base.
Compatibility
Most Leonistas will hardly notice such a change. However, I have waited until now because ancient versions of Leo will not be able to read external files written by Leo 6.5. I don't think that matters. Nobody using an old version of Leo is likely to want to read an external file written by Leo 6.5.
Summary
Writing black-compatible sentinels will simplify beautifying Leo's own code base.
Please let me know if you can think of a plausible situation in which writing black-compatible sentinels will cause a problem.
I have just created
#2194 for this issue.
Edward