TonyXT / google-code-prettify

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

PHP preg break hightlight #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<?php
...
preg_replace('/((?<!\?>)\n)[\s]+/m', '\1', $buffer)
... no highlight fron >)\... to here.
?>

Original issue reported on code.google.com by blockn102@gmail.com on 24 Dec 2008 at 1:56

GoogleCodeExporter commented 8 years ago
Probably because ?> occurs inside the regex.  Is this valid PHP?

Original comment by mikesamuel@gmail.com on 14 May 2009 at 6:20

GoogleCodeExporter commented 8 years ago
Yes. String literals may contain any sequence of characters (strings are 
surrounded
by citation marks, ", or apostrophes, ')

Original comment by goo...@burgestrand.se on 29 Mar 2010 at 6:53