Skip to content

Commit

Permalink
[ruby/prism] Fix rendering of type overview docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov authored and matzbot committed Sep 25, 2024
1 parent be331c0 commit fa7fef2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions prism/templates/include/prism/ast.h.erb
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ typedef struct pm_node {
*<%= line %>
<%- end -%>
*
* Type: <%= node.type %>
<%- if (node_flags = node.flags) -%>
* Flags:
* Type: ::<%= node.type %>
<% if (node_flags = node.flags) %>
* Applicable flags (#pm_<%= node_flags.human %>):
<%- node_flags.values.each do |value| -%>
* PM_<%= node_flags.human.upcase %>_<%= value.name %>
* * ::PM_<%= node_flags.human.upcase %>_<%= value.name %>
<%- end -%>
<%- end -%>
*
Expand All @@ -170,6 +170,7 @@ typedef struct pm_node {
typedef struct pm_<%= node.human %> {
/** The embedded base node. */
pm_node_t base;

<%- node.fields.each do |field| -%>

/**
Expand Down

0 comments on commit fa7fef2

Please sign in to comment.