mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +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
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue