v0.5.1 - Fix XHP formatting and add tests
commit54e505c4732b3de3f7065af0ca15d5412092d0b0
authorEric Shrewsberry <eshrews@fb.com>
Thu, 2 Mar 2017 09:32:35 +0000 (2 01:32 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 2 Mar 2017 09:56:07 +0000 (2 01:56 -0800)
tree841a91b9c92b1f8310f4c155dc269841421b2d00
parent129fb165a66f62d5f8e88e5408f16431146120e0
v0.5.1 - Fix XHP formatting and add tests

Summary: XHP formatting has some challenges since trivia takes on some different properties. This solution works for most cases, but won't fix xhp bodies of string literals that cause overflow.

Differential Revision: D4602352

fbshipit-source-id: a5179282f77ec660fd9656080c01d53763604ea6
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/test/hackfmt/tests/xhp_1.php [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_1.php.exp [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_1.flags [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_1.php [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_1.php.exp [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_2.flags [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_2.php [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/xhp_partial_2.php.exp [new file with mode: 0644]