Terminate parsing for :enddoc: at top-level

This allows users to skip over code that rdoc cannot understand like
minitest/unit.rb in minitest 5.0.x.

Fixes #213