diff --git a/exec/syncjslint.js b/exec/syncjslint.js
index e7ff5c4747cdd5f9feec0fc21db0a283831820c8..8e0c4e9eb568b3cc7ecf350babbe860e58f631c8 100644
--- a/exec/syncjslint.js
+++ b/exec/syncjslint.js
@@ -5065,13 +5065,13 @@ JSLINT = function () {
 function SYNCJSLINT_LOADFILE(lines, index, pos, fname, paths)
 {
 	var i;
-	var tmp_fname;
+	var tmp;
 
 	if(!file_exists(fname)) {
-		tmp_fname=file_getname(fname);
+		tmp=file_getname(fname);
 		for(i=0; i<paths.length; i++) {
-			if(file_exists(paths[i]+tmp_fname)) {
-				fname=paths[i]+tmp_fname;
+			if(file_exists(paths[i]+tmp)) {
+				fname=paths[i]+tmp;
 				break;
 			}
 		}
@@ -5088,8 +5088,11 @@ function SYNCJSLINT_LOADFILE(lines, index, pos, fname, paths)
 			lines.splice(pos+i, 0, all_lines[i]);
 			index.splice(pos+i, 0, fname+":"+(i+1));
 
+			tmp=all_lines[i];
+			tmp=tmp.replace(/\/\*.*?\*\//g,'');
+			tmp=tmp.replace(/\/\/.*^/,'');
 			/* TODO: smart string parsing... */
-			if((m=all_lines[i].match(/^\s*load\(['"](.*)['"]\)/))!=null) {
+			if((m=tmp.match(/^\s*load\(['"](.*)['"]\)/))!=null) {
 				pos+=SYNCJSLINT_LOADFILE(lines,index,pos+i,m[1],paths);
 			}
 		}