Skip to content

Commit

Permalink
Add Janet to languages.json (XAMPPRocky#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
archydragon authored and ErikSchierboom committed Jun 7, 2024
1 parent d076c9d commit ade0e4d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ Ini
IntelHex
Isabelle
Jai
Janet
Java
JavaScript
Jq
Expand Down
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,11 @@
"extensions": ["jai"],
"nested": true
},
"Janet": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["'", "'"], ["`", "`"]],
"extensions": ["janet"]
},
"Java": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
Expand Down
17 changes: 17 additions & 0 deletions tests/data/janet.janet
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 17 lines 12 code 3 comments 2 blanks

# Below is a function
(defn a-fn
"Docstring with a hash #"
[a b]
(+ 1 1))

(defn a-fn2
#"Not a doc"
"String"
[a b] # a and b right?
(let [multiline "I'm
a multline
# string
"]
(str multline a b)))

0 comments on commit ade0e4d

Please sign in to comment.