1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Don't mark out define / undef as special. Remove empty alternative to avoid endless looping

This commit is contained in:
Kevin Glynn 2010-11-04 14:32:07 +01:00
parent 9cc8008697
commit ffa3bc436a

View File

@ -1070,8 +1070,8 @@ ENUM : 'enum';
IF: 'if';
ELIF: 'elif';
ENDIF: 'endif';
DEFINE: 'define';
UNDEF: 'undef';
//DEFINE: 'define';
//UNDEF: 'undef';
SEMI: ';';
RPAREN: ')';
@ -1145,7 +1145,7 @@ Pragma:
'#' TS* ('pragma' | 'region' | 'endregion' | 'line' | 'warning' | 'error') ~('\n'|'\r')* ('\r' | '\n')+
{ Skip(); } ;
PREPROCESSOR_DIRECTIVE:
| PP_CONDITIONAL;
PP_CONDITIONAL;
fragment
PP_CONDITIONAL:
(IF_TOKEN