github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.14k stars 4.21k forks source link

Eclipse Papyrus .di files erroneously recognized as D #3914

Closed DeBukkIt closed 6 years ago

DeBukkIt commented 6 years ago

The diagrams created with the Eclipse plugin 'Papyrus' (actually XML format) have the .di file extension. Linguist recognizes them as language D, which is nonsense. Analyzing the magic first line <?xml version="1.0" encoding="UTF-8"?> might help Linguist to guess correctly in the second attempt.

lildude commented 6 years ago

Linguist is detecting them at D precisely because of the.di extension. This extension is not associated with Papyrus at all.

If this is a commonly and widely used extension of Papyrus, we'll gladly accept a PR adding support for it. Until then, you'll need a manual overdrive to identify these files as Papyrus.