Fix missing symbols for variables when an equal sign is used in a comment on the same line as the variable declaration.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3795 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-05-17 15:45:54 +00:00
parent 7879c0cdd7
commit 7631a8487e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2009-05-17 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* tagmanager/python.c:
Fix missing symbols for variables when an equal sign is used
in a comment on the same line as the variable declaration.
2009-05-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keyfile.c:

View File

@ -403,8 +403,8 @@ static const char *findVariable(const char *line)
{
if (*eq == '=')
return NULL; /* ignore '==' operator and 'x=5,y=6)' function lines */
if (*eq == '(')
break; /* allow 'x = func(b=2,y=2,' lines */
if (*eq == '(' || *eq == '#')
break; /* allow 'x = func(b=2,y=2,' lines and comments at the end of line */
eq++;
}