Skip to content
Permalink
Browse files

Merge branch 'pr/560'

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 30, 2013
2 parents 136a4aa + 2680100 commit 1144aaee9503be2489190940d279949def16dfd8
Showing with 6 additions and 6 deletions.
  1. +5 −0 tests/test_parser.py
  2. +1 −6 topaz/parser.py
@@ -348,6 +348,11 @@ def test_multi_assignment(self, space):
))
]))

def test_colon_attr_assignment(self, space):
assert space.parse("a::b = nil") == ast.Main(ast.Block([
ast.Statement(ast.Assignment(ast.Send(ast.Send(ast.Self(1), "a", [], None, 1), "b", [], None, 1), ast.Nil()))
]))

def test_splat_rhs_assignment(self, space):
assert space.parse("a,b,c = *[1,2,3]") == ast.Main(ast.Block([
ast.Statement(ast.MultiAssignment(
@@ -959,12 +959,7 @@ def lhs_dot_identifier(self, p):

@pg.production("lhs : primary_value COLON2 IDENTIFIER")
def lhs_colon_identifier(self, p):
"""
primary_value tCOLON2 tIDENTIFIER {
$$ = support.attrset($1, (String) $3.getValue());
}
"""
raise NotImplementedError(p)
return self.new_call(p[0], p[2], None)

@pg.production("lhs : primary_value DOT CONSTANT")
def lhs_dot_constant(self, p):

0 comments on commit 1144aae

Please sign in to comment.