Fix incorrect parsing of comments.

Parsing /*..*/ style comments would stop at the first *.
This commit is contained in:
Ozkan Sezer 2013-01-16 10:31:02 +09:00 committed by Bill Currie
parent cf5a3d805b
commit cdbb2ad030

View file

@ -118,7 +118,7 @@ skipwhite:
// skip /*..*/ comments
if (data[0] == '/' && data[1] == '*') {
data += 2; // skip over the leading /*
while (data[0] && (data[0] != '*' && data[1] != '/'))
while (data[0] && !(data[0] == '*' && data[1] == '/'))
data++;
if (data[0])
data +=2; // skip over the trailing */