mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
glcpp: Don't include newlines as part of #version-passthrough.
Fixes glcpp/tests/064-version.c.
This commit is contained in:
parent
214632f527
commit
03ee33809f
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
|
|||
|
||||
/* glcpp doesn't handle #extension, #version, or #pragma directives.
|
||||
* Simply pass them through to the main compiler's lexer/parser. */
|
||||
{HASH}(extension|version|pragma).*\n {
|
||||
{HASH}(extension|version|pragma)[^\n]+ {
|
||||
yylval->str = xtalloc_strdup (yyextra, yytext);
|
||||
yylineno++;
|
||||
yycolumn = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue