src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 8 May 2024 15:49:22 +0000 (23:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 8 May 2024 15:49:22 +0000 (23:49 +0800)
src/Builder4/Editor.vala

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

index 5d50cd4..324a9ca 100644 (file)
               "\t}",
               ""
              ],
+             "| bool XhighlightErrors" : [
+              "( Gee.HashMap<int,string> validate_res) {",
+              "         ",
+              "\tthis.error_line = validate_res.size;",
+              "",
+              "\tif (this.error_line < 1) {",
+              "\t\treturn true;",
+              "\t}",
+              "\tvar tlines = this.el.get_line_count ();",
+              "\tGtk.TextIter iter;",
+              "\tvar valiter = validate_res.map_iterator();",
+              "\twhile (valiter.next()) {",
+              "",
+              "\t//        print(\"get inter\\n\");",
+              "\t\tvar eline = valiter.get_key();",
+              "\t\tif (eline > tlines) {",
+              "\t\t\tcontinue;",
+              "\t\t}",
+              "\t\tthis.el.get_iter_at_line( out iter, eline);",
+              "\t\t//print(\"mark line\\n\");",
+              "\t\tthis.el.create_source_mark(valiter.get_value(), \"ERR\", iter);",
+              "\t}   ",
+              "\treturn false;",
+              "}"
+             ],
              "| bool checkSyntax" : [
               " () {",
               " ",
               "}",
               ""
              ],
-             "| bool highlightErrors" : [
-              "( Gee.HashMap<int,string> validate_res) {",
-              "         ",
-              "\tthis.error_line = validate_res.size;",
-              "",
-              "\tif (this.error_line < 1) {",
-              "\t\treturn true;",
-              "\t}",
-              "\tvar tlines = this.el.get_line_count ();",
-              "\tGtk.TextIter iter;",
-              "\tvar valiter = validate_res.map_iterator();",
-              "\twhile (valiter.next()) {",
-              "",
-              "\t//        print(\"get inter\\n\");",
-              "\t\tvar eline = valiter.get_key();",
-              "\t\tif (eline > tlines) {",
-              "\t\t\tcontinue;",
-              "\t\t}",
-              "\t\tthis.el.get_iter_at_line( out iter, eline);",
-              "\t\t//print(\"mark line\\n\");",
-              "\t\tthis.el.create_source_mark(valiter.get_value(), \"ERR\", iter);",
-              "\t}   ",
-              "\treturn false;",
-              "}"
-             ],
              "| string toString" : [
               "  () {",
               "    ",
index d2aa4c4..b9525f2 100644 (file)
@@ -1262,7 +1262,7 @@ public class Editor : Object
                     
                    return true; // at present allow saving - even if it's invalid..
                }
-               public bool highlightErrors ( Gee.HashMap<int,string> validate_res) {
+               public bool XhighlightErrors ( Gee.HashMap<int,string> validate_res) {
                         
                        this.error_line = validate_res.size;