Skip to content

Commit

Permalink
Fix #256
Browse files Browse the repository at this point in the history
Support int that follow on symbeg in IRB
  • Loading branch information
osyo-manga committed Jul 20, 2021
1 parent b705aa7 commit 90cb27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/ruby-lex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ def check_string_literal(tokens)
start_token << t
end_type << :on_regexp_end
when :on_symbeg
acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw}
acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw on_int}
if (i + 1) < tokens.size and acceptable_single_tokens.all?{ |st| tokens[i + 1][1] != st }
start_token << t
end_type << :on_tstring_end
Expand Down

0 comments on commit 90cb27b

Please sign in to comment.