summaryrefslogtreecommitdiff
diff options
-rw-r--r--prism/templates/include/prism/ast.h.erb2
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 -%>