Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

sgrep - LEXER:unrecognised symbol, in st_start_heredoc rule:{ #22

Closed
joes opened this Issue Feb 22, 2012 · 3 comments

Comments

Projects
None yet
2 participants

joes commented Feb 22, 2012

This is in a php-file without namespaces and that validates fine with 'php -l'

(ONCE) LEXER:unrecognised symbol, in st_start_heredoc rule:{
warning: parsing problem in ./include/rplAsync/rplAsyncJavascriptProxy.php

Does this mean that sgrep doesn't support heredoc syntax?

Contributor

aryx commented Mar 13, 2012

I just pushed a fix.
Thx for the bug report.

@aryx aryx closed this Mar 13, 2012

joes commented Mar 14, 2012

I was looking at the file tests/php/parsing/heredoc3.php in 4692d1a and did not see the token T_DOLLAR_OPEN_CURLY_BRACES ('${') there. Would pfff still choke on that kind of token within heredocs or was this covered by your recent commit too?

Contributor

aryx commented Mar 16, 2012

I've added a new test. Yes it handles ${.
930721c
Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment