Though it is defined in the filetypes.conf file, .yml files don't seem to be correctly matched to the yaml syntax definition by highlight:
$ grep yml /etc/highlight/filetypes.conf
{ Lang="yaml", Extensions={"yml"} },
$ highlight -O truecolor main.yml
highlight: Unknown source file extension "yml". Consider the --force or --syntax option.
$ highlight -O truecolor main.yml -S yaml
---
- hosts: all
gather_facts: false
Ack, sorry, I was wrong. I recently started using a supplemental
~/.highlight/filetypes.conf, and I thought it would only affect theLangs mentioned in that file, otherwise still use/etc/highlight/filetypes.conf.I don't think I can retitle this issue, but is it possible to get a more inheritance-like behavior for user-defined
filetypes.conffiles (including and overwriting/etc/highlight/filetypes.conf)?I'd prefer to add a note in filetypes.conf how a user defined file is read. There is no inheritance in the other config files, if not explicitely done with plug-ins.