This patch will make sublime syntax highlighting work with the mix of Jinja2 and YAML, provided the Jinja package is installed. I'm also not sure what the best way to inform users that they need to install an additional package to get full syntax highlighting. Maybe just put it in the readme. Alternatively you could just copy-paste the entire Jinja tmLanguage file into this one.
I've also overridden a few of sublime's YAML syntax definitions to get rid of some of the bugs it has. Colons in dictionaries should all highlight the same, and - in lists don't get highlighted differently depending on whether the item is a string or numeric.
Things that are missing and I can't seem to figure out:
Jinja highlighting for dictionary keys - foo-{{ bar }}-baz: value
This patch will make sublime syntax highlighting work with the mix of Jinja2 and YAML, provided the Jinja package is installed. I'm also not sure what the best way to inform users that they need to install an additional package to get full syntax highlighting. Maybe just put it in the readme. Alternatively you could just copy-paste the entire Jinja tmLanguage file into this one.
I've also overridden a few of sublime's YAML syntax definitions to get rid of some of the bugs it has. Colons in dictionaries should all highlight the same, and
-
in lists don't get highlighted differently depending on whether the item is a string or numeric.Things that are missing and I can't seem to figure out:
foo-{{ bar }}-baz: value
"foo {{ bar }} baz"
name: /foo/{{ bar }}/baz