vcs: Fix pygments highlighting of code blocks with $ and '
Pygments highlighting breaks when a code block ends with a lone $ on a
line or when it has an unmatched '.
\documentclass{article}\begin{document}This is my first LaTeX document. \end{document}