Support op, cvar, iver, gvar and kw that follow on symbeg in IRB
This commit is contained in:
parent
1226791368
commit
e73a68ebc3
@ -256,7 +256,8 @@ class RubyLex
|
||||
start_token << t
|
||||
end_type << :on_regexp_end
|
||||
when :on_symbeg
|
||||
if (i + 1) < @tokens.size and @tokens[i + 1][1] != :on_ident and @tokens[i + 1][1] != :on_const
|
||||
acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw}
|
||||
if (i + 1) < @tokens.size and acceptable_single_tokens.all?{ |t| @tokens[i + 1][1] != t }
|
||||
start_token << t
|
||||
end_type << :on_tstring_end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user