Skip to content

Commit cc9bcad

Browse files
kddnewtonmatzbot
authored andcommitted
[ruby/prism] Make old compilers happy
ruby/prism@145a67d1c3
1 parent fff7a3c commit cc9bcad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

prism/extension.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ parser_comments(pm_parser_t *parser, VALUE source) {
331331
case PM_COMMENT___END__:
332332
type = rb_cPrismDATAComment;
333333
break;
334+
default:
335+
type = rb_cPrismInlineComment;
336+
break;
334337
}
335338

336339
VALUE comment_argv[] = { rb_class_new_instance(3, location_argv, rb_cPrismLocation) };

0 commit comments

Comments
 (0)