We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cedcc commit b77e76fCopy full SHA for b77e76f
parsers/basic.c
@@ -100,13 +100,23 @@ static int match_keyword (const char *p, KeyWord const *kw)
100
vString *name;
101
size_t i;
102
int j;
103
+ const char *old_p;
104
for (i = 0; i < strlen (kw->token); i++)
105
{
106
if (tolower (p[i]) != kw->token[i])
107
return 0;
108
}
- name = vStringNew ();
109
p += i;
110
+
111
+ old_p = p;
112
+ while (isspace (*p))
113
+ p++;
114
115
+ /* create tags only if there is some space between the keyword and the identifier */
116
+ if (old_p == p)
117
+ return 0;
118
119
+ name = vStringNew ();
120
for (j = 0; j < 1 + kw->skip; j++)
121
122
p = extract_name (p, name);
0 commit comments