Tiny code tweaks to DocView.

Signed-off-by: Grant Skinner <info@gskinner.com>
Fix issues with unmatched $_ escaping in SubstLexer.

Signed-off-by: Grant Skinner <info@gskinner.com>