mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Clojure indent add #: ns_map_lit and remove old_meta_lit and sym_val_lit
This commit is contained in:
parent
472937302b
commit
c0eb1f39f8
1 changed files with 5 additions and 4 deletions
|
|
@ -23,14 +23,15 @@
|
|||
@indent.align
|
||||
(#set! indent.increment 2))
|
||||
|
||||
; Indent 1 space for forms: ', `, ~, #, @
|
||||
([(quoting_lit) (syn_quoting_lit) (unquoting_lit) (tagged_or_ctor_lit) (derefing_lit) ]
|
||||
; Indent 1 space for forms: ', `, ~, #, @, #:
|
||||
([(quoting_lit) (syn_quoting_lit) (unquoting_lit) (tagged_or_ctor_lit) (derefing_lit) (ns_map_lit)]
|
||||
@indent.begin @indent.end
|
||||
(#set! indent.increment 1)
|
||||
(#set! indent.propagate 1))
|
||||
|
||||
; Indent 2 space for forms: ~@, #', #_, #=, #^, ##
|
||||
([(unquote_splicing_lit) (var_quoting_lit) (dis_expr) (evaling_lit) (old_meta_lit) (sym_val_lit)]
|
||||
; Indent 2 space for forms: ~@, #', #_, #=
|
||||
; Note: old_meta_lit (#^), and sym_val_lit (##) are not supported
|
||||
([(unquote_splicing_lit) (var_quoting_lit) (dis_expr) (evaling_lit)]
|
||||
@indent.begin @indent.end
|
||||
(#set! indent.increment 2)
|
||||
(#set! indent.propagate 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue