From a412d597b61210ea4f030e2d6230827eb94e2216 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Sat, 5 Jan 2008 19:08:12 +0000 Subject: [PATCH] Fix tinygettext problems with multi-line comments at end of file SVN-Revision: 5250 --- src/tinygettext/tinygettext.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tinygettext/tinygettext.cpp b/src/tinygettext/tinygettext.cpp index d22ae2a6f..2946f7f32 100644 --- a/src/tinygettext/tinygettext.cpp +++ b/src/tinygettext/tinygettext.cpp @@ -709,6 +709,9 @@ public: { state = SKIP_COMMENT; } + else if (c == '\n') + { + } else { // Read a new token @@ -736,6 +739,7 @@ public: in.unget(); state = READ_KEYWORD; add_token(token); + token = Token(); break; } } @@ -774,6 +778,7 @@ public: } } add_token(token); + token = Token(); } }; -- 2.11.0