File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- (foo bar [✖])
1+ (foo bar
2+ " This string has unpaired brackets
3+ ["
4+ α
5+ [β])
26
37; ; vim:ft=clojure:
Original file line number Diff line number Diff line change 1- (foo bar [
1+ (foo bar
2+ " This string has unpaired brackets
3+ ["
4+ a
5+
6+ [
27 a
38 b
49
Original file line number Diff line number Diff line change 66 (test-indent " is inherited from previous element"
77 :in " test-inherit-indent.in"
88 :out " test-inherit-indent.out"
9- :keys " /✖ \\ <Esc >s\\ <CR> \\ <C-H> \\ <C-H >\\ <C-H>\\ <C-H>a\\ <CR>b\\ <CR>\\ <CR>c\\ <Esc>" ))
9+ :keys " /α \\ <CR >s\\ <Esc>Oa \\ <Esc>/β \\ <CR>s \\ <CR >\\ <C-H>\\ <C-H>a\\ <CR>b\\ <CR>\\ <CR>c\\ <Esc>" ))
Original file line number Diff line number Diff line change @@ -346,7 +346,11 @@ if exists("*searchpairpos")
346346 endwhile
347347
348348 if bracket_count == 0
349- return indent (lnum)
349+ " Check if this is part of a multiline string
350+ call cursor (lnum, 0 )
351+ if s: syn_id_name () !~? ' \vstring|regex'
352+ return indent (lnum)
353+ endif
350354 endif
351355 endwhile
352356
You can’t perform that action at this time.
0 commit comments