Fix highlighting issues after escaped quotation marks

The test for issue #21 did not fail while it should have, so I made the test more strict and fixed the issue.

I also added a simple test case for issue #174 (expected-result failed, so still needs a fix).

-- update: see last commit, think I found a good fix for #174.