Add support for 8th language (#1192)

* Add support for 8th language

* Update languages.json

---------

Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
This commit is contained in:
Erik Schierboom 2024-11-20 11:12:50 +01:00 committed by GitHub
parent bf83c0a01a
commit 029045a5a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

View File

@ -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": [";"],

22
tests/data/eight.8th Normal file
View File

@ -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