tylerlong / google-code-prettify

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

PHP preg break hightlight #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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 9 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 9 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