You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turned out to be unrelated to #333. It was caused by the tokenizer assuming one level of ternary operators. I changed it to a stack and it is tokenizing correctly now.
In the following piece of code
the last colon (
$token[21]
) will be tokenized asT_COLON
. I wasexpecting
T_INLINE_ELSE
instead. Is this intentional?I've also found this issue #333, which is maybe related.
Tested with the latest 1.x and 2.x.
Tokenized code:
The text was updated successfully, but these errors were encountered: