code: function maybe_type() {
    skip_horiz_white();
    if (look(/\{/)) {
      var tdf = typedef();
      current_tag["type"] = tdf["type"];
      current_tag["optional"] = tdf["optional"] ? true : false;
    }
  }
docs: matches {type} if possible and sets it on @current_tag Also checks for {optionality=} in type definition.