From 8c4f00dfeab9e3ec2d9bc0f6bb55da2b61251c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ho=C5=82ub?= Date: Mon, 2 Dec 2024 23:46:02 +0100 Subject: [PATCH 1/2] feat(languages): add ClojureDart --- CHANGELOG.md | 3 +++ README.md | 1 + languages.json | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f33925104..5f284329b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix alternative output formats ([#1188](https://github.com/XAMPPRocky/tokei/pull/1188)) - Add missing extension `fsti` for F* ([#1184](https://github.com/XAMPPRocky/tokei/pull/1184)) +## Added +- Add ClojureDart support + ## [13.0.0-alpha.6](https://github.com/XAMPPRocky/tokei/compare/v13.0.0-alpha.5...v13.0.0-alpha.6) - 2024-10-11 ### Added diff --git a/README.md b/README.md index f3c8eacfc..901c3e7e6 100644 --- a/README.md +++ b/README.md @@ -360,6 +360,7 @@ CHeader Cil Clojure ClojureC +ClojureDart ClojureScript CMake Cobol diff --git a/languages.json b/languages.json index f2c6415fc..0907f8c5e 100644 --- a/languages.json +++ b/languages.json @@ -263,6 +263,11 @@ "quotes": [["\\\"", "\\\""]], "extensions": ["cljc"] }, + "ClojureDart": { + "line_comment": [";"], + "quotes": [["\\\"", "\\\""]], + "extensions": ["cljd"] + }, "ClojureScript": { "line_comment": [";"], "quotes": [["\\\"", "\\\""]], From ae088dc9bcca4f14e7c0fac8616216eb9e189cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ho=C5=82ub?= Date: Mon, 2 Dec 2024 23:46:55 +0100 Subject: [PATCH 2/2] test: add test for clojuredart --- tests/data/clojuredart.cljd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/data/clojuredart.cljd diff --git a/tests/data/clojuredart.cljd b/tests/data/clojuredart.cljd new file mode 100644 index 000000000..d1acc874e --- /dev/null +++ b/tests/data/clojuredart.cljd @@ -0,0 +1,19 @@ +; 19 lines 13 code 3 comments 3 blanks + +(ns clojure) + +; Below is a function +(defn a-fn + "Docstring with a column ;" + [a b] + (+ 1 1)) + +(defn a-fn2 + ;"Not a doc" + "Doc doc again" + [a b] ; a and b right? + (let [multiline "I'm + a multline + ; string + "] + (str multline a b)))