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 475e250 commit 6aa3f13Copy full SHA for 6aa3f13
parsers/vhdl.c
@@ -350,9 +350,8 @@ static bool isIdentifierMatch (const tokenInfo * const token,
350
const char *name)
351
{
352
return (bool) (isType (token, TOKEN_IDENTIFIER) &&
353
- strcasecmp (vStringValue (token->string), name) == 0);
354
- /* XXX this is copy/paste from eiffel.c and slightly modified */
355
- /* shouldn't we use strNcasecmp ? */
+ strncasecmp (vStringValue (token->string), name,
+ vStringLength (token->string)) == 0);
356
}
357
358
static bool isSemicolonOrKeywordOrIdent (const tokenInfo * const token,
0 commit comments