Class: RubyLexer::NestedContexts::ClassContext

Inherits:
WantsEndContext show all
Defined in:
lib/rubylexer/context.rb

Instance Attribute Summary

Attributes inherited from WantsEndContext

#state

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from WantsEndContext

#initialize

Methods inherited from NestedContext

#initialize, #lhs=, #matches?, #wantarrow

Constructor Details

This class inherits a constructor from RubyLexer::NestedContexts::WantsEndContext

Instance Method Details

#see(lxr, msg) ⇒ Object



188
189
190
191
192
193
194
195
# File 'lib/rubylexer/context.rb', line 188

def see(lxr,msg)
  if msg==:semi and @state!=:semi
    lxr.localvars_stack.push SymbolTable.new 
    @state=:semi
  else
    super
  end
end