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 language Skript #5726

Closed
wants to merge 20 commits into from
Closed

Add language Skript #5726

wants to merge 20 commits into from

Conversation

blockarchitech
Copy link
Contributor

@blockarchitech blockarchitech commented Jan 9, 2022

Description

This will add syntax highlighting, and language identification of the language Skript across GitHub.

Checklist:

Add the 'Skript' Programming Language
This file was added by mistake.
@blockarchitech blockarchitech requested a review from a team as a code owner January 9, 2022 16:16
@blockarchitech blockarchitech changed the title Add language Script Add language Skript Jan 9, 2022
@blockarchitech
Copy link
Contributor Author

Also, adding on to the color, this is the official color for the Script language, which is plastered all over the Documentation.
Skript Docs

@blockarchitech
Copy link
Contributor Author

Alright @Nixinova , I added the new sample files.

@Nixinova
Copy link
Contributor

Those new samples should be good. You'll have to update the OP listing where they're from tho if they are taken from somewhere else.

@blockarchitech
Copy link
Contributor Author

Awesome!

@blockarchitech
Copy link
Contributor Author

Hey @Alhadis can you review this?

@Alhadis
Copy link
Collaborator

Alhadis commented Jan 23, 2022

@blockarchitech I'll need to review the distribution of .sk files across GitHub to ascertain that Skript meets our criteria for popularity. 57,658 search results for the .sk extension looks promising, but not all of those files are guaranteed to be Skript files. In particular, sk might be used by files written in Slovakian — it's common to see files suffixed with their language's BCP-47 tag; i.e., stuff like this.

I'll get back to you.

@blockarchitech
Copy link
Contributor Author

So @Alhadis I've found this which seems to be some aircraft thing which is WAYY out of my comfort zone when it comes to this. I'll have to find out how to create heuristics to differentiate Skript from aircraft controller code.

@blockarchitech
Copy link
Contributor Author

Reading the guidelines on heuristics, I have to run the Bayesian classifier, and the guidelines said to ping @lildude to help with this.

@Alhadis
Copy link
Collaborator

Alhadis commented Jan 23, 2022

Heuristics are only necessary when there are multiple (eligible) languages with the same file extension(s) and/or filename(s). They're not necessary for every addition, and the part about benchmarking the classifier is only relevant for complex heuristics… I think.

The main issue I need to address is the possibility of as-yet undiscovered formats with the .sk extension that are also eligible for addition to Linguist (though unlikely, it has happened before…)

In other words, don't worry about if for the time being. 😉

@blockarchitech
Copy link
Contributor Author

Okay so @Alhadis I went through most of the search results and found that a lot of the results were skript, but some weren't. I'll create an excel document with a chart to better visualize this tomorrow.

@Alhadis
Copy link
Collaborator

Alhadis commented Feb 6, 2022

You might want to hold off on that too, as there was a recent (temporary) change in Linguist's eligibility assessment. See #5756.

@blockarchitech
Copy link
Contributor Author

Okay, that's going to make my life a LOT easier even outside of linguist. Just signed up.

Copy link
Member

@lildude lildude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you missed adding the grammar license file. When you ran script/add-grammar it should have downloaded the file in a format we need.

Gemfile Outdated Show resolved Hide resolved
@Moderocky
Copy link

Moderocky commented Feb 9, 2022

Hello, I'm here in an official capacity from SkriptLang, the org that maintains the Skript language.

We have some major concerns about this PR:
Both samples provided are invalid. sample1.sk contains several syntactical errors (incorrect quoting, illegal nesting of options, etc.) and sample2.sk relies on third-party modular addons that are not a default part of the Skript language.
The current samples seem to be inadequate when compared to other languages from the linguist repository. Very little of the feature-set is sampled, and proper explanatory comments ought to be provided.

It should also be noted that neither the highlighter grammar vendor linked nor the sample files are officially created/maintained - both are provided by third parties not affiliated the language maintainers.
(In fact, the Skript-Atom project has been abandoned for over five years.)

While we'd be honoured to have linguist support Skript, we want to make sure that the language is represented accurately and reliably.

@blockarchitech
Copy link
Contributor Author

We have some major concerns about this PR: Both samples provided are invalid. sample1.sk contains several syntactical errors (incorrect quoting, illegal nesting of options, etc.) and sample2.sk relies on third-party modular addons that are not a default part of the Skript language. The current samples seem to be inadequate when compared to other languages from the linguist repository. Very little of the feature-set is sampled, and proper explanatory comments ought to be provided.

I'll address these sample files, for sample2 I did not know it relied on a 3rd-party module. sample1 I'm not sure I understand your claim as this was a tested file, but I can go ahead and make a new one.

It should also be noted that neither the highlighter grammar vendor linked nor the sample files are officially created/maintained - both are provided by third parties not affiliated the language maintainers.
(In fact, the Skript-Atom project has been abandoned for over five years.)

Grammar has been updated.

Thanks for your concern, and letting me know. I'll go ahead and get these added ASAP.

@blockarchitech blockarchitech marked this pull request as draft February 9, 2022 20:59
@blockarchitech
Copy link
Contributor Author

Quick Update: The folks over at SkriptLang (big thanks @Moderocky ) have been working on official grammar. On stable release I'll get this updated and re-request another review. Repo

@blockarchitech
Copy link
Contributor Author

Ah, please ignore the double-merge, did once on GitHub and git pull on local machine

@blockarchitech
Copy link
Contributor Author

blockarchitech commented Mar 3, 2022

Will work on in a new pull request as there's some sorting issues with this fork

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants