-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken isFirstTokenOnLine when T_WHITESPACE #6
Comments
PS: confirmation needed. |
I believe we are not using this flag a lot; so, yes could be. On Sun, May 11, 2014 at 12:13 PM, Márcio Almada [email protected]:
|
Could you check what "getLine()" outputs for these tokens? It's probably On Sun, May 11, 2014 at 12:37 PM, Márcio Almada [email protected]:
|
I made more complex tests before trying to isolate the problem. AFAIK, the line number is always right even with multiline source involved. Added line number check to the failing test. |
Hi, I just noticed that bug occurs ONLY when Some suggestions:
public function setCode($code, $ignore_whitespace=false, $ignore_comments=false)
{ Or maybe any other idea? I could send a pull request if you agree. 😄 |
I'd suggest just adding an exception for now. On Sun, May 11, 2014 at 11:51 PM, Márcio Almada [email protected]:
|
Made a pull request. Still think that modifying Thanks you for the support. Cheers! |
Bug occurs with streams using the following configuration:
Now every T_WHITESPACE token in the stream returns false positive for:
As a side effect, methods that depend on token->previousToken are failing too:
The text was updated successfully, but these errors were encountered: