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

Please add support for Seed7 #5350

Open
ThomasMertes opened this issue May 2, 2021 · 1 comment
Open

Please add support for Seed7 #5350

ThomasMertes opened this issue May 2, 2021 · 1 comment
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist

Comments

@ThomasMertes
Copy link

Language name

Seed7

URL of example repository

Highlighted examples are here and in the sub pages of the algorithms.
Currently non-highlighted examples are at:
https://github.com/ThomasMertes/seed7/tree/master/prg
https://github.com/ThomasMertes/seed7/tree/master/lib

URL of syntax highlighting grammar

Since Seed7 is also about syntax extensions this is not so easy to do. But the Seed7 Homepage uses syntax highlighting that can be used as guideline. You can see in the Seed7 examples which colors are used.

Keywords are blue (CSS: { color: blue} ). The keywords are: begin, case, const, do, downto, else, elsif, end, enum, for, forward, func, if, in, include, inout, is, local, new, of, otherwise, param, range, ref, repeat, return, struct, sub, syntax, system, then, to, until, val, var, when, while
Operator symbols are also blue. The operator symbols are: and, conv, digits, div, exp, in, lpad, lpad0, mdiv, mod, mult, not, or, parse, rem, rpad, sci, times, varConv
Types are red (CSS { color: red } ). Predefined type names are: array, func, hash, set, varfunc, bigInteger, bigRational, bitset, boolean, char, clib_file, color, complex, duration, expr, file, float, integer, object, proc, program, rational, reference, ref_list, string, text, time, type, void, PRIMITIVE_WINDOW
Comments are green (CSS: { color: green } ). There are line comments that start with a # and extend to the end of the line. There are also block comments that start with (* and end with *) . Block comments can nest.
String and char literals are maroon (CSS: { color: maroon } ). Strings literals start and end with " . A backslash can be used to escape a " inside a string literal. Char literals start and end with ' . A backslash can be used to escape a ' inside a char literal.

Most popular extensions

.sd7
.s7i

Detected language

.sd7 Seed7 program
.s7i Seed7 library

@ThomasMertes ThomasMertes added Add Language Good First Issue This is a great opportunity to start contributing to Linguist labels May 2, 2021
@Nixinova
Copy link
Contributor

Nixinova commented May 7, 2021

.sd7 and .s7i search results only show a couple hundred files, most of which are from your one repository (s7i has 1 other repo, sd7 has 25). That's not enough usage to quality for addition in Lingusit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist
Projects
None yet
Development

No branches or pull requests

2 participants