Fix a regression introduced in latest bug fixes and fix some indentation and comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2694 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
abf984d690
commit
bdac40d369
@ -1,3 +1,10 @@
|
||||
2008-06-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* tagmanager/python.c:
|
||||
Fix a regression introduced in latest bug fixes and fix some
|
||||
indentation and comments.
|
||||
|
||||
|
||||
2008-06-11 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* tagmanager/python.c:
|
||||
@ -8,7 +15,7 @@
|
||||
Create Makefiles for src, tagmanager and scintilla sub directories
|
||||
to be able to run make from within Geany.
|
||||
* scintilla/scintilla-marshal.c:
|
||||
Updated generated marschal code for Scintilla.
|
||||
Updated generated marshal code for Scintilla.
|
||||
|
||||
|
||||
2008-06-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -389,12 +389,12 @@ static char const *find_triple_start(char const *string, char const **which)
|
||||
{
|
||||
if (*cp == '"' || *cp == '\'')
|
||||
{
|
||||
if (strcmp(cp, doubletriple) == 0)
|
||||
if (strncmp(cp, doubletriple, 3) == 0)
|
||||
{
|
||||
*which = doubletriple;
|
||||
return cp;
|
||||
}
|
||||
if (strcmp(cp, singletriple) == 0)
|
||||
if (strncmp(cp, singletriple, 3) == 0)
|
||||
{
|
||||
*which = singletriple;
|
||||
return cp;
|
||||
@ -435,7 +435,7 @@ static const char *findVariable(const char *line)
|
||||
const char *cp, *sp, *eq, *start;
|
||||
|
||||
cp = strstr(line, "=");
|
||||
if (! cp)
|
||||
if (!cp)
|
||||
return NULL;
|
||||
eq = cp + 1;
|
||||
while (*eq)
|
||||
@ -480,8 +480,8 @@ static void findPythonTags (void)
|
||||
while ((line = (const char *) fileReadLine ()) != NULL)
|
||||
{
|
||||
const char *cp = line;
|
||||
char *longstring;
|
||||
const char *keyword, *variable;
|
||||
char const *longstring;
|
||||
char const *keyword, *variable;
|
||||
int indent;
|
||||
|
||||
cp = skipSpace (cp);
|
||||
@ -489,7 +489,7 @@ static void findPythonTags (void)
|
||||
if (*cp == '\0') /* skip blank line */
|
||||
continue;
|
||||
|
||||
/* Skip comment if we are not inside a multi-line string */
|
||||
/* Skip comment if we are not inside a multi-line string. */
|
||||
if (*cp == '#' && !longStringLiteral)
|
||||
continue;
|
||||
|
||||
@ -522,14 +522,10 @@ static void findPythonTags (void)
|
||||
longstring = find_triple_start(cp, &longStringLiteral);
|
||||
if (longstring)
|
||||
{
|
||||
/* Note: For our purposes, the line just ends at the first long
|
||||
* string. I.e. we don't parse for any tags in the rest of the
|
||||
* line, but we do look for the string ending of course.
|
||||
*/
|
||||
*longstring = '\0';
|
||||
|
||||
longstring += 3;
|
||||
find_triple_end(longstring, &longStringLiteral);
|
||||
/* We don't parse for any tags in the rest of the line. */
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Deal with def and class keywords. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user