: lookups work now with arrays

This commit is contained in:
David Halter
2012-05-10 14:39:31 +02:00
parent 71f61b200c
commit 17d498387b
3 changed files with 40 additions and 11 deletions

View File

@@ -658,7 +658,10 @@ class Statement(Simple):
if is_call_or_close():
result = result.parent
close_brackets = False
result.add_dictionary_key()
if result.type == Array.LIST: # [:] lookups
result.add_to_current_field(tok)
else:
result.add_dictionary_key()
elif tok == '.':
if close_brackets and result.parent != top:
# only get out of the array, if it is a array execution