diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 09:48:55 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 16:16:46 (GMT) |
commit | 2030779f5c222b96489ad458225931b167687307 (patch) | |
tree | 79fc8ca7afaffbb9952cf12eeef69c50f3d76eaa /tools/linguist | |
parent | 21f0f9157802f011bb02b96fd79057084039ae2b (diff) | |
download | Qt-2030779f5c222b96489ad458225931b167687307.zip Qt-2030779f5c222b96489ad458225931b167687307.tar.gz Qt-2030779f5c222b96489ad458225931b167687307.tar.bz2 |
don't break on unterminated C comments
Diffstat (limited to 'tools/linguist')
-rw-r--r-- | tools/linguist/lupdate/cpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp index beaf246..fb95a95 100644 --- a/tools/linguist/lupdate/cpp.cpp +++ b/tools/linguist/lupdate/cpp.cpp @@ -788,7 +788,7 @@ uint CppParser::getToken() if (yyCh == EOF) { qWarning("%s:%d: Unterminated C++ comment\n", qPrintable(yyFileName), yyLineNo); - return Tok_Comment; + break; } *ptr++ = yyCh; |