diff --git a/rc/json.kak b/rc/json.kak index 0882ec2e..7655f376 100644 --- a/rc/json.kak +++ b/rc/json.kak @@ -30,23 +30,23 @@ def -hidden _json_filter_around_selections %{ try %{ exec -draft -itersel s \h+$ d } } -def -hidden _json_indent_on_char " - eval -draft -itersel %_ +def -hidden _json_indent_on_char %< + eval -draft -itersel %< # align closer token to its opener when alone on a line - try %/ exec -draft ^\h+[]}]$ m s \`|.\' 1 / - _ -" + try %< exec -draft ^\h+[]}]$ m s \`|.\' 1 > + > +> -def -hidden _json_indent_on_new_line " - eval -draft -itersel ' +def -hidden _json_indent_on_new_line %< + eval -draft -itersel %< # preserve previous line indent try %{ exec -draft K } # filter previous line try %{ exec -draft k : _json_filter_around_selections } # indent after lines beginning with opener token - try %_ exec -draft k x ^\h*[[{] j _ - ' -" + try %< exec -draft k x ^\h*[[{] j > + > +> # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ diff --git a/rc/ragel.kak b/rc/ragel.kak index 4d7ecd2e..830c9a4b 100644 --- a/rc/ragel.kak +++ b/rc/ragel.kak @@ -38,16 +38,16 @@ def -hidden _ragel_filter_around_selections %{ try %{ exec -draft -itersel s \h+$ d } } -def -hidden _ragel_indent_on_char " - eval -draft -itersel %_ +def -hidden _ragel_indent_on_char %< + eval -draft -itersel %< # align closer token to its opener when alone on a line - try %/ exec -draft ^\h+[]})]$ m s \`|.\' 1 / - try %/ exec -draft ^\h+ [*]$ [*]$ s \`|.\' 1 / - _ -" + try %< exec -draft ^\h+[]})]$ m s \`|.\' 1 > + try %< exec -draft ^\h+ [*]$ [*]$ s \`|.\' 1 > + > +> -def -hidden _ragel_indent_on_new_line " - eval -draft -itersel ' +def -hidden _ragel_indent_on_new_line %< + eval -draft -itersel %< # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -55,9 +55,9 @@ def -hidden _ragel_indent_on_new_line " # copy _#_ comment prefix and following white spaces try %{ exec -draft k x s ^\h*\K#\h* y j p } # indent after lines ending with opener token - try %_ exec -draft k x [[{(*]$ j _ - ' -" + try %< exec -draft k x [[{(*]$ j > + > +> # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ diff --git a/rc/ruby.kak b/rc/ruby.kak index 6c4ae28f..77c4a533 100644 --- a/rc/ruby.kak +++ b/rc/ruby.kak @@ -64,17 +64,17 @@ def -hidden _ruby_filter_around_selections %{ try %{ exec -draft -itersel s \h+$ d } } -def -hidden _ruby_indent_on_char " - eval -draft -itersel %_ +def -hidden _ruby_indent_on_char %< + eval -draft -itersel %< # deindent on (else|elsif|end|rescue|when) keyword insertion try %{ exec -draft w (else|elsif|end|rescue|when) } # align closer token to its opener when alone on a line - try %/ exec -draft ^\h+[]}]$ m s \`|.\' 1 / - _ -" + try %< exec -draft ^\h+[]}]$ m s \`|.\' 1 > + > +> -def -hidden _ruby_indent_on_new_line " - eval -draft -itersel ' +def -hidden _ruby_indent_on_new_line %( + eval -draft -itersel %( # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -82,11 +82,11 @@ def -hidden _ruby_indent_on_new_line " # copy _#_ comment prefix and following white spaces try %{ exec -draft k x s ^\h*\K#\h* y j p } # indent after (else|elsif|rescue|when) keywords and lines beginning / ending with opener token - try %_ exec -draft k x (else|elsif|rescue|when)|^\h*[[{]|[[{]$ j _ + try %( exec -draft k x (else|elsif|rescue|when)|^\h*[[{]|[[{]$ j ) # indent after (begin|case|class|def|do|if|loop|module|unless|until|while) keywords and add _end_ keyword try %{ exec -draft k x (begin|case|class|def|do|(? x y p j a end k } - ' -" + ) +) # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾