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, #lhs=, #matches?, #wantarrow

Constructor Details

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

Instance Method Details

#see(lxr, msg) ⇒ Object



195
196
197
198
199
200
201
202
# File 'lib/rubylexer/context.rb', line 195

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