Better fault tolerance.

Rules with an error will now also be caught (in lenient mode) if there is
no newline or semicolon till the next closing brace.

Also, there is now a test for the bug reported in #63
Merge commit '8eba275'

* commit '8eba275':
  Better fault tolerance.
Don’t use print_r

It sometimes conflicts with output buffering