mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
Fix incorrect parsing of comments.
Parsing /*..*/ style comments would stop at the first *.
This commit is contained in:
parent
cf5a3d805b
commit
cdbb2ad030
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue