From 029045a5a3825080c74efcf90fcac3311abc07dd Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Wed, 20 Nov 2024 11:12:50 +0100 Subject: [PATCH] Add support for 8th language (#1192) * Add support for 8th language * Update languages.json --------- Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> --- languages.json | 8 ++++++++ tests/data/eight.8th | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/data/eight.8th diff --git a/languages.json b/languages.json index f2c6415fc..c37f1d299 100644 --- a/languages.json +++ b/languages.json @@ -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": [";"], diff --git a/tests/data/eight.8th b/tests/data/eight.8th new file mode 100644 index 000000000..848713277 --- /dev/null +++ b/tests/data/eight.8th @@ -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