diff --git a/cmLex.c b/cmLex.c index 7267493..5f89e7c 100644 --- a/cmLex.c +++ b/cmLex.c @@ -323,19 +323,30 @@ unsigned _cmLexIdentMatcher( cmLex* p, const cmChar_t* cp, unsigned cn, const cm unsigned _cmLexQStrMatcher( cmLex* p, const cmChar_t* cp, unsigned cn, const cmChar_t* keyStr ) { - cmChar_t qStr[]="\""; - unsigned n = strlen(qStr); - if( strncmp(qStr,cp,n) == 0 ) + bool escFl = false; + unsigned i = 0; + if( cp[i] != '"' ) + return 0; + + for(i=1; i