This prevents the closing delimiter from being swalled up in the comment. Closes #4880.
% pandoc -t latex $x=y%comment$ ^D \(x=y%comment \)