diff options
author | Nathan Froyd <[email protected]> | 2023-10-03 16:07:50 -0400 |
---|---|---|
committer | git <[email protected]> | 2023-10-04 14:22:15 +0000 |
commit | cf2049cb559913e061f48b416b7dc52e7d394b01 (patch) | |
tree | 79d252a0171d4d6bffea7adff8d277bf317a18f6 | |
parent | cd0b8d2441ac5cdd38116a3586389656151611ac (diff) |
[ruby/prism] give flag enums a non-`typedef`'d name
https://github.com/ruby/prism/commit/630af5cb0e
-rw-r--r-- | prism/templates/include/prism/ast.h.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/templates/include/prism/ast.h.erb b/prism/templates/include/prism/ast.h.erb index 92236f6b44..31c2fb2e0d 100644 --- a/prism/templates/include/prism/ast.h.erb +++ b/prism/templates/include/prism/ast.h.erb @@ -104,7 +104,7 @@ typedef struct pm_<%= node.human %> { <%- flags.each do |flag| -%> // <%= flag.name %> -typedef enum { +typedef enum pm_<%= flag.human %> { <%- flag.values.each.with_index(Prism::COMMON_FLAGS) do |value, index| -%> PM_<%= flag.human.upcase %>_<%= value.name %> = 1 << <%= index %>, <%- end -%> |