Skip to content

Commit

Permalink
Add support for 8th language (#1192)
Browse files Browse the repository at this point in the history
* Add support for 8th language

* Update languages.json

---------

Co-authored-by: XAMPPRocky <[email protected]>
  • Loading branch information
ErikSchierboom and XAMPPRocky authored Nov 20, 2024
1 parent bf83c0a commit 029045a
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 @@ -472,6 +472,14 @@
"line_comment": [";"],
"extensions": ["edn"]
},
"Eighth": {
"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 029045a

Please sign in to comment.