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

Adding Move on Sui to languages #296

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Language.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type t =
| Kotlin
| Lisp
| Lua
| Move_on_sui
| Move_on_aptos
| Ocaml
| Php
Expand Down Expand Up @@ -369,6 +370,22 @@ let list = [
shebangs = [{|lua|}];
tags = [];
};
(*
Move language with SUI flavor
*)
{
id = Move_on_sui;
id_string = "move_on_sui";
name = "Move on Sui";
keys = [{|move_on_sui|}];
exts = [{|.move|}];
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mjambon will this be problematic that we now have 2 languages (move_on_sui, move_on_aptos) using the same .move extension? Not sure how file targeting will work.

maturity = Develop;
example_ext = None;
excluded_exts = [];
reverse_exts = None;
shebangs = [];
tags = [];
};
(*
Move language with Aptos flavor
*)
Expand Down
1 change: 1 addition & 0 deletions Language.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type t =
| Kotlin
| Lisp
| Lua
| Move_on_sui
| Move_on_aptos
| Ocaml
| Php
Expand Down
9 changes: 9 additions & 0 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,15 @@ def to_json(self):
maturity=Maturity.ALPHA,
shebangs=["lua"]
),
Language(
comment="Move language with SUI flavor",
id_="move_on_sui" ,
name="Move on Sui",
keys=["move_on_sui"],
exts=[".move"],
maturity=Maturity.DEVELOP,
shebangs=[]
),
Language(
comment="Move language with Aptos flavor",
id_="move_on_aptos",
Expand Down
18 changes: 18 additions & 0 deletions lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,24 @@
"is_target_language": true,
"tags": []
},
{
"comment": "Move language with SUI flavor",
"id": "move_on_sui",
"name": "Move on Sui",
"keys": [
"move_on_sui"
],
"maturity": "develop",
"exts": [
".move"
],
"example_ext": null,
"excluded_exts": [],
"reverse_exts": null,
"shebangs": [],
"is_target_language": true,
"tags": []
},
{
"comment": "Move language with Aptos flavor",
"id": "move_on_aptos",
Expand Down
Loading