src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:12:00 +0000 (23:12 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:12:00 +0000 (23:12 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index bec680a..473d476 100644 (file)
             "\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 += (\"<span underline=\\\"single\\\" color=\\\"blue\\\" >\" + ",
index 2ca6f2d..0d3173a 100644 (file)
@@ -558,8 +558,15 @@ public class Editor : Object
                                        case "private":
                                        case "protected":
                                        case "async":
+                                       case "{":
+                                       case "}":
+                                       case "(":
+                                       case ")":
+                                       
                                                str += sig[i];
                                                continue;
+                                               
+                                               
                                        default:
                        
                                                str += ("<span underline=\"single\" color=\"blue\" >" +