### Describe the bug Hack documentation says you can use underscores as [digit](https://docs.hhvm.com/hack/source-code-fundamentals/literals#integer-literals) separators but the grammar errors if you use them. ### Requirements * [x] I've read and understood the [Contributing guidelines](../CONTRIBUTING.md) and have done my best effort to follow them. * [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct). * [x] I've searched for any related issues and avoided creating a duplicate issue. ### To Reproduce Use an integer with underscore digit separators ```hack $a = 123_456; ``` Which currently parses as the following (notice the **ERROR**) ```scm (expression_statement (binary_expression left: (variable) (ERROR (integer)) right: (qualified_identifier (identifier)))) ``` ### Expected behavior I expect usage of the underscore digit separator to parse properly.
Describe the bug
Hack documentation says you can use underscores as digit separators but the grammar errors if you use them.
Requirements
To Reproduce
Use an integer with underscore digit separators
Which currently parses as the following (notice the ERROR)
(expression_statement (binary_expression left: (variable) (ERROR (integer)) right: (qualified_identifier (identifier))))Expected behavior
I expect usage of the underscore digit separator to parse properly.