Parse files only once instead of three times.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@868 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-10-06 22:29:04 +00:00
parent 82b94170ca
commit 75510506cd

View File

@ -121,7 +121,9 @@ gboolean tm_source_file_parse(TMSourceFile *source_file)
if (source_file->lang < 0 || ! LanguageTable [source_file->lang]->enabled)
return status;
while ((TRUE == status) && (passCount < 3))
//while ((TRUE == status) && (passCount < 3))
// parse files only once instead of three times until we know why
while ((TRUE == status) && (passCount < 1))
{
if (source_file->work_object.tags_array)
tm_tags_array_free(source_file->work_object.tags_array, FALSE);
@ -135,7 +137,7 @@ gboolean tm_source_file_parse(TMSourceFile *source_file)
}
else
{
g_warning("Unable to open %s", file_name);
g_warning("%s: Unable to open %s", __func__, file_name);
return FALSE;
}
++ passCount;