From a71736deb7fc2dae0c3478c9a3d06a49f1cc6506 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 Mar 2024 23:12:00 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 7 +++++++ src/Builder4/Editor.vala | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index bec680ae8..473d47605 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -76,8 +76,15 @@ "\t\t\tcase \"private\":", "\t\t\tcase \"protected\":", "\t\t\tcase \"async\":", + "\t\t\tcase \"{\":", + "\t\t\tcase \"}\":", + "\t\t\tcase \"(\":", + "\t\t\tcase \")\":", + "\t\t\t", "\t\t\t\tstr += sig[i];", "\t\t\t\tcontinue;", + "\t\t\t\t", + "\t\t\t\t", "\t\t\tdefault:", "\t", "\t\t\t\tstr += (\"\" + ", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 2ca6f2dc5..0d3173a3e 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -558,8 +558,15 @@ public class Editor : Object case "private": case "protected": case "async": + case "{": + case "}": + case "(": + case ")": + str += sig[i]; continue; + + default: str += ("" + -- 2.39.2