Fix tinygettext problems with multi-line comments at end of file
authorChristoph Sommer <mail@christoph-sommer.de>
Sat, 5 Jan 2008 19:08:12 +0000 (19:08 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Sat, 5 Jan 2008 19:08:12 +0000 (19:08 +0000)
SVN-Revision: 5250

src/tinygettext/tinygettext.cpp

index d22ae2a..2946f7f 100644 (file)
@@ -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();
   }
 };