Add --force-hh-syntax flag
commit0df0691880c515cce2720a8c62e93d55f25ca6d8
authorKevin Viratyosin <viratyosin@fb.com>
Thu, 26 Jul 2018 23:22:32 +0000 (26 16:22 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 26 Jul 2018 23:29:59 +0000 (26 16:29 -0700)
tree83e5d3069a9e957e32ef84a0bfb3caf1f48e9246
parent7ff143bc9857e6c6e842d44312ce542afca2f652
Add --force-hh-syntax flag

Summary: This diff adds a flag to `hh_parse` to tell the lexer to use hh_syntax, allowing hack only keywords like `varray` to parse in `<?php` files. This flag will allow HackAst to use hh_parse to parse `<?php` files in www like HHVM does.

Reviewed By: oulgen

Differential Revision: D9022051

fbshipit-source-id: 23a5038e1c0e343efd782724f5c636c1a83f4d7f
hphp/hack/src/full_fidelity_parse.ml