Commit 0a695da7 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(xbm_scan): Allow C-style comments.

parent 7044c058
......@@ -6329,6 +6329,8 @@ xbm_scan (s, end, sval, ival)
int *ival;
{
int c;
loop:
/* Skip white space. */
while (*s < end && (c = *(*s)++, isspace (c)))
......@@ -6391,6 +6393,18 @@ xbm_scan (s, end, sval, ival)
*s = *s - 1;
c = XBM_TK_IDENT;
}
else if (c == '/' && **s == '*')
{
/* C-style comment. */
++*s;
while (**s && (**s != '*' || *(*s + 1) != '/'))
++*s;
if (**s)
{
*s += 2;
goto loop;
}
}
return c;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment