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 has been 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?
The text was updated successfully, but these errors were encountered:
I can confirm this issue. I have the same problem whenever I create any new code block in an existing file. For example when I add a new if block, it doesn't get properly indented.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce:
Action:
gg=G
to 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 usesGetPhpIndent
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?The text was updated successfully, but these errors were encountered: