Skip to content

Commit

Permalink
Add uiua
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Nov 15, 2024
1 parent 8cd0f58 commit 208f28a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,11 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["typ"]
},
"Uiua": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""]],
"extensions": ["ua"]
},
"UMPL": {
"line_comment": ["!"],
"quotes": [["`", "`"]],
Expand Down
16 changes: 16 additions & 0 deletions tests/data/uiua.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! 48 lines 36 code 6 comments 6 blanks
//! ```uiua
//! fn main () {
//! // Comment
//!
//! println!("Hello World!");
//! }
//! ```
# Calculate factorial
# Result ? Number
Factorial ← |1 (
×. # Line comment
)

FactorialThree ← Factorial 3 # Another line comment
FactorialFour ← Factorial 4

0 comments on commit 208f28a

Please sign in to comment.