diff options
| author | Alexander Momchilov <alexander.momchilov@shopify.com> | 2024-08-30 15:31:39 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-25 19:43:47 +0000 |
| commit | fa7fef270df8b406970711ea5bddcb2e8e85001e (patch) | |
| tree | 1f15aeb4161f228a47725799b86d0ea6dd137304 | |
| parent | be331c0eeb5bbc39aa9fe28c8f26357f454e2e2c (diff) | |
[ruby/prism] Fix rendering of type overview docs
https://github.com/ruby/prism/commit/d42bc309cc
| -rw-r--r-- | prism/templates/include/prism/ast.h.erb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/prism/templates/include/prism/ast.h.erb b/prism/templates/include/prism/ast.h.erb index 7cce34f54e..b63ce31fb5 100644 --- a/prism/templates/include/prism/ast.h.erb +++ b/prism/templates/include/prism/ast.h.erb @@ -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 -%> * @@ -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| -%> /** |
