Permalink
Browse files

Add support for ClojureC + tests for all Clojure (#224)

* Add cljc lang + first pass for testing all Clojure

* Fix the special comment in tests + Small precision in CONTRIBUTING
  • Loading branch information...
DjebbZ authored and Aaronepower committed Apr 26, 2018
1 parent 26663ac commit 349fe2b585ba949c94a45e38f65e880831687a59
Showing with 68 additions and 2 deletions.
  1. +3 −2 CONTRIBUTING.md
  2. +8 −0 languages.json
  3. +19 −0 tests/data/clojure.clj
  4. +19 −0 tests/data/clojurec.cljc
  5. +19 −0 tests/data/clojurescript.cljs
@@ -140,11 +140,12 @@ detected as a `CMake` file, not a `Text` file.
```
# Tests
A test file is required with language additions.The file should
A test file is required with language additions. The file should
contain every variant comments and quotes, as well as a comment
at the top of the file containing the manually verified lines,
code, comments, blanks e.g.
`// 39 lines 32 code 2 comments 5 blanks`. A good example of a
`// 39 lines 32 code 2 comments 5 blanks`. The comment should use
the syntax of the language you're testing. A good example of a
test file is [`tests/data/rust.rs`].
```rust
@@ -220,6 +220,14 @@
"cljs"
]
},
"ClojureC":{
"line_comment":[
";"
],
"extensions":[
"cljc"
]
},
"CMake": {
"line_comment":[
"#"
@@ -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)))
@@ -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)))
@@ -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)))

0 comments on commit 349fe2b

Please sign in to comment.