Add support for the Sophia programming language#7925
Open
ifaouibadi wants to merge 1 commit intogithub-linguist:mainfrom
Open
Add support for the Sophia programming language#7925ifaouibadi wants to merge 1 commit intogithub-linguist:mainfrom
ifaouibadi wants to merge 1 commit intogithub-linguist:mainfrom
Conversation
- Introduced new submodule for vscode-sophia and updated .gitmodules - Added Sophia language definition in languages.yml - Updated grammars.yml to include Sophia grammar - Added sample contracts in the samples/Sophia directory - Updated vendor README to document Sophia support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Sophia (
.aes) language support.gitmoduleslanguages.ymlgrammars.ymlto include Sophia grammar (source.sophia)samples/Sophia/vendor/README.mdto document Sophia supportvendor/licenses/git_submodule/vscode-sophia.dep.ymlfor the grammar submodule (MIT)Description
This pull request adds Sophia (æternity smart contract language) to Linguist with the primary extension
.aes.Detection:
languages.ymlregisters Sophia as a programming language withtm_scope: source.sophia,ace_mode: text, and color#5319E7.Syntax highlighting: The TextMate-compatible grammar comes from the MIT-licensed VS Code extension repository mradkov/vscode-sophia, added as
vendor/grammars/vscode-sophiaviascript/add-grammar(and recorded ingrammars.yml).Samples: Two representative
.aesfiles live undersamples/Sophia/. They are adapted from the upstream extension’sexamples/tree (MIT); paths and license lines in the samples point to the original sources.Heuristics:
.aesis not currently mapped to any other language in Linguist, so no new heuristic was added.Note for reviewers: Please confirm usage on GitHub Code Search meets the thresholds in CONTRIBUTING.md (e.g. indexed file counts and spread across repos). If the search query below should be refined (e.g. additional Sophia-specific tokens), maintainer feedback is welcome.
Checklist:
I am adding a new extension to a language.
I am adding a new language.
.aesfiles in the last year, excluding forks, with reasonable spread across repos—please verify the search link below before merge.)samples/Sophia/FundMe.aes)samples/Sophia/NamespaceExample.aes, derived from Example.aes)#5319E7.aesis not shared with another Linguist language today; no heuristic change.I am fixing a misclassified language
I am changing the source of a syntax highlighting grammar
I am updating a grammar submodule
I am adding new or changing current functionality
I am changing the color associated with a language