Backport fix for possible infinite loop from CTags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5200 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
a24d6dca6a
commit
87ddff9707
@ -7,6 +7,8 @@
|
||||
found.
|
||||
Remove checks for HAVE_REGCOMP in Geany source (not TagManager) -
|
||||
regex support is required.
|
||||
* tagmanager/make.c:
|
||||
Backport fix for possible infinite loop from CTags.
|
||||
|
||||
|
||||
2010-08-24 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -157,7 +157,7 @@ static void skipToMatch (const char *const pair)
|
||||
++matchLevel;
|
||||
else if (c == end)
|
||||
--matchLevel;
|
||||
else if (c == '\n')
|
||||
else if (c == '\n' || c == EOF)
|
||||
break;
|
||||
}
|
||||
if (c == EOF)
|
||||
@ -272,7 +272,7 @@ static void findMakeTags (void)
|
||||
|
||||
extern parserDefinition* MakefileParser (void)
|
||||
{
|
||||
static const char *const patterns [] = { "[Mm]akefile", NULL };
|
||||
static const char *const patterns [] = { "[Mm]akefile", "GNUmakefile", NULL };
|
||||
static const char *const extensions [] = { "mak", "mk", NULL };
|
||||
parserDefinition* const def = parserNew ("Make");
|
||||
def->kinds = MakeKinds;
|
||||
|
Loading…
x
Reference in New Issue
Block a user