The Wayback Machine - https://web.archive.org/web/20210220182708/https://github.com/github/linguist/pull/5210
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Befunge samples and .bf heuristics #5210

Open
wants to merge 1 commit into
base: master
from

Conversation

@smola
Copy link
Contributor

@smola smola commented Feb 13, 2021

Description

Added heuristics for .bf extension.

Added the .bf extension to Befunge.

Added the following Befunge-93 samples:

And Befunge-98:

For future reference: I have not included the (rarer) extensions .b93 and .b98, but there are samples for it under liberal licenses here:

Checklist:

Added heuristics for `.bf` extension.

Added the `.bf` extension to Befunge.

Added the following Befunge-93 samples:

* aturley.bf by Andrew Turley (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/aturley.bf
* beer7.bf by Wim Rijnders (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/beer7.bf
* befunge3.bf by Ben Olmstead (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/befunge3.bf
* cascade.bf by Chris Pressey (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/cascade.bf

And Befunge-98:

* mycorand.bf by Matti Niemenmaa (MIT license), fetched from https://github.com/Deewiant/Mycology/blob/master/mycorand.bf
@smola smola requested a review from github/linguist as a code owner Feb 13, 2021
@smola
Copy link
Contributor Author

@smola smola commented Feb 13, 2021

Although .bf seems to be the most common extension for Befunge, I can't tell if it meets the popularity threshold. If we're not including it, I'll create a separate PR for the .bf heuristics only.

- extensions: ['.bf']
rules:
- language: Beef
pattern: '^using\s+(System|Beefy)(\.(.*))?;\s*$'

This comment has been minimized.

@Nixinova

Nixinova Feb 15, 2021
Contributor

Wouldn't just ^using\s+(System|Beefy) work fine? (Same logic for 3 lines down as well.) Also should there be a \s* before using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants