The filetype extractor is a regex so it can be changed to read any (reasonable) 
filetype marks the users code already contains, it could be changed to read 
Vim's `vim: syntax=xxx`.  Its just got a default value for Emacs style because 
some C++ system headers which have no extensions have the Emacs mark and IIRC 
thats what the contributor wanted to detect at the time.

At the moment it is intended to *extract* the Geany filetype and nothing else.

As the extractor regex is user variable a comparison table shouldn't be hard 
coded into Geany (eg in the filetypes table), it should be a data file like 
`filetypes.extensions`, maybe `filetypes.alternative_names` with a list of 
alternative names like `filetypes.extensions` has a list of alternative 
extensions.  This will also allow it to work for custom filetypes as well as 
builtin ones.

PS the "human" name is actually the menu item name.



-- 
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/1531#issuecomment-312969759

Reply via email to