Skip to content

Commit

Permalink
Merge branch 'pr/560'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaynor committed Mar 30, 2013
2 parents 136a4aa + 2680100 commit 1144aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions tests/test_parser.py
Expand Up @@ -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(
Expand Down
7 changes: 1 addition & 6 deletions topaz/parser.py
Expand Up @@ -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):
Expand Down

0 comments on commit 1144aae

Please sign in to comment.