allow ? as first character of ID in lexer
commit5a529f2fbc44bbc1d78d77ad9bea5620415e203b
authorNick Benton <pnb@fb.com>
Sat, 27 Jan 2018 13:43:12 +0000 (27 05:43 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sat, 27 Jan 2018 13:45:55 +0000 (27 05:45 -0800)
tree32c66ea0d38f01a6137d75509e225ab8651bac3f
parent2d542798db9b6e95c13db25b5cee70efa5e90d5c
allow ? as first character of ID in lexer

Summary:
hhas files can apparently have question marks at the start of
arguments, as in AssertRATL $argc ?Int. We extend the lexer to allow ?
as the first character of an ID token. This is far too generous, as ID
is used in various other places where ? certainly shouldn't be
allowed, but I think it's OK for parsing well-formed inputs.

Reviewed By: vladima, gregory-nisbet

Differential Revision: D6821726

fbshipit-source-id: 13a3d523c2e5b80ba19bec4abb9287dee8e0529b
hphp/hack/src/hhbc/hhas_lexer.mll