glcpp: Remove trailing contexts from #if rules.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Mar 2011 17:52:36 +0000 (09:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Mar 2011 18:42:37 +0000 (10:42 -0800)
These are now unnecessary.

src/glsl/glcpp/glcpp-lex.l

index 2c9eda68d6ee710564a83ff6de9759e2fe41cc85..68e44eb7902134cfe89ea221229832c71c1552b0 100644 (file)
@@ -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;
 }