From efcade9458f671c68f2a04e31adbfa0bae6993b6 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:22:15 -0800 Subject: [PATCH 1/6] Propose CCSMB-4 --- Standards/CCSMB-4.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Standards/CCSMB-4.md diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md new file mode 100644 index 0000000..9c6cbb6 --- /dev/null +++ b/Standards/CCSMB-4.md @@ -0,0 +1,22 @@ +# CCSMB-4: Lua + +*Author: Oliver Cooper (oeed)* +*Last updated: 2022-01-27* +*Version: v1.0.0 + +## Quick information + +| Information | | +| ----------- | ------------------------- | +| Version | 1.0.0 | +| Type | Plain text file format | +| MIME | `text/lua` | +| Extensions | `.lua` | + +## Technical details + +*This format is based upon [plain text](/File-Formats/text/plain.md) and as such technical details that apply to plain +text also apply to this format.* + +Lua code files should contain valid, executable Lua code. These can either be self-contained programs, APIs or Lua +otherwise loaded by a program. From 873a7df07f0b5588ef283c2b6afaf19d4a98be2b Mon Sep 17 00:00:00 2001 From: Tomo <68489118+tomodachi94@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:38:23 -0800 Subject: [PATCH 2/6] Fix link --- Standards/CCSMB-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md index 9c6cbb6..93baef3 100644 --- a/Standards/CCSMB-4.md +++ b/Standards/CCSMB-4.md @@ -15,7 +15,7 @@ ## Technical details -*This format is based upon [plain text](/File-Formats/text/plain.md) and as such technical details that apply to plain +*This format is based upon [plain text](/Standards/CCSMB-2.md) and as such technical details that apply to plain text also apply to this format.* Lua code files should contain valid, executable Lua code. These can either be self-contained programs, APIs or Lua From 9f8a8d58bc1d18795d7e96179001cc9eefa96283 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:43:56 -0800 Subject: [PATCH 3/6] Fix formatting --- Standards/CCSMB-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md index 93baef3..341df81 100644 --- a/Standards/CCSMB-4.md +++ b/Standards/CCSMB-4.md @@ -2,7 +2,7 @@ *Author: Oliver Cooper (oeed)* *Last updated: 2022-01-27* -*Version: v1.0.0 +*Version: v1.0.0* ## Quick information From 18a634e0c10e074ced42304e8b96ef4e91227670 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+tomodachi94@users.noreply.github.com> Date: Thu, 10 Nov 2022 12:14:11 -0800 Subject: [PATCH 4/6] Fix spacing of header --- Standards/CCSMB-4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md index 341df81..a50a436 100644 --- a/Standards/CCSMB-4.md +++ b/Standards/CCSMB-4.md @@ -1,7 +1,9 @@ # CCSMB-4: Lua *Author: Oliver Cooper (oeed)* + *Last updated: 2022-01-27* + *Version: v1.0.0* ## Quick information From 119213fe1b2e67fc0d4428a73fa87a4298bd61ac Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Thu, 10 Nov 2022 13:29:07 -0800 Subject: [PATCH 5/6] Clarify that this standard is for source --- Standards/CCSMB-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md index a50a436..8d4042c 100644 --- a/Standards/CCSMB-4.md +++ b/Standards/CCSMB-4.md @@ -20,5 +20,5 @@ *This format is based upon [plain text](/Standards/CCSMB-2.md) and as such technical details that apply to plain text also apply to this format.* -Lua code files should contain valid, executable Lua code. These can either be self-contained programs, APIs or Lua +Lua code files should contain valid, executable Lua source code. These can either be self-contained programs, APIs or Lua otherwise loaded by a program. From 03550ae1b7790a69cf48c9f6aa6253eb420ce47d Mon Sep 17 00:00:00 2001 From: EmmaKnijn <64010592+EmmaKnijn@users.noreply.github.com> Date: Sat, 12 Nov 2022 20:36:12 +0100 Subject: [PATCH 6/6] "Add changes suggested by Jack and Mason --- Standards/CCSMB-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Standards/CCSMB-4.md b/Standards/CCSMB-4.md index 8d4042c..1decb0e 100644 --- a/Standards/CCSMB-4.md +++ b/Standards/CCSMB-4.md @@ -21,4 +21,4 @@ text also apply to this format.* Lua code files should contain valid, executable Lua source code. These can either be self-contained programs, APIs or Lua -otherwise loaded by a program. +otherwise loaded by a program. Lua code files should be loaded with `require`, over `os.loadAPI`. Lua code files should also use `local` to declare a variable, unless a `global` is needed, which it usually is not.