With Tree-sitter it is possible to make editors to "understand" multiple languages in one file. Imagine scheme file, which contains docstrings and comments written in texinfo/markdown, parts of code written in elisp and so on.
All those languages will have a correct syntax highlighting, structural navigation and editing and all the goodies.
With text-based representation of the source code it still seems to be a hard task, but not impossibly hard anymore.
@abcdw I hope this will get us closer to proper support for web files containing a mix of PHP + HTML + JavaScript + linked data