Use the usual TM parser for all langTypes except pascal, php, latex when loading global tags files.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1461 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-04-18 15:20:11 +00:00
parent 14001ddc8f
commit 4e0dd7fcca

View File

@ -354,10 +354,17 @@ TMTag *tm_tag_new_from_file(TMSourceFile *file, FILE *fp, gint mode)
TAG_NEW(tag);
if (mode == 0 || mode == 1)
result = tm_tag_init_from_file(tag, file, fp);
else
result = tm_tag_init_from_file_alt(tag, file, fp);
switch (mode)
{
case 4: // pascal
case 6: // php
case 8: // latex
result = tm_tag_init_from_file_alt(tag, file, fp);
break;
default:
result = tm_tag_init_from_file(tag, file, fp);
}
if (! result)
{