anchor.diff:      ;
   
   declarations
  -    :   (versiondefine | basicdefine | enumdefine | structdefine)*
  +    :   (versiondefine | basicdefine | enumdefine | structdefine | bitflagsdefine)*
       ;
   
   versiondefine
  
positive.code:         struct_add*
          TAG_END_STRUCT SHORTDOC*
          -> ^(CLASSDEF ^(DOC $doc) $name struct_add*);
  
  struct_add
  @init {
  
negative.code:     :   { !tagMode }?=> '</option>'
      ;
  
  TAG_START_BITFLAGS
      :   { !tagMode }?=> '<bitflags' { tagMode = true; }
      ;
  
  TAG_END_BITFLAGS
      :   { !tagMode }?=> '</bitflags>'
      ;
  
  TAG_START_STRUCT
      :   { !tagMode }?=> ('<' ('compound'|'niobject'|'struct')) { tagMode = true; }
      ;
  