src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:39:55 +0000 (13:39 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:39:55 +0000 (13:39 +0800)
src/Project/Gtk.vala

index 98d02d0..3e521b6 100644 (file)
@@ -220,10 +220,13 @@ namespace Project {
                                        ret.add( fn);
                                        continue;
                                }
-                               
+                               // not a c file...
+                               if (Regex.match_simple("\\.c$", fn)) {
+                                       continue;
+                               }
                                // got a file that is not 
                                
-                               vv = fn;
+                               var vv = fn;
                                try {
                                        vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
                                } catch (Error e) {