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
1 changed files with 1 additions and 1 deletions

View File

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