Skip to content

Commit 029045a

Browse files
Add support for 8th language (#1192)
* Add support for 8th language * Update languages.json --------- Co-authored-by: XAMPPRocky <[email protected]>
1 parent bf83c0a commit 029045a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

languages.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,14 @@
472472
"line_comment": [";"],
473473
"extensions": ["edn"]
474474
},
475+
"Eighth": {
476+
"name": "8th",
477+
"line_comment": ["\\\\ ", "-- "],
478+
"multi_line_comments": [["(*", "*)"]],
479+
"nested": true,
480+
"quotes": [["\\\"", "\\\""]],
481+
"extensions": ["8th"]
482+
},
475483
"Elisp": {
476484
"name": "Emacs Lisp",
477485
"line_comment": [";"],

tests/data/eight.8th

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
\ 22 lines 9 code 8 comments 5 blanks
2+
3+
(* multiline comments
4+
(* a nested
5+
comment *)
6+
*
7+
*)
8+
9+
-- here's a single line comment
10+
"Hello, " var, foo -- line ending comment
11+
12+
\ here's another single line comment
13+
"!" var, bar \ a different line ending comment
14+
15+
: hello \ s --
16+
foo @ s:<+
17+
bar @ s:+
18+
. cr
19+
;
20+
21+
"World" hello
22+
bye

0 commit comments

Comments
 (0)