* xmlParseCRNG_exceptNameClass: * @ctxt: a compact RNG parser context * * Parse exceptNameClass of the RELAX NG Compact Syntax Appendix A * * Returns 0 in case of success and -1 in case of error */
| 660 | * Returns 0 in case of success and -1 in case of error |
| 661 | */ |
| 662 | static int |
| 663 | xmlParseCRNG_exceptNameClass(xmlCRelaxNGParserCtxtPtr ctxt ATTRIBUTE_UNUSED) |
| 664 | { |
| 665 | tokenPtr token; |
| 666 | xmlNodePtr insert = ctxt->insert, cur; |
| 667 | |
| 668 | token = xmlParseCRNGGetToken(ctxt, 1); |
| 669 | if ((token->toktype == CRNG_OP) && |
| 670 | (token->token[0] == '-') && (token->token[1] == 0)) { |
| 671 | xmlParseCRNGDropTokens(ctxt, 1); |
| 672 | cur = xmlNewNode(NULL, BAD_CAST "except"); |
| 673 | if (cur == NULL) CRNG_MEM_ERROR0(); |
| 674 | if (ctxt->insert != NULL) |
| 675 | xmlAddChild(ctxt->insert, cur); |
| 676 | ctxt->insert = cur; |
| 677 | xmlParseCRNG_nameClass(ctxt); |
| 678 | } |
| 679 | ctxt->insert = insert; |
| 680 | return(0); |
| 681 | } |
| 682 | |
| 683 | /** |
| 684 | * xmlParseCRNG_innerNameClass: |
no test coverage detected