Skip to content

Commit 90cb27b

Browse files
committed
Fix #256
Support int that follow on symbeg in IRB
1 parent b705aa7 commit 90cb27b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/irb/ruby-lex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def check_string_literal(tokens)
715715
start_token << t
716716
end_type << :on_regexp_end
717717
when :on_symbeg
718-
acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw}
718+
acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw on_int}
719719
if (i + 1) < tokens.size and acceptable_single_tokens.all?{ |st| tokens[i + 1][1] != st }
720720
start_token << t
721721
end_type << :on_tstring_end

0 commit comments

Comments
 (0)