Skip to content

Add support for the Sophia programming language#7925

Open
ifaouibadi wants to merge 1 commit intogithub-linguist:mainfrom
ifaouibadi:add-sophia-language
Open

Add support for the Sophia programming language#7925
ifaouibadi wants to merge 1 commit intogithub-linguist:mainfrom
ifaouibadi:add-sophia-language

Conversation

@ifaouibadi
Copy link
Copy Markdown

@ifaouibadi ifaouibadi commented Apr 20, 2026

Add Sophia (.aes) language support

  • Introduced new submodule for vscode-sophia and updated .gitmodules
  • Added Sophia language definition in languages.yml
  • Updated grammars.yml to include Sophia grammar (source.sophia)
  • Added sample contracts in samples/Sophia/
  • Updated vendor/README.md to document Sophia support
  • Added vendor/licenses/git_submodule/vscode-sophia.dep.yml for the grammar submodule (MIT)

Description

This pull request adds Sophia (æternity smart contract language) to Linguist with the primary extension .aes.

Detection: languages.yml registers Sophia as a programming language with tm_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-sophia via script/add-grammar (and recorded in grammars.yml).

Samples: Two representative .aes files live under samples/Sophia/. They are adapted from the upstream extension’s examples/ tree (MIT); paths and license lines in the samples point to the original sources.

Heuristics: .aes is 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.

  • 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

- 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
@ifaouibadi ifaouibadi requested a review from a team as a code owner April 20, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants