[Github-comments] [geany/geany] YAML cannot be overridden (#2205)

Colomban Wendling notifications at xxxxx
Sun Jun 23 21:48:27 UTC 2019


You need to "unmap" YAML in *filetype_extensions.conf*.  What you should do is in the *user's* `filetype_extensions.conf` add a `YAML=` line that does not include the extensions you want somewhere else.  

The technical reason for this is that the system and user's files are merged, with the user's one overriding the system ones. Then, they are currently (this is NOT something to rely one!) matched alphabetically, so the first occurrence wins, and it happens that `YAML` sorts before `YML`.  So if you just add the extensions to `YML` but don't remove them from `YAML`, the `YAML` match still wins.
Arguably the user's file maybe should be tried first, and the system one only if the user's one didn't match, but for now it's not the case, and you should then make sure to unmap the extensions you want to reuse.  It should be as easy as re-defining the offending line for it not to include these extensions.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2205#issuecomment-504790107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190623/5666e14e/attachment.html>


More information about the Github-comments mailing list