Closed RokeJulianLockhart closed 1 week ago
Prettifying the JSON files would be relatively straight-forward to implement and it may make sense to implement them.
However, since they are auto-generated from the XML protocol files they are not meant to be edited manually and any potential changes should be submitted upstream instead.
This was done in #86, I explained the rational in the PR description:
I need to regenerate all of them, so I added pretty printing for the json while I was at it, it makes them nicer to work with and I think the chance of someone with enough knowledge of how wayland protocols work to use and want to contribute not realizing they are machine generated is really low (I wish there was a way to mark them as generated but I don't think it's worth dealing with jsonc.. that sounds like a good use case for a
machine_generated
editorconfig property).
As the undermentioned code demonstrates:
...they could be more readable. https://github.com/recurser/string-is/blob/c00f52f94c97efef4cb60babf0d8fed40c41e41c/README.md#string-is produces: