Community
Participate
Working Groups
Unmatched #elif causes the parser to prematurely exit due to an EmptyStackException exception. e.g. #if CONST #endif #elif CONST
Created attachment 13279 [details] test case
These defects will be addressed once we move to the new Scanner implementation we are working on in the HEAD.
This needs some investigation in the 2.0.1 timeframe. Scanner2 skips over the rest of the file, which is effectively, like terminating the parse. Andrew, pls investigate ... if it is too big of a fix, push it off to Future.
I added some lightweight branch state checking, so now when we encounter an unmatached preprocessor branch directive, we flag it with a problem and ignore it.