GNOME Bugzilla – Bug 323998
perl "here doc" not highlighted
Last modified: 2014-02-15 12:53:14 UTC
Version details: 1.4.2 "Here doc" constructs in perl are not highlighted: my $var = << "EOT"; some plain text here EOT The text on the lines belonging to the here-doc should be highlighted as quoted text (double-quoted in this case, single-quoted in other cases).
May you please provide a patch?
I have looked more deeply at the problem you reported. It is not possibile to fix it with the current hl engine. We will fix it with the new hl engine.
Just for note, same problem exists with PHP and maybe (not tested) for Shell.
As a test case for the new hl engine: I've noticed this piece of code I wrote is not highlighted correctly by vim. Maybe we could do better ? ;-) print <<EOF and exit if $help; Usage: git-send-bugzilla [options] <since>[..<until>] EOF Thus here, the lines 2 and 3 should be highlighted as a string, as <<EOF, but "and exit if $help" should be highlighted as Perl code. Vim highlights it as a string.
There is a patch for that attached to bug #453638
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.