mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-15 14:56:00 -06:00
fix item completion
This commit is contained in:
@@ -232,6 +232,10 @@ void PgfAbstractParser::complete(Item *item, const PgfTextSpot &spot, bool bind)
|
|||||||
case PgfConcrLin::tag: {
|
case PgfConcrLin::tag: {
|
||||||
auto lin = ref<PgfConcrLin>::untagged(item->rule->container);
|
auto lin = ref<PgfConcrLin>::untagged(item->rule->container);
|
||||||
|
|
||||||
|
if (strcmp(lin->name.text, "ComplSlash") == 0) {
|
||||||
|
printf("complete ComplSlash\n");
|
||||||
|
}
|
||||||
|
|
||||||
size_t max_value = 1;
|
size_t max_value = 1;
|
||||||
|
|
||||||
size_t n_inst_vars = 0;
|
size_t n_inst_vars = 0;
|
||||||
@@ -352,10 +356,7 @@ void PgfAbstractParser::complete(Item *item, const PgfTextSpot &spot, bool bind)
|
|||||||
size_t lin_idx = it.first;
|
size_t lin_idx = it.first;
|
||||||
Cont *cont = it.second;
|
Cont *cont = it.second;
|
||||||
if (cont != NULL) {
|
if (cont != NULL) {
|
||||||
size_t n_items = cont->suspended.size();
|
td_predict(next,cont,prod,lin_idx);
|
||||||
for (size_t i = 0; i < n_items; i++) {
|
|
||||||
td_predict(next,cont,prod,lin_idx);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
next = next->next;
|
next = next->next;
|
||||||
|
|||||||
Reference in New Issue
Block a user