Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Alternate if syntax support
Summary: Support for statements of the style ``` if ($v < 0): ++$v; elseif ($v < 1): ++$v; else: ++$v; endif; ``` in the full fidelity parser. Reviewed By: jamesjwu Differential Revision: D6965574 fbshipit-source-id: ea416b5835bbca40cdde7de5ab57b530ec378e54
- Loading branch information
Showing
with
849 additions
and 748 deletions.
- +23 −23 hphp/hack/src/hackfmt/hack_format.ml
- +24 −11 hphp/hack/src/parser/full_fidelity_ast.ml
- +6 −0 hphp/hack/src/parser/full_fidelity_parser_helpers.ml
- +27 −26 hphp/hack/src/parser/full_fidelity_pretty_printer.ml
- +96 −15 hphp/hack/src/parser/full_fidelity_statement_parser.ml
- +237 −237 hphp/hack/src/parser/full_fidelity_syntax.ml
- +6 −6 hphp/hack/src/parser/full_fidelity_syntax_kind.ml
- +50 −50 hphp/hack/src/parser/full_fidelity_syntax_type.ml
- +69 −69 hphp/hack/src/parser/full_fidelity_validated_syntax.ml
- +110 −110 hphp/hack/src/parser/js/full_fidelity_editable.js
- +14 −14 hphp/hack/src/parser/js/full_fidelity_schema.json
- +3 −3 hphp/hack/src/parser/parserSig.ml
- +119 −119 hphp/hack/src/parser/php/full_fidelity_editable.php
- +17 −17 hphp/hack/src/parser/schema/schema_definition.ml
- +3 −3 hphp/hack/src/parser/smart_constructors/full_fidelity_syntax_smart_constructors.ml
- +6 −6 hphp/hack/src/parser/smart_constructors/smartConstructors.ml
- +9 −9 hphp/hack/src/parser/smart_constructors/smartConstructorsWrappers.ml
- +30 −30 hphp/hack/src/parser/syntax_sig.ml
Oops, something went wrong.