From 0c3e4cfbc062876fde85e0217ab918826868e48b Mon Sep 17 00:00:00 2001 From: mitsubosh Date: Fri, 1 Jun 2018 23:16:58 +0900 Subject: [PATCH] add square brackets to auto-indent --- lib/rib/extra/autoindent.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rib/extra/autoindent.rb b/lib/rib/extra/autoindent.rb index cb9fb8a..1ceac44 100644 --- a/lib/rib/extra/autoindent.rb +++ b/lib/rib/extra/autoindent.rb @@ -54,6 +54,7 @@ module Rib; module Autoindent # begin /do( *\|.*\|)?$/ => /^(end)\b/ , /\{( *\|.*\|)?$/ => /^(\})\B/ , + /\[$/ => /^(\])\B/ , # those are too hard to deal with, so we use syntax error to double check # what about this then? # v = if true