Revision: 1461 http://svn.sourceforge.net/geany/?rev=1461&view=rev Author: ntrel Date: 2007-04-18 08:20:11 -0700 (Wed, 18 Apr 2007)
Log Message: ----------- Use the usual TM parser for all langTypes except pascal, php, latex when loading global tags files.
Modified Paths: -------------- trunk/tagmanager/tm_tag.c
Modified: trunk/tagmanager/tm_tag.c =================================================================== --- trunk/tagmanager/tm_tag.c 2007-04-18 12:12:51 UTC (rev 1460) +++ trunk/tagmanager/tm_tag.c 2007-04-18 15:20:11 UTC (rev 1461) @@ -354,11 +354,18 @@
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) { TAG_FREE(tag);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.