Bash-style for loop syntax support
commitfe5d3dca73a5923a05ac55032cabf193260b064b
authorVassil Mladenov <vmladenov@fb.com>
Tue, 13 Feb 2018 01:37:44 +0000 (12 17:37 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 13 Feb 2018 17:43:04 +0000 (13 09:43 -0800)
treed6b3d5e8d972d2b069cc75ea54f6820d17719025
parent57cf791a9c67922ea6da5cf1ab6690a2bbedd666
Bash-style for loop syntax support

Summary:
FFP correctly parses
```
for ($i=0;$i<4;$i++):
  echo $i
endfor;
```

Differential Revision: D6933201

fbshipit-source-id: 7c0b2af70ce7391185baa5dc7aadeb12986a6502
20 files changed:
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_pretty_printer.ml
hphp/hack/src/parser/full_fidelity_statement_parser.ml
hphp/hack/src/parser/full_fidelity_statement_parser_type.ml
hphp/hack/src/parser/full_fidelity_syntax.ml
hphp/hack/src/parser/full_fidelity_syntax_kind.ml
hphp/hack/src/parser/full_fidelity_syntax_type.ml
hphp/hack/src/parser/full_fidelity_validated_syntax.ml
hphp/hack/src/parser/js/full_fidelity_editable.js
hphp/hack/src/parser/js/full_fidelity_schema.json
hphp/hack/src/parser/parserSig.ml
hphp/hack/src/parser/php/full_fidelity_editable.php
hphp/hack/src/parser/schema/schema_definition.ml
hphp/hack/src/parser/smart_constructors/full_fidelity_syntax_smart_constructors.ml
hphp/hack/src/parser/smart_constructors/smartConstructors.ml
hphp/hack/src/parser/syntax_sig.ml
hphp/hack/test/hackfmt/tests/alternate_for_loop.php [new file with mode: 0644]
hphp/hack/test/hackfmt/tests/alternate_for_loop.php.exp [new file with mode: 0644]
hphp/test/hhcodegen_failing_tests_php_spec