TonyXT / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
0 stars 0 forks source link

PHP heredoc notation not supported #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The highlighter breaks on string specified using the heredoc notation:

http://us2.php.net/manual/en/language.types.string.php#language.types.string.syn
tax.heredoc

Original issue reported on code.google.com by xir...@gmail.com on 5 Jun 2008 at 12:42

GoogleCodeExporter commented 8 years ago
Would be useful for Perl and Ruby as well.

Original comment by mikesamuel@gmail.com on 5 Jul 2008 at 4:01

GoogleCodeExporter commented 8 years ago
Issue support:3763 has been merged into this issue.

Original comment by jacobly@google.com on 22 Mar 2010 at 4:36

GoogleCodeExporter commented 8 years ago
Detailed description from the merged bug:

Upload an php sourcefile like this one:
<?php

$test = <<<eol
i'm a string...
eol;

$a = 1; //this looks like it's part of the $test string
?>

The String $test is supposed to end at the eol;.

----
Attached screenshot for 
https://gerrit.wikimedia.org/r/#/c/15451/1/Babel.class.php spotted by Niklas 
Laxström (https://bugzilla.wikimedia.org/show_bug.cgi?id=38335 ).

Original comment by nemow...@gmail.com on 19 Feb 2013 at 11:14

Attachments: