diff options
Diffstat (limited to 'glcpp')
| -rw-r--r-- | glcpp/glcpp-lex.l | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index 06bde3f195..a04e0fabdf 100644 --- a/glcpp/glcpp-lex.l +++ b/glcpp/glcpp-lex.l @@ -70,6 +70,16 @@ NON_STARS_THEN_STARS	[^*]*[*]+  	return OTHER;  } +{HASH}ifdef/.*\n { +	yyextra->space_tokens = 0; +	return HASH_IFDEF; +} + +{HASH}ifndef/.*\n { +	yyextra->space_tokens = 0; +	return HASH_IFNDEF; +} +  {HASH}if/.*\n {  	yyextra->lexing_if = 1;  	yyextra->space_tokens = 0;  | 
