Add support for Uiua language (#1191)

This commit is contained in:
Erik Schierboom 2024-11-16 11:40:13 +01:00 committed by GitHub
parent 837fe44f28
commit 563f15395d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -1781,6 +1781,11 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["typ"]
},
"Uiua": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""]],
"extensions": ["ua"]
},
"UMPL": {
"line_comment": ["!"],
"quotes": [["`", "`"]],

9
tests/data/uiua.ua Normal file
View File

@ -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