projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
14c98ca
)
EOF syntax error
author
Michael Wallner
<mike@php.net>
Fri, 27 Nov 2015 14:28:18 +0000
(15:28 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 27 Nov 2015 14:28:18 +0000
(15:28 +0100)
src/parser_proc.y
patch
|
blob
|
history
diff --git
a/src/parser_proc.y
b/src/parser_proc.y
index ac7c1172838d586b46a4a516bfc932456e58475c..c18cec917ba8a9dcc7d22fa864c9369550617bd2 100644
(file)
--- a/
src/parser_proc.y
+++ b/
src/parser_proc.y
@@
-15,7
+15,7
@@
%extra_argument {PSI_Parser *P}
/* TOKEN is defined inside syntax_error */
%syntax_error {
- if (TOKEN) {
+ if (TOKEN
&& TOKEN->type != PSI_T_EOF
) {
PSI_ParserSyntaxError(P, P->psi.file.fn, P->line, "Unexpected token '%s'", TOKEN->text);
} else {
PSI_ParserSyntaxError(P, P->psi.file.fn, P->line, "Unexpected end of input");