Add B programming language#8056
Conversation
|
Related issue: #6717 |
|
For the search results, it might be better to use the same regex as used in the heuristic to illustrate that we have reached the 2k file threshold. Eg.: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.b+%2F%28%3F%3Aextrn%7Cauto%7Cgoto%29%2F (7.2k files) |
| rules: | ||
| - language: B | ||
| pattern: '^\s*(?:extrn|auto|goto)\b' | ||
| negative_pattern: '^\s*(?:implement|include|load|ref)\b' |
There was a problem hiding this comment.
Ideally, we'd also include a rule for Limbo and Brainfuck (Bf).
There's already rules inside the heuristics.yml file that we can re-use:
- language: Brainfuck
pattern: '(>\+>|>\+<)'and
- language: Limbo
pattern: '^\w+\s*:\s*module\s*\{'
What about this one?
From here: https://github.com/bext-lang/b The color of the logo is already close enough with what is suggested here ( |
| - ".b" | ||
| tm_scope: none | ||
| ace_mode: text | ||
| language_id: 700792152 |
There was a problem hiding this comment.
For some of these fields, like for tm_scope, it's worth considering if using the same values as the C programming language would be beneficial. You can check how the C syntax highlighing of a B file would look like using https://novalightshow.netlify.app/
There was a problem hiding this comment.
Apart from the extrn keyword it looks pretty much the same as C
lildude
left a comment
There was a problem hiding this comment.
The samples added do not match the list in the template. They are also mostly illustrations of using the language rather than real world examples of usage of the language. Please correct this.

Added the B programming language (C predecessor)
Checklist:
#da7666