From 70b9a82a971f3425e62257c0e92b16e88bf0b420 Mon Sep 17 00:00:00 2001 From: zongor Date: Sun, 3 Aug 2025 20:38:08 -0400 Subject: [PATCH] poor mans syntax highlighting --- .gitattributes | 1 + docs/project-syntax-example/client.zrl | 8 ++++---- docs/project-syntax-example/server.zrl | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..52a0dbc --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.zrl linguist-language=fortran \ No newline at end of file diff --git a/docs/project-syntax-example/client.zrl b/docs/project-syntax-example/client.zrl index 7c32223..0c7550c 100644 --- a/docs/project-syntax-example/client.zrl +++ b/docs/project-syntax-example/client.zrl @@ -1,11 +1,11 @@ use "common.ztl"; -fn main(argc i32, argv str[]) { - u32 screen_width = 800; - u32 screen_height = 450; +function main(argc int, argv str[]) { + nat screen_width = 800; + nat screen_height = 450; str username = argv[1]; - ste password = argv[2]; + str password = argv[2]; Player me(username, [0.0, 1.0, 2.0], PURPLE); diff --git a/docs/project-syntax-example/server.zrl b/docs/project-syntax-example/server.zrl index 11c047b..9acc9ed 100644 --- a/docs/project-syntax-example/server.zrl +++ b/docs/project-syntax-example/server.zrl @@ -1,6 +1,6 @@ use "common.ztl"; -fn main(i32 argc, str[] argv) { +function main(int argc, str[] argv) { Server s("tcp://0.0.0.0:25565"); bool running = true; Player[] players = [Player("user", [0., 0., 0.], RED)];