From 735f77d3bcb964dcd477d03c5db07dc0732a989f Mon Sep 17 00:00:00 2001 From: Avelino Date: Sat, 22 Oct 2022 14:40:57 +0000 Subject: [PATCH] clojure: add support --- README.md | 1 + syntax.json | 10 +++++++++- tests/test_closed.diff | 14 ++++++++++++++ tests/test_new.diff | 15 +++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2fbb9b4..17ead06 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ There are additional inputs if you want to be able to assign issues to projects. * C# * CSS * Crystal +* Clojure * Dart * Elixir * Go diff --git a/syntax.json b/syntax.json index d66f381..e9446b3 100644 --- a/syntax.json +++ b/syntax.json @@ -649,5 +649,13 @@ "pattern": "#" } ] + }, + { + "language": "Clojure", + "markers": [ + { + "type": "line", + "pattern": ";;" + } + ] } -] \ No newline at end of file diff --git a/tests/test_closed.diff b/tests/test_closed.diff index 897afd3..46d564c 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -285,3 +285,17 @@ index 0000000..525e25d 100644 +++ b/tests/config.json5 @@ -0,0 +0,1 @@ - // TODO: Delete this line from the codebase + +diff·--git·a/tests/example.clj·b/tests/example.clj +index·0000000..525e25d·100644 +---·a/tests/example.clj ++++·b/tests/example.clj +@@ -1,8 +0,0 @@ +-(ns example) +- +-(defn function-test [name] +- ;; TODO: first todo to test parser +- (prn (str "hello" name)) +- ;; TODO: todo with description (sub-level) +- ;; Body of the issue should stay here +- (str "hello" name)) diff --git a/tests/test_new.diff b/tests/test_new.diff index f862604..8eb365f 100644 --- a/tests/test_new.diff +++ b/tests/test_new.diff @@ -306,3 +306,18 @@ index 0000000..525e25d + "butItHasSomePendingActivities" + ] +} + +diff·--git·a/tests/example.clj·b/tests/example.clj +new·file·mode·100644 +index·0000000..525e25d +---·/dev/null ++++·b/tests/example.clj +@@ -0,0 +1,8 @@ ++(ns example) ++ ++(defn function-test [name] ++ ;; TODO: first todo to test parser ++ (prn (str "hello" name)) ++ ;; TODO: todo with description (sub-level) ++ ;; Body of the issue should stay here ++ (str "hello" name))