From f6249055348902f1e92cb59961b869f5aa15d017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 12 Feb 2018 21:12:40 +0100 Subject: [PATCH] tools/compare.cs: minor tweaks --- tools/compare.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/compare.cs b/tools/compare.cs index fee6bedbc..a85641ec8 100644 --- a/tools/compare.cs +++ b/tools/compare.cs @@ -58,7 +58,8 @@ namespace difftool string f = errorLoc.Substring(1, errorLoc.LastIndexOf(':')-1); int errorLine = Int32.Parse(errorLoc.Substring(1 + errorLoc.LastIndexOf(':'))); string[] lines = System.IO.File.ReadAllLines(path + f); - string[] keywords = { "void", "bool", "char", "short", "int", "long", "class", "struct", "enum", "for", "if", "while", "using", "namespace", "unsigned", "signed" }; + string[] keywords = { "void", "bool", "char", "short", "int", "long", "class", "struct", "enum", "for", "if", "while", "using", "namespace", "unsigned", "signed", "private", "protected", "public", + "static", "const" }; System.IO.StreamWriter file = new System.IO.StreamWriter(path + filename); file.Write("
" + textToHtml(w) + "\n");
             int linenr = 1;
@@ -129,10 +130,15 @@ namespace difftool
             string path;
             if (Directory.Exists("/home/danielm/shared/testing"))
                 path = "/home/danielm/shared/testing/";
+            else if (Directory.Exists("/home/danielm/testing"))
+                path = "/home/danielm/testing/";
             else if (Directory.Exists(@"c:\Users\danielm.evidente\testing"))
                 path = @"c:\Users\danielm.evidente\testing\";
             else
+            {
+                Console.WriteLine("Directory testing not found");
                 return;
+            }
 
             string[] old = System.IO.File.ReadAllLines(path + "1.82.txt");
             string[] head = System.IO.File.ReadAllLines(path + "head.txt");