Skip to content

Commit

Permalink
[ruby/prism] Add missing context names to the switch in debug_context
Browse files Browse the repository at this point in the history
Now, `PM_DEBUG_LOGGING` can be available.

ruby/prism@569ffacb5f
  • Loading branch information
makenowjust authored and matzbot committed Dec 1, 2023
1 parent 417d700 commit ffeec10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prism/prism.c
Expand Up @@ -40,6 +40,7 @@ debug_context(pm_context_t context) {
case PM_CONTEXT_DEF_PARAMS: return "DEF_PARAMS";
case PM_CONTEXT_DEFAULT_PARAMS: return "DEFAULT_PARAMS";
case PM_CONTEXT_ENSURE: return "ENSURE";
case PM_CONTEXT_ENSURE_DEF: return "ENSURE_DEF";
case PM_CONTEXT_ELSE: return "ELSE";
case PM_CONTEXT_ELSIF: return "ELSIF";
case PM_CONTEXT_EMBEXPR: return "EMBEXPR";
Expand All @@ -56,6 +57,8 @@ debug_context(pm_context_t context) {
case PM_CONTEXT_PREEXE: return "PREEXE";
case PM_CONTEXT_RESCUE: return "RESCUE";
case PM_CONTEXT_RESCUE_ELSE: return "RESCUE_ELSE";
case PM_CONTEXT_RESCUE_ELSE_DEF: return "RESCUE_ELSE_DEF";
case PM_CONTEXT_RESCUE_DEF: return "RESCUE_DEF";
case PM_CONTEXT_SCLASS: return "SCLASS";
case PM_CONTEXT_UNLESS: return "UNLESS";
case PM_CONTEXT_UNTIL: return "UNTIL";
Expand Down

0 comments on commit ffeec10

Please sign in to comment.