Skip to content

Commit d881b6b

Browse files
committed
Add EXPR_ARG to condition of postfix if
1 parent 4eb4651 commit d881b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/ripper_state_lex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def on_kw(tok, data)
101101
@continue = true
102102
@in_fname = true
103103
when 'if', 'unless', 'while', 'until'
104-
if ((EXPR_END | EXPR_ENDARG | EXPR_ENDFN | EXPR_CMDARG) & @lex_state) != 0 # postfix if
104+
if ((EXPR_END | EXPR_ENDARG | EXPR_ENDFN | EXPR_ARG | EXPR_CMDARG) & @lex_state) != 0 # postfix if
105105
@lex_state = EXPR_BEG | EXPR_LABEL
106106
else
107107
@lex_state = EXPR_BEG

0 commit comments

Comments
 (0)