Method: RubyParser::Legacy::RubyLexer#process_label

Defined in:
lib/ruby_parser/legacy/ruby_lexer.rb

#process_label(text) ⇒ Object



825
826
827
828
829
# File 'lib/ruby_parser/legacy/ruby_lexer.rb', line 825

def process_label text
  symbol = possibly_escape_string text, /^"/

  result(:expr_labeled, :tLABEL, [symbol, self.lineno]) # TODO: expr_arg|expr_labeled
end