Class: RubyLexer::NestedContexts::ParenContext

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

Direct Known Subclasses

KnownNestedLhsParenContext

Instance Attribute Summary collapse

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from NestedContext

#matches?, #wantarrow

Constructor Details

#initialize(linenum) ⇒ ParenContext

Returns a new instance of ParenContext.



63
64
65
# File 'lib/rubylexer/context.rb', line 63

def initialize(linenum)
  super('(', ')' ,linenum)
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



67
68
69
# File 'lib/rubylexer/context.rb', line 67

def lhs
  @lhs
end

Instance Method Details

#see(lxr, msg) ⇒ Object



68
69
70
# File 'lib/rubylexer/context.rb', line 68

def see(lxr,msg)
  @lhs=true if msg==:comma || msg==:splat
end