summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-04 09:48:55 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-04 16:16:46 (GMT)
commit2030779f5c222b96489ad458225931b167687307 (patch)
tree79fc8ca7afaffbb9952cf12eeef69c50f3d76eaa /tools/linguist
parent21f0f9157802f011bb02b96fd79057084039ae2b (diff)
downloadQt-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.cpp2
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;