Added
-
Add support for VS Code region markers
Comments like
#region Twig
aren't converted to// region Twig
anymore;pretty-php
recognises them as region markers and leaves them alone:Input: <?php return function (Foo $foo) { $foo->bar(Baz::class); #region Comment /* Other comments */ //are still normalised #as usual }; #endregion Output: <?php return function (Foo $foo) { $foo->bar(Baz::class); #region Comment /* * Other comments */ // are still normalised // as usual }; #endregion