History log of /PHP-Parser/test/code/prettyPrinter/comments.test (Results 1 – 5 of 5)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9b46dffb 11-Sep-2022 Nikita Popov

Fix formatting preservation for alternative elseif/else syntax

Test taken from PR #797.


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1, v3.1.0, v3.0.6, v3.0.5, v3.0.4, v3.0.3, v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2, v3.0.0beta1, v2.1.1, v3.0.0alpha1, v2.1.0
# 5a6e7dd4 19-Apr-2016 Nikita Popov

Avoid superfluous newline when printing Nops


Revision tags: v2.0.1, v2.0.0, v2.0.0beta1
# 7eac2cfd 02-Oct-2015 Nikita Popov

Introduce Nop statement to collect dangling comments

A Nop statement will be inserted into statement lists if there are
any trailing comments in the list (which would otherwise not be

Introduce Nop statement to collect dangling comments

A Nop statement will be inserted into statement lists if there are
any trailing comments in the list (which would otherwise not be
associated with any node).

The pretty printer output currently still contains a superfluous
newline.

show more ...


Revision tags: v1.4.1, v2.0.0alpha1, v1.4.0, v1.3.0, v1.2.2, v1.2.1, v1.2.0, v1.1.0, v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1, v0.9.4
# 81d20bf1 15-Jan-2013 nikic

Pretty print namespaces in semicolon-style if possible


Revision tags: v0.9.3, v0.9.2
# 81e53ce0 11-May-2012 nikic

Insert comments when pretty printing

This changset also adds unit tests for Comments and adds a way to test the
pretty printer.