union has working comment and user defined type
1. Replaced COMMENT with COMMENT_NO_NL as COMMENT requires a newline at the end which clashes with the indentation rule.
2. replace type_spec with NAME as type_spec allows sized types (e.g. int(0..5)) which is not allowed in the original grammar.
@@ -62,7 +62,7 @@ alias -> "!alias" NAME attribs? ":" COMMENT*
alias_line -> annotation* (collection_type | type_spec);
union -> "!union" NAME attribs? ":"
( SHORTCUT |
- %!Indented(COMMENT | type_spec | annotation | SHORTCUT )
+ %!Indented(COMMENT_NO_NL | user_defined_type=NAME | annotation | SHORTCUT )
);
collection_type -> ("set"|"sequence") "of" type_spec;
