projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
EOF syntax error
[m6w6/ext-psi]
/
src
/
context.c
diff --git
a/src/context.c
b/src/context.c
index 05d5aacbfc3d1d041957d88b72df257ee35e47f5..cbcfbc6b1d6ecd6e32ab0a2a099cf557cad958f1 100644
(file)
--- a/
src/context.c
+++ b/
src/context.c
@@
-960,9
+960,13
@@
void PSI_ContextBuild(PSI_Context *C, const char *paths)
continue;
}
continue;
}
- while (
-1 !=
PSI_ParserScan(&P)) {
+ while (
0 <
PSI_ParserScan(&P)) {
PSI_ParserParse(&P, PSI_TokenAlloc(&P));
PSI_ParserParse(&P, PSI_TokenAlloc(&P));
- };
+ if (P.num == PSI_T_EOF) {
+ break;
+ }
+ }
+
PSI_ParserParse(&P, NULL);
PSI_ContextValidate(C, &P);
PSI_ParserDtor(&P);
PSI_ParserParse(&P, NULL);
PSI_ContextValidate(C, &P);
PSI_ParserDtor(&P);