include ya?ml.j2 files in yaml syntax highlighting#5133
Conversation
Signed-off-by: Richlv <richlv@nakts.net>
|
I think that I understand your intent - probably you're working on Jinja-templated Ansible manifests and want to have at least some sort of highlighting, but I don't think that we can accept this solution upstream. The proper one would be composite syntaxes for multiple languages, which our engine doesn't support. Your kludge of just ignoring Jinja constructs and highlighting YAML anyways might (or might not) be better than nothing, but this brings another question: where do we stop? Do we add I'm afraid that at the moment, the best place for such changes if you really want them is per-user customization. |
|
Thanks, noted. Regarding "where do we stop" one approach could be pragmatic - whatever is popular enough :) |
Oh, it's more like cleanish, or at least not much dirtier than it currently is... :-/
I think you might be able to include the global syntax from the local one, but I haven't checked. This could be a solution for #1984. |
Proposed changes
Includes YAML Jinja2 files for YAML syntax highlighting.
Checklist
👉 Our coding style can be found here: https://midnight-commander.org/coding-style/ 👈
git commit --amend -smake indent && make check)