diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -300,27 +300,27 @@ static struct grecs_keyword fake = { static struct grecs_keyword * find_keyword(struct grecs_keyword *cursect, grecs_node_t *node) { if (cursect && cursect->kwd && cursect != &fake) { struct grecs_keyword *found = NULL, *kwp; char const *msg; for (kwp = cursect->kwd; kwp->ident; kwp++) { if (strcmp(kwp->ident, node->ident) == 0) { found = kwp; if (kwp->callback - || node->down + || (node->down ? kwp->type == grecs_type_section - : kwp->type != grecs_type_section) + : kwp->type != grecs_type_section)) return kwp; } } if (found) { if (found->type == grecs_type_section) { msg = N_("section keyword used as a scalar"); } else { msg = N_("scalar keyword used as a section"); } } else { msg = N_("unknown keyword"); } |