neuland / pug4j

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

Bad syntax in expression causes index out of bounds exception #6

Closed astubbs closed 3 years ago

astubbs commented 3 years ago

For example, trying to parse:

h1 #{variable'}

Throws index out of bounds exception.

Fixed by #5

chbloemer commented 3 years ago

Just release 2.0.0-alpha4. I ported some of the error handling from pug.js over to java. You should now have some nicer error output. Don't mind that I don't need to merge your PR anymore.

astubbs commented 3 years ago

Awesome! thanks.