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