diff options
author | Carl Worth <[email protected]> | 2010-07-20 13:16:17 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-20 17:01:11 -0700 |
commit | 17f9beb6c313b41ca08984add7b76ecb84a7339e (patch) | |
tree | aaea6e59801dc4f1fd7ffed1fb7a3cb35d9412ed /src/glsl/glcpp/glcpp-lex.l | |
parent | 61ebc01dfecda0963a184e881ea966e2d92f0519 (diff) |
glcpp: Support #if(expression) with no intervening space.
And add a test case to ensure that this works.
Diffstat (limited to 'src/glsl/glcpp/glcpp-lex.l')
-rw-r--r-- | src/glsl/glcpp/glcpp-lex.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l index 53e85556c16..a81c8f92c14 100644 --- a/src/glsl/glcpp/glcpp-lex.l +++ b/src/glsl/glcpp/glcpp-lex.l @@ -99,7 +99,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]? return HASH_IFNDEF; } -{HASH}if{HSPACE}/.*\n { +{HASH}if{HSPACE}*/[^_a-zA-Z0-9].*\n { yyextra->lexing_if = 1; yyextra->space_tokens = 0; return HASH_IF; |