X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Ftextparser.cpp;fp=source%2Ftextparser.cpp;h=afa78b99927ddb67c581f47484b9cefc1c567a7e;hp=225425b4e23166eea05fe0697f16974c327ab1c0;hb=6e0e2c78766de3ae57449866b74e111a2af893cf;hpb=7b6b79e9fcbadd043c9e34f4bb16540d1411b115 diff --git a/source/textparser.cpp b/source/textparser.cpp index 225425b..afa78b9 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;