geany/geany — comment on commit cdb748c2c48f4e845e8354a58d75db5ec6e73487
File:  line 0
By elextr:

On 23 October 2011 09:58, Matthew Brush

wrote:
> It detects /usr/include/c++ headers as C++ here. Anything else to test?

Thanks, I also tested that a .c file with -*- Python -*- was taken as
python and that shebang overrides regex. (which is sensible, shebang
is what it is going to run so it should override)

So thats no extension, wrong extension, mismatched internals, can't
think of anything else.

Cheers
Lex

Just a note, it uses raw regexes since filetypes_detect_from_file()
passes up to the first 1023 bytes without regard for encoding, so it
might not be valid UTF-8 and it might even chop a multibyte character
in half at the end.

>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/geany/geany/commit/cdb748c2c48f4e845e8354a58d75db5ec6e73487#commitcomment-668653
>