neuland / pug4j

a pug implementation written in Java (formerly known as jade)
MIT License
61 stars 12 forks source link

Throw parsing exception when expression parsing throws error #5

Closed astubbs closed 3 years ago

astubbs commented 3 years ago

I discovered a type of invalid syntax which causes an out of bound exception in the parser, instead of a nice error with line number reference etc. This fixes it nicely enough for me (although character reference and line column number would be nicer).

Not sure how is should do the test though.

Closes #6

chbloemer commented 3 years ago

Has been implemented with new errorhandling. No need to merge this anymore.