Changeset 1663 for abnfparser/bap/main.c


Ignore:
Timestamp:
May 23, 2012, 7:20:45 AM (7 years ago)
Author:
julian.reschke@…
Message:

Fix RFC2616-abnf list rule expansion problem in bap (abnfparser) (see #358)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abnfparser/bap/main.c

    r454 r1663  
    469469      if (o->u.e.islist) {
    470470        if (o->u.e.repetition.lo == 0) {
    471           local_printf("[ ( \",\" / ");
     471          local_printf("[ ( \",\" / ( ");
    472472          printobj_r(o->u.e.e.group, o->type, tflag);
    473           local_printf(" ) *( OWS \",\" [ OWS ");
     473          local_printf(" ) ) *( OWS \",\" [ OWS ( ");
    474474          printobj_r(o->u.e.e.group, o->type, tflag);
    475           local_printf(" ] ) ]");
     475          local_printf(" ) ] ) ]");
    476476        }
    477477        else if (o->u.e.repetition.lo == 1) {
    478           local_printf("*( \",\" OWS ) ");
     478          local_printf("*( \",\" OWS ) ( ");
    479479          printobj_r(o->u.e.e.group, o->type, tflag);
    480           local_printf(" *( OWS \",\" [ OWS ");
     480          local_printf(" ) *( OWS \",\" [ OWS ( ");
    481481          printobj_r(o->u.e.e.group, o->type, tflag);
    482           local_printf(" ] )");
     482          local_printf(" ) ] )");
    483483        }
    484484        else {
Note: See TracChangeset for help on using the changeset viewer.