ARB prog lexer: Fix lexer to eat both DOS and Unix line endings

This commit is contained in:
Ian Romanick
2009-08-22 19:19:40 -07:00
parent 7a05a4c65c
commit 9b70c33e73
2 changed files with 285 additions and 281 deletions

View File

@@ -468,7 +468,7 @@ ARRAYSHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require
yylloc->last_column = 1;
yylloc->position++;
}
[ \t]+ /* eat whitespace */ ;
[ \t\r]+ /* eat whitespace */ ;
#.*$ /* eat comments */ ;
. { return yytext[0]; }
%%