From: Christoph Sommer Date: Sat, 5 Jan 2008 19:08:12 +0000 (+0000) Subject: Fix tinygettext problems with multi-line comments at end of file X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a412d597b61210ea4f030e2d6230827eb94e2216;p=supertux.git Fix tinygettext problems with multi-line comments at end of file SVN-Revision: 5250 --- 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(); } };