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": [["\\\"", "\\\""]], 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)))