Fix issue with highlighting multi-line tokens in libphutil

Summary: Broken by D4873, which accidentally discarded newlines.

Test Plan: Added unit test; made it pass.

Reviewers: vrana

Reviewed By: vrana

CC: aran

Differential Revision: https://secure.phabricator.com/D4941