mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +03:00
Fix already-existing bug in json.kak
When a closing brace or bracket is typed, it should automatically match indentation with it's opener. Because of an unescaped ']' literal the regexp didn't work.
This commit is contained in:
parent
2044f250ae
commit
f958a318c1
@ -49,7 +49,7 @@ define-command -hidden json-trim-indent %{
|
||||
define-command -hidden json-indent-on-char %<
|
||||
evaluate-commands -draft -itersel %<
|
||||
# align closer token to its opener when alone on a line
|
||||
try %< execute-keys -draft <a-h> <a-k> ^\h+[]}]$ <ret> m s \A|.\z <ret> 1<a-&> >
|
||||
try %< execute-keys -draft <a-h> <a-k> ^\h+[\]}]$ <ret> m s \A|.\z <ret> 1<a-&> >
|
||||
>
|
||||
>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user