elpa/enh-ruby-mode/ruby/erm_buffer.rb
def on_const tok
      case @mode
      when :sym then
        @mode = nil
        add :label, tok
      when :def, :predef then
        r = add :const, tok # TODO: why this order?
        @mode = :predef
        r
      else
        add :const, tok
      end
    end
#:nodoc: internal use only
:nodoc: internal use only
: nodoc : internal use only
def on_const tok
      case @mode
      when :sym then
        @mode = nil
        add :label, tok
      when :def, :predef then
        r = add :const, tok 
        @mode = :predef
        r
      else
        add :const, tok
      end
    end
def on_const tok case @mode when :sym then @mode = nil add :label , tok when :def , :predef then r = add :const , tok @mode = :predef r else add :const , tok end end
:nodoc: internal use only
: nodoc : internal use only
# TODO: why this order?
tok