Skip to content

Commit

Permalink
Add support for Uiua language (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Nov 16, 2024
1 parent 837fe44 commit 563f153
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,11 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["typ"]
},
"Uiua": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""]],
"extensions": ["ua"]
},
"UMPL": {
"line_comment": ["!"],
"quotes": [["`", "`"]],
Expand Down
9 changes: 9 additions & 0 deletions tests/data/uiua.ua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 563f153

Please sign in to comment.