Don't split between empty braces
commit78ecc4aa78933cf00cafca81325e2e9cf65f7c24
authorJake Bailey <jakebailey@fb.com>
Fri, 5 May 2017 04:47:48 +0000 (4 21:47 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 5 May 2017 04:57:47 +0000 (4 21:57 -0700)
treebd5dfc57a328e1f0a51eb6743b30c0b96de3bf24
parentb5abb9649e059a344dc206a8b2c175f4d1ff6a64
Don't split between empty braces

Summary: Previously, we'd add splits inside a braced_item even when the item was missing, unlike what we do for other delimited lists (like argument lists). We should only split here when there is an item.

Reviewed By: eshrews

Differential Revision: D5005984

fbshipit-source-id: f775127a507a59a93c6e36f3cc46510d51551603
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/test/hackfmt/tests/append_long_string.php [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/append_long_string.php.exp [new file with mode: 0644]