mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-22 13:20:09 -04:00
Add Clojure indent tests
This commit is contained in:
parent
660370a337
commit
e59381ab5f
2 changed files with 188 additions and 0 deletions
137
tests/indent/clojure/test.cljc
Normal file
137
tests/indent/clojure/test.cljc
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
(identity
|
||||
true)
|
||||
|
||||
(:k
|
||||
{:k 1})
|
||||
|
||||
(+
|
||||
1
|
||||
2)
|
||||
|
||||
(
|
||||
+
|
||||
1
|
||||
2)
|
||||
|
||||
(let [a 1
|
||||
b 2]
|
||||
true)
|
||||
|
||||
[1 2 3
|
||||
4 5 6]
|
||||
|
||||
{:a 1
|
||||
:b 2}
|
||||
|
||||
{
|
||||
:a 1
|
||||
:b 2}
|
||||
|
||||
#:a
|
||||
{:a 1
|
||||
:b 2}
|
||||
|
||||
#{1 2
|
||||
3 4}
|
||||
|
||||
#{
|
||||
1 2
|
||||
3 4}
|
||||
|
||||
(defn
|
||||
_
|
||||
[]
|
||||
true)
|
||||
|
||||
(defn _
|
||||
[]
|
||||
true)
|
||||
|
||||
(defn _
|
||||
[a
|
||||
b]
|
||||
true)
|
||||
|
||||
(defn _ [a
|
||||
b]
|
||||
true)
|
||||
|
||||
(defn _ [
|
||||
a]
|
||||
true)
|
||||
|
||||
(defn _ [{a :a
|
||||
b :b}]
|
||||
true)
|
||||
|
||||
(defn _
|
||||
([x]
|
||||
true)
|
||||
([x
|
||||
y]
|
||||
true))
|
||||
|
||||
#(*
|
||||
%1
|
||||
%2)
|
||||
|
||||
#(
|
||||
*
|
||||
%1
|
||||
%2)
|
||||
|
||||
#?(
|
||||
:clj (+ 1 1))
|
||||
|
||||
#?@(
|
||||
:clj (+ 1 1))
|
||||
|
||||
'
|
||||
()
|
||||
|
||||
`
|
||||
()
|
||||
|
||||
~
|
||||
()
|
||||
|
||||
#a
|
||||
()
|
||||
|
||||
@
|
||||
(atom nil)
|
||||
|
||||
~@
|
||||
()
|
||||
|
||||
#'
|
||||
()
|
||||
|
||||
#_
|
||||
()
|
||||
|
||||
#=
|
||||
()
|
||||
|
||||
'#=
|
||||
(+ 1 1)
|
||||
|
||||
^:a
|
||||
(+ 1
|
||||
2 3)
|
||||
|
||||
^:a
|
||||
[1 2
|
||||
3 4]
|
||||
|
||||
^:a
|
||||
{:a 1
|
||||
:b 2}
|
||||
|
||||
^:a
|
||||
^[1 2 (+
|
||||
1 2)
|
||||
3 4]
|
||||
^{:a 1
|
||||
:b 2}
|
||||
{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue