class RDoc::Parser::RipperStateLex

def get_op_tk(tk)

def get_op_tk(tk)
nable_operators = %w[! != !~ % & * ** + +@ - -@ / < << <= <=> == === =~ > >= >> [] []= ^ ` | ~]
efinable_operators.include?(tk[:text]) and tk[:state] == EXPR_ARG then
state] = Ripper::Lexer::State.new(EXPR_ARG)
kind] = :on_ident
tk[:text] =~ /^[-+]$/ then
head = get_squashed_tk
 tk_ahead[:kind]
 :on_int, :on_float, :on_rational, :on_imaginary then
[:text] += tk_ahead[:text]
[:kind] = tk_ahead[:kind]
[:state] = tk_ahead[:state]
 :on_heredoc_beg, :on_tstring, :on_dstring # frozen/non-frozen string literal
[:text] += tk_ahead[:text]
[:kind] = tk_ahead[:kind]
[:state] = tk_ahead[:state]

uf.unshift tk_ahead