Skip to content

Commit

Permalink
Add support for 8th language
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Nov 18, 2024
1 parent 837fe44 commit 533b1e0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@
"line_comment": [";"],
"extensions": ["edn"]
},
"Eight": {
"name": "8th",
"line_comment": ["\\\\ ", "-- "],
"multi_line_comments": [["(*", "*)"]],
"nested": true,
"quotes": [["\\\"", "\\\""]],
"extensions": ["8th"]
},
"Elisp": {
"name": "Emacs Lisp",
"line_comment": [";"],
Expand Down
22 changes: 22 additions & 0 deletions tests/data/eight.8th
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\ 22 lines 9 code 8 comments 5 blanks

(* multiline comments
(* a nested
comment *)
*
*)

-- here's a single line comment
"Hello, " var, foo -- line ending comment

\ here's another single line comment
"!" var, bar \ a different line ending comment

: hello \ s --
foo @ s:<+
bar @ s:+
. cr
;

"World" hello
bye

0 comments on commit 533b1e0

Please sign in to comment.