Menu

#16 yaml files not matching

stable_release
closed-fixed
None
5
2018-10-16
2017-02-28
Andy
No

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

Discussion

  • Andy

    Andy - 2017-02-28

    Ack, sorry, I was wrong. I recently started using a supplemental ~/.highlight/filetypes.conf, and I thought it would only affect the Langs 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.conf files (including and overwriting /etc/highlight/filetypes.conf)?

     
  • André Simon

    André Simon - 2017-03-01

    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.

     
  • André Simon

    André Simon - 2017-03-01
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2018-10-16
    • status: open --> open-fixed
     
  • André Simon

    André Simon - 2018-10-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.