I think that this could be useful. You may want to look at filetype.vim, the script that vim uses to determine filetype and how to highlight syntax. Much of its detection is based on filename, which would not be useful, but it also has many patterns in it for filetypes that do not always have a set extention, and these could be useful.
posted by [UserVoice magicalChicken] • 5 years and 7 months ago Link