Add a better Hack grammar support #4544
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
see #4466
Description
Checklist:
Old: https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=text.html.php&grammar_format=json&grammar_url=&grammar_text=&code_source=from-text&code_url=&code=namespace+GitHub%5CLinguist%3B%0D%0A%0D%0Ause+namespace+HH%5CLib%5CSecureRandom%3B%0D%0A%0D%0Aasync+function+foo%28%29%3A+Awaitable%3C%3Fstring%3E+%7B%0D%0A++%24bar+%3D+SecureRandom%5Cint%280%2C+10%29%3B%0D%0A++if+%28%24bar+%3E+8%29+%7B%0D%0A++++return+%27baz%27%3B%0D%0A++%7D%0D%0A%0D%0A++return+null%3B%0D%0A%7D
New: https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_format=json&grammar_url=https%3A%2F%2Fgithub.com%2Fslackhq%2Fvscode-hack%2Fblob%2Fmaster%2Fsyntaxes%2Fhack.json&grammar_text=&code_source=from-text&code_url=&code=namespace+GitHub%5CLinguist%3B%0D%0A%0D%0Ause+namespace+HH%5CLib%5CSecureRandom%3B%0D%0A%0D%0Aasync+function+foo%28%29%3A+Awaitable%3C%3Fstring%3E+%7B%0D%0A++%24bar+%3D+SecureRandom%5Cint%280%2C+10%29%3B%0D%0A++if+%28%24bar+%3E+8%29+%7B%0D%0A++++return+%27baz%27%3B%0D%0A++%7D%0D%0A%0D%0A++return+null%3B%0D%0A%7D