shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
106 stars 36 forks source link

Preprocessor hangs up on unterminated comment #15

Closed grzegorz8 closed 9 years ago

grzegorz8 commented 10 years ago

Preprocessor hangs up when the /* */ comment is not closed.

The simplest possible test case:

/*<EOF>
shevek commented 9 years ago

Thank you. I will ALSO fix this. (Lazy Shevek asks:) Do you have a junit case?

I hit something related in another compiler, so this one is well on the cards. :-) Glad you spotted it.

shevek commented 9 years ago

[master 09e9518] Fix #15. 3 files changed, 26 insertions(+), 5 deletions(-)