X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextparser.cpp;h=05521a90456a617e2e82b1fb664225d512a22af4;hb=29fafaa2c570b0cf92f41eeb534cfb65a841a892;hp=9bed08ac9e0ea5a154208b24cda76dc75925267b;hpb=eec12aaf350ef69b79d149adbc3585cf784552ad;p=libs%2Fdatafile.git diff --git a/source/textparser.cpp b/source/textparser.cpp index 9bed08a..05521a9 100644 --- a/source/textparser.cpp +++ b/source/textparser.cpp @@ -124,9 +124,9 @@ Token TextParser::parse_token() c = in.get(); int next = in.peek(); - if(c=='/' && next=='/') + if(c=='/' && next=='/' && !comment) comment = 1; - else if(c=='/' && next=='*') + else if(c=='/' && next=='*' && !comment) comment = 2; else if(c=='\n' && comment==1) comment = 0;