> I find it remarkable that no IDE that I'm aware of supports this already.
vim has some sort of rewrite rules you can define, for example i changed some of python syntax in my editor also, when you edit .json files in gvim they look more like json5 files: vim omits keys' and values' quotes so at least some sort of such editors exits, but in vim its not that useful actually
