mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
Revert "Revert "glsl: skip stringification in preprocessor if in unreachable branch""
This reverts commit2fd6f06faa. Take back28a3731e3f("glsl: skip stringification in preprocessor if in unreachable branch") afterb9fe8ff23d("glsl: fixer lexer for unreachable defines") has made it to the branch. Signed-off-by: Andres Gomez <agomez@igalia.com>
This commit is contained in:
parent
8a471fe120
commit
4c977744ba
1 changed files with 4 additions and 2 deletions
|
|
@ -434,8 +434,10 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
|
|||
|
||||
/* This will catch any non-directive garbage after a HASH */
|
||||
<HASH>{NONSPACE} {
|
||||
BEGIN INITIAL;
|
||||
RETURN_TOKEN (GARBAGE);
|
||||
if (!parser->skipping) {
|
||||
BEGIN INITIAL;
|
||||
RETURN_TOKEN (GARBAGE);
|
||||
}
|
||||
}
|
||||
|
||||
/* An identifier immediately followed by '(' */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue