diff options
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -306,15 +306,15 @@ find_keyword(struct grecs_keyword *cursect, grecs_node_t *node) | |||
306 | char const *msg; | 306 | char const *msg; |
307 | 307 | ||
308 | for (kwp = cursect->kwd; kwp->ident; kwp++) { | 308 | for (kwp = cursect->kwd; kwp->ident; kwp++) { |
309 | if (strcmp(kwp->ident, node->ident) == 0) { | 309 | if (strcmp(kwp->ident, node->ident) == 0) { |
310 | found = kwp; | 310 | found = kwp; |
311 | if (kwp->callback | 311 | if (kwp->callback |
312 | || node->down | 312 | || (node->down |
313 | ? kwp->type == grecs_type_section | 313 | ? kwp->type == grecs_type_section |
314 | : kwp->type != grecs_type_section) | 314 | : kwp->type != grecs_type_section)) |
315 | return kwp; | 315 | return kwp; |
316 | } | 316 | } |
317 | } | 317 | } |
318 | if (found) { | 318 | if (found) { |
319 | if (found->type == grecs_type_section) { | 319 | if (found->type == grecs_type_section) { |
320 | msg = N_("section keyword used as a scalar"); | 320 | msg = N_("section keyword used as a scalar"); |