From 34e068893f19cdceda73b8af6ed90f10d271c332 Mon Sep 17 00:00:00 2001 From: shylinux Date: Tue, 28 Feb 2023 21:46:07 +0800 Subject: [PATCH] opt some --- plugin/local/code/inner.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index fa83a526..76ff0762 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -509,6 +509,11 @@ Volcanos(chat.ONEXPORT, {list: [mdb.COUNT, mdb.TYPE, nfs.FILE, nfs.LINE, ice.BAC } else if (_indent == 4 && ls[1] == ice.DF) { ls[0] && push(block+ice.PT+ls[0]+ice.DF+(index+1)) } + } else if (can.db.parse == nfs.SH) { + if (can.base.endWith(text, "() {")) { + var ls = can.core.Split(text, "\t (){") + push(ls[0]+ice.DF+(index+1)) + } } else if (can.db.parse == nfs.GO) { var ls = can.core.Split(text, "\t *", "({:})") if (_indent == 0) { switch (ls[0]) {