You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2022. It is now read-only.
However it works if we place the function in a php file like
<hh
function test() {
$a = 1;
}
I see that indent expression for hack is GetHackIndent, which uses GetPhpIndent under the hood. However, according to :h php-indent, php indenting only works if PHP syntax is active. Maybe it's time to create an index expression dedicated to Hack?
Steps to reproduce:
Action:
gg=Gto indent whole fileExpected Result: file should be indented properly
Actual:
However it works if we place the function in a php file like
I see that indent expression for hack is
GetHackIndent, which usesGetPhpIndentunder the hood. However, according to:h php-indent, php indenting only works if PHP syntax is active. Maybe it's time to create an index expression dedicated to Hack?