glsl/glcpp: Rename HASH token to HASH_TOKEN
This is in preparation for the planned addition of a new <HASH> start condition to the lexer. Both start conditions and token types are, of course, in the same default C namespace, so a start condition and a token type with the same name will collide. (And unfortunately, they are both apparently implemented as equivalent numeric types so the collision is undetected at compile time and simply leads to unpredictable behavior at run time.) Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
@@ -344,7 +344,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
|
||||
|
||||
{HASH} {
|
||||
yyextra->space_tokens = 0;
|
||||
RETURN_TOKEN (HASH);
|
||||
RETURN_TOKEN (HASH_TOKEN);
|
||||
}
|
||||
|
||||
{DECIMAL_INTEGER} {
|
||||
|
||||
Reference in New Issue
Block a user