Revision: 4125 http://geany.svn.sourceforge.net/geany/?rev=4125&view=rev Author: eht16 Date: 2009-08-25 21:33:04 +0000 (Tue, 25 Aug 2009)
Log Message: ----------- Don't parse comments after import statements and other tags (closes #2838938, patch by Huandari Lopez, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/tagmanager/python.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-08-25 21:23:14 UTC (rev 4124) +++ trunk/ChangeLog 2009-08-25 21:33:04 UTC (rev 4125) @@ -5,6 +5,9 @@ whitespace before the 'function' keyword to ignore some false positives like function tags inside comments (patch by Harold Aling, thanks). + * tagmanager/python.c: + Don't parse comments after import statements and other tags + (closes #2838938, patch by Huandari Lopez, thanks).
2009-08-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/tagmanager/python.c =================================================================== --- trunk/tagmanager/python.c 2009-08-25 21:23:14 UTC (rev 4124) +++ trunk/tagmanager/python.c 2009-08-25 21:33:04 UTC (rev 4125) @@ -166,7 +166,7 @@ { for (; *cp; cp++) { - if (*cp == '"' || *cp == ''') + if (*cp == '"' || *cp == ''' || *cp == '#') { cp = skipString(cp); if (!*cp) break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.