diff --git a/rc/javascript.kak b/rc/javascript.kak index 6ace8dad..690ff396 100644 --- a/rc/javascript.kak +++ b/rc/javascript.kak @@ -46,15 +46,15 @@ def -hidden _javascript_filter_around_selections %{ } } -def -hidden _javascript_indent_on_char " - eval -draft -itersel %_ +def -hidden _javascript_indent_on_char %< + eval -draft -itersel %< # align closer token to its opener when alone on a line try %/ exec -draft ^\h+[]}]$ m s \`|.\' 1 / - _ -" + > +> -def -hidden _javascript_indent_on_new_line " - eval -draft -itersel ' +def -hidden _javascript_indent_on_new_line %< + eval -draft -itersel %< # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -63,8 +63,8 @@ def -hidden _javascript_indent_on_new_line " try %{ exec -draft k x s ^\h*\K#\h* y j p } # indent after lines beginning / ending with opener token try %_ exec -draft k x ^\h*[[{]|[[{]$ j _ - ' -" + > +> # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾