ARB prog lexer: Fix lexer to eat both DOS and Unix line endings
[mesa.git] / src / mesa / shader / program_lexer.l
index 05978311ec68138e9fb9605e0e3cc49560d29e1e..c50c7c57399c18c36511e5c89afdad5562c33ed0 100644 (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]; }
 %%