github-linguist / linguist

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

FreeBasic repo misclassified as VBA #4997

Closed XusinboyBekchanov closed 3 years ago

XusinboyBekchanov commented 4 years ago

Preliminary Steps

Please confirm you have...

Problem Description

If the code contains #include or common or the extension is .bas or .bi (additionally user-defined .inc, .frm) then this language should be defined as FreeBasic.

URL of the affected repository:

https://github.com/XusinboyBekchanov/VisualFBEditor

Last modified on:

2020-09-06

Expected language:

FreeBasic

Detected language:

VBA

smola commented 4 years ago

@XusinboyBekchanov Maybe you can contribute a pull request? See CONTRIBUTING.md. Regular expressions for disambiguations are added to heuristics.yml. New samples would probably be needed too.

XusinboyBekchanov commented 4 years ago

I added pull request for languages.yml.

XusinboyBekchanov commented 4 years ago

https://github.com/github/linguist/pull/4998

XusinboyBekchanov commented 3 years ago

If you look at my repository, you can see that: FreeBasic 75.1%, VBA 17.8%, Rich Text Format 6.4%, Makefile 0.7%: image If you click on one of them, this appears: image Why does it show only Visual Basic.Net, but not FreeBasic and VBA?

lildude commented 3 years ago

@XusinboyBekchanov because of the bug in Search (not Linguist) as detailed in https://github.com/github/linguist/issues/5320

It's good to see your repo is now correctly showing FreeBasic so I'm going to close this issue.