> The initial naïve way to detect Nim source files would be to set `*.nim` and 
> `*.nims` as such.

That's the only correct way. The "additonal magic" is wrong, you cannot detect 
programming languages with heuristics. It's 2019, time to admit that file 
extensions are a good idea. 

Reply via email to