From 563f15395dbcd8324a091710dc67f835051f03c3 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Sat, 16 Nov 2024 11:40:13 +0100 Subject: [PATCH] Add support for Uiua language (#1191) --- languages.json | 5 +++++ tests/data/uiua.ua | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/data/uiua.ua diff --git a/languages.json b/languages.json index 97f7419..70bb20a 100644 --- a/languages.json +++ b/languages.json @@ -1781,6 +1781,11 @@ "quotes": [["\\\"", "\\\""]], "extensions": ["typ"] }, + "Uiua": { + "line_comment": ["#"], + "quotes": [["\\\"", "\\\""]], + "extensions": ["ua"] + }, "UMPL": { "line_comment": ["!"], "quotes": [["`", "`"]], diff --git a/tests/data/uiua.ua b/tests/data/uiua.ua new file mode 100644 index 0000000..4f47803 --- /dev/null +++ b/tests/data/uiua.ua @@ -0,0 +1,9 @@ +# 9 lines 5 code 3 comments 1 blanks +# Calculate factorial +# Result ? Number +Factorial ← |1 ( + ×. # Line comment +) + +FactorialThree ← Factorial 3 # Another line comment +FactorialFour ← Factorial 4