Commit 159c90f0 authored by dcw's avatar dcw
Browse files

added comment-to-end-of-line

parent 040abd8e
......@@ -55,6 +55,10 @@ static void white_space()
for(;;) {
c = getc(lexfile);
if( c == '/' || c == '#' ) /* comment to end of line */
{
while( (c=getc(lexfile)) != EOF && c != '\n' );
}
if( c == EOF ) break;
if( c == '\n' ) lineno++;
if( c != ' ' && c != '\t' && c != '\n' ) break;
......
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