github-linguist / linguist

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

BlitzBasic or bitbake #1074

Closed e8johan closed 9 years ago

e8johan commented 10 years ago

I'm not sure how extension-clashes are handed, but I'd like to see .bb to be associated with bitbake (http://en.wikipedia.org/wiki/BitBake) rather than BlitzBasic.

pchaigno commented 10 years ago

Could you point some BitBake files with the .bb extension which are incorrectly recognized as BlitzBasic?

e8johan commented 10 years ago

Any .bb file in this repository: https://github.com/meta-qt5/meta-qt5

pchaigno commented 10 years ago

I could add the BitBake language to linguist. In order to do that, I would need to add some heuristics to differentiate BitBake from BlitzBasic. Is there any thing which could help differentiate the two? Something like a keyword or a few caracteres which are often found in one of them and not in the other. See heuristics.rb for examples of what is currently used as heuristics.

e8johan commented 10 years ago

They usually "require" other files, e.g. https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qtbase-native_git.bb

pchaigno commented 10 years ago

Okay. I'm also thinking about using the Endif and Forever keywords for BlitzBasic. Does any of these exist in BitBake?

e8johan commented 10 years ago

Lowercase endif exists, but not Endif. I've never run into a Foreever in a bitbake file, so that might be a good BlitzBasic-indicator as well.

Johan Thelin

Recommended on-line reading: http://www.thelins.se | http://www.qtcentre.org Recommended off-line reading: The Foundations of Qt Development (ISBN: 1-59059-831-8)

On Fri, Apr 18, 2014 at 2:23 PM, Paul Chaignon notifications@github.comwrote:

Okay. I'm also thinking about using the Endif and Forever keywords for BlitzBasic. Does any of these exist in BitBake?

Reply to this email directly or view it on GitHubhttps://github.com/github/linguist/issues/1074#issuecomment-40804978 .

arfon commented 9 years ago

https://github.com/github/linguist/pull/1129 has just landed so this should improve very soon. A deploy of a new Linguist gem usually takes a couple of weeks but support is now in master.

larsbrinkhoff commented 8 years ago

How about .bbclass, .bbappend, .inc, local.conf, layer.conf, bitbake.conf?