diff options
author | Kenneth Graunke <[email protected]> | 2011-03-03 09:52:36 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-03-03 10:42:37 -0800 |
commit | 09e1bebc25140eecafa0c3eacefcf63010ce4f10 (patch) | |
tree | 8c4914220cb80ffb04cf225663d4860a197fe9be /src/glsl/glcpp/glcpp-lex.l | |
parent | f20656e9446b9acde55b9dd41a2b47d7d5b7a56a (diff) |
glcpp: Remove trailing contexts from #if rules.
These are now unnecessary.
Diffstat (limited to 'src/glsl/glcpp/glcpp-lex.l')
-rw-r--r-- | src/glsl/glcpp/glcpp-lex.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l index 2c9eda68d6e..68e44eb7902 100644 --- a/src/glsl/glcpp/glcpp-lex.l +++ b/src/glsl/glcpp/glcpp-lex.l @@ -149,36 +149,36 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]? } <SKIP,INITIAL>{ -{HASH}ifdef/.*\n { +{HASH}ifdef { yyextra->lexing_if = 1; yyextra->space_tokens = 0; return HASH_IFDEF; } -{HASH}ifndef/.*\n { +{HASH}ifndef { yyextra->lexing_if = 1; yyextra->space_tokens = 0; return HASH_IFNDEF; } -{HASH}if/[^_a-zA-Z0-9].*\n { +{HASH}if/[^_a-zA-Z0-9] { yyextra->lexing_if = 1; yyextra->space_tokens = 0; return HASH_IF; } -{HASH}elif/.*\n { +{HASH}elif { yyextra->lexing_if = 1; yyextra->space_tokens = 0; return HASH_ELIF; } -{HASH}else/.*\n { +{HASH}else { yyextra->space_tokens = 0; return HASH_ELSE; } -{HASH}endif/.*\n { +{HASH}endif { yyextra->space_tokens = 0; return HASH_ENDIF; } |