Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 8th language #1192

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": {
XAMPPRocky marked this conversation as resolved.
Show resolved Hide resolved
"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
Loading