From c0eb1f39f8a0bd1e4af4a980a01e240efc7a0525 Mon Sep 17 00:00:00 2001 From: Garrett Hopper Date: Wed, 7 May 2025 22:08:35 -0500 Subject: [PATCH] Clojure indent add #: ns_map_lit and remove old_meta_lit and sym_val_lit --- queries/clojure/indents.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/queries/clojure/indents.scm b/queries/clojure/indents.scm index ac8a00321..5609c0b71 100644 --- a/queries/clojure/indents.scm +++ b/queries/clojure/indents.scm @@ -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))